<?php
    $nolink = $nolink ?? false;
    $lang = $lang ?? request()->route('lang') ?? app()->getLocale() ?? 'in';
    $bookId = $drama['bookId'] ?? '';
?>
<!--[if BLOCK]><![endif]--><?php if($drama && !empty($bookId)): ?>
<?php
                $__cache_directive_arguments = ['drama_info:' . $lang . ':' . $bookId, 60 * 60 * 24 * 365 * 10];

                if (count($__cache_directive_arguments) === 2) {
                    [$__cache_directive_key, $__cache_directive_ttl] = $__cache_directive_arguments;
                } else {
                    [$__cache_directive_key] = $__cache_directive_arguments;
                    $__cache_directive_ttl = config('blade-cache-directive.ttl');
                }

                if (config('blade-cache-directive.enabled') && \Illuminate\Support\Facades\Cache::has($__cache_directive_key)) {
                    echo \Illuminate\Support\Facades\Cache::get($__cache_directive_key);
                } else {
                    $__cache_directive_buffering = true;

                    ob_start();
            ?>
<div class="flex flex-col sm:flex-row gap-6 sm:gap-8 items-center sm:items-start flex-wrap px-6 lg:px-8">
    <!--[if BLOCK]><![endif]--><?php if(!$nolink && !empty($drama['bookId'])): ?>
        <a href="<?php echo e(route('drama.detail', ['lang' => $lang, 'bookId' => $drama['bookId']])); ?>" tabindex="-1">
            <img src="<?php echo e($drama['bookCover'] ?? $drama['coverWap'] ?? ''); ?>" alt="<?php echo e($drama['bookName'] ?? 'Drama'); ?>" class="w-[70vw] max-w-[220px] h-[55vw] max-h-[320px] object-cover bg-[#222] rounded-lg flex-shrink-0 mx-auto sm:mx-0 hover:opacity-90 transition-opacity duration-150">
        </a>
    <?php else: ?>
        <img src="<?php echo e($drama['bookCover'] ?? $drama['coverWap'] ?? ''); ?>" alt="<?php echo e($drama['bookName'] ?? 'Drama'); ?>" class="w-[70vw] max-w-[220px] h-[55vw] max-h-[320px] object-cover bg-[#222] rounded-lg flex-shrink-0 mx-auto sm:mx-0">
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    <div class="flex-1 min-w-[0] max-w-full w-full sm:w-auto px-2 sm:px-0">
        <h1 class="text-white text-xl sm:text-2xl mb-2 sm:mb-3 break-words text-center sm:text-left">
            <!--[if BLOCK]><![endif]--><?php if(!$nolink && !empty($drama['bookId'])): ?>
                <a href="<?php echo e(route('drama.detail', ['lang' => $lang, 'bookId' => $drama['bookId']])); ?>" class="hover:underline hover:text-indigo-300 transition-colors duration-100">
                    <?php echo e($drama['bookName'] ?? 'Untitled'); ?>

                </a>
            <?php else: ?>
                <?php echo e($drama['bookName'] ?? 'Untitled'); ?>

            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        </h1>
        <div class="flex flex-col sm:flex-row sm:items-center sm:gap-4 mb-2">
            <p class="text-gray-400 text-sm sm:text-base mb-1 sm:mb-0 text-center sm:text-left">Chapters: <?php echo e($drama['chapterCount'] ?? '-'); ?></p>
            <p class="text-gray-400 text-sm sm:text-base text-center sm:text-left">Play Count: <?php echo e(number_format((int)($drama['playCount'] ?? 0))); ?></p>
        </div>
        <p class="text-gray-300 mb-3 sm:mb-4 text-sm sm:text-base text-center sm:text-left"><?php echo e($drama['introduction'] ?? ''); ?></p>
        <div class="flex justify-center sm:justify-start">
            <a href="<?php echo e(route('episode.page', ['lang' => $lang, 'bookId' => $drama['bookId'], 'episodeIndex' => 1])); ?>"
            class="inline-block bg-gradient-to-r from-[#4D65ED] to-[#7F53FF] text-white font-bold rounded-full px-6 py-2 text-base mb-4 no-underline shadow-lg tracking-wide transition-transform duration-150 w-full max-w-xs text-center hover:scale-105 hover:shadow-xl">
                <span class="align-middle mr-2">▶</span> Play Now
            </a>
        </div>
        <!--[if BLOCK]><![endif]--><?php if(!empty($drama['tags'])): ?>
            <div class="flex justify-center sm:justify-start mt-2">
                <?php if (isset($component)) { $__componentOriginalffcce85b26c35c01d63ab7c313413aff = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalffcce85b26c35c01d63ab7c313413aff = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tag-list','data' => ['tags' => $drama['tags']]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tag-list'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['tags' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($drama['tags'])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalffcce85b26c35c01d63ab7c313413aff)): ?>
<?php $attributes = $__attributesOriginalffcce85b26c35c01d63ab7c313413aff; ?>
<?php unset($__attributesOriginalffcce85b26c35c01d63ab7c313413aff); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalffcce85b26c35c01d63ab7c313413aff)): ?>
<?php $component = $__componentOriginalffcce85b26c35c01d63ab7c313413aff; ?>
<?php unset($__componentOriginalffcce85b26c35c01d63ab7c313413aff); ?>
<?php endif; ?>
            </div>
        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        <!--[if BLOCK]><![endif]--><?php if(isset($drama['corner']['name'])): ?>
            <span class="inline-block mt-2 sm:mt-0" style="background: <?php echo e($drama['corner']['color'] ?? '#4D65ED'); ?>; color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 0.9em;"><?php echo e($drama['corner']['name']); ?></span>
        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    </div>
    </div>
<?php
                    $__cache_directive_buffer = ob_get_clean();

                    \Illuminate\Support\Facades\Cache::put($__cache_directive_key, $__cache_directive_buffer, $__cache_directive_ttl);

                    echo $__cache_directive_buffer;

                    unset($__cache_directive_key, $__cache_directive_ttl, $__cache_directive_buffer, $__cache_directive_buffering, $__cache_directive_arguments);
                }
            ?>
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
<?php /**PATH /Users/buchin/Repos/dracin-git/resources/views/components/drama-info.blade.php ENDPATH**/ ?>