<div class="max-w-7xl mx-auto text-zinc-200">
    
    <?php echo $__env->make('components.continue-watching', ['continueWatching' => $continueWatching], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    
    <!--[if BLOCK]><![endif]--><?php if(count($dramas) > 0): ?>
        <?php
        $allTags = collect($dramas)->pluck('tags')->flatten()->filter(fn($t) => !empty($t))->unique()->shuffle();
        ?>
        
        <h2 class="text-white font-bold text-2xl mb-4 text-center">Trending Categories</h2>
        <?php if (isset($component)) { $__componentOriginalffcce85b26c35c01d63ab7c313413aff = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalffcce85b26c35c01d63ab7c313413aff = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tag-list','data' => ['tags' => $allTags,'lang' => request()->route('lang') ?? config('drama.default_home_language'),'limit' => '15']] + (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($allTags),'lang' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->route('lang') ?? config('drama.default_home_language')),'limit' => '15']); ?>
<?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 class="flex items-center justify-between mb-6 sm:mx-6">
            <h2 class="text-2xl font-bold tracking-wide text-white">Popular Dramas</h2>
            <a href="<?php echo e(route('popular', ['lang' => request()->route('lang') ?? config('drama.default_home_language')])); ?>" class="text-sm text-blue-400 hover:underline font-semibold">See all &rarr;</a>
        </div>
        <?php if (isset($component)) { $__componentOriginal5b3d13f94d9e177e66a5bb33b5953772 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.drama-gallery','data' => ['dramas' => $popular_dramas]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('drama-gallery'); ?>
<?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(['dramas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($popular_dramas)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772)): ?>
<?php $attributes = $__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772; ?>
<?php unset($__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5b3d13f94d9e177e66a5bb33b5953772)): ?>
<?php $component = $__componentOriginal5b3d13f94d9e177e66a5bb33b5953772; ?>
<?php unset($__componentOriginal5b3d13f94d9e177e66a5bb33b5953772); ?>
<?php endif; ?>

        
        <!--[if BLOCK]><![endif]--><?php if(isset($mixed_popular) && count($mixed_popular) > 0): ?>
        <div class="flex items-center justify-between mt-8 mb-6 sm:mx-6">
            <h2 class="text-2xl font-bold tracking-wide text-white">Trending Now</h2>
        </div>
        <?php if (isset($component)) { $__componentOriginal5b3d13f94d9e177e66a5bb33b5953772 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.drama-gallery','data' => ['dramas' => $mixed_popular]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('drama-gallery'); ?>
<?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(['dramas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($mixed_popular)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772)): ?>
<?php $attributes = $__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772; ?>
<?php unset($__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5b3d13f94d9e177e66a5bb33b5953772)): ?>
<?php $component = $__componentOriginal5b3d13f94d9e177e66a5bb33b5953772; ?>
<?php unset($__componentOriginal5b3d13f94d9e177e66a5bb33b5953772); ?>
<?php endif; ?>
        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

        <div class="flex items-center justify-between mt-8 mb-6 sm:mx-6">
            <h2 class="text-2xl font-bold tracking-wide text-white">Latest Dramas</h2>
            <a href="<?php echo e(route('latest', ['lang' => request()->route('lang') ?? config('drama.default_home_language')])); ?>" class="text-sm text-blue-400 hover:underline font-semibold">See all &rarr;</a>
        </div>
        <?php if (isset($component)) { $__componentOriginal5b3d13f94d9e177e66a5bb33b5953772 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.drama-gallery','data' => ['dramas' => $dramas]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('drama-gallery'); ?>
<?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(['dramas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($dramas)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772)): ?>
<?php $attributes = $__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772; ?>
<?php unset($__attributesOriginal5b3d13f94d9e177e66a5bb33b5953772); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5b3d13f94d9e177e66a5bb33b5953772)): ?>
<?php $component = $__componentOriginal5b3d13f94d9e177e66a5bb33b5953772; ?>
<?php unset($__componentOriginal5b3d13f94d9e177e66a5bb33b5953772); ?>
<?php endif; ?>
    <?php else: ?>
        <p class="text-zinc-400 text-center">No dramas found.</p>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div>
<?php /**PATH /Users/buchin/Repos/dracin-git/resources/views/livewire/home-page.blade.php ENDPATH**/ ?>