<?php
use Livewire\Component;
use Livewire\WithPagination;
use App\Models\SocialPost;
?>

<main class="max-w-7xl mx-auto px-4 md:px-6 py-10">
    <div class="mb-10">
        <h1 class="text-3xl md:text-5xl font-black text-slate-900 tracking-tight uppercase flex items-center gap-4">
            <i class="fa-brands fa-instagram text-pink-500"></i>
            Instagram <span class="text-pink-500">Feed</span>
        </h1>
        <div class="h-1 w-16 bg-pink-500 mt-3 rounded"></div>
        <p class="text-slate-500 mt-4 text-sm font-odia">ଆମର Instagram ପୋଷ୍ଟ ଦେଖନ୍ତୁ ଓ ଫଲୋ କରନ୍ତୁ।</p>
    </div>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($posts->count()): ?>
    <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
        <div class="overflow-hidden rounded-lg border border-slate-100 shadow-sm hover:shadow-md transition-shadow">
            <?php echo $post->embed_html; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($post->title || $post->description): ?>
            <div class="p-4 border-t border-slate-100">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($post->title): ?>
                <h3 class="text-sm font-bold text-slate-800 font-odia leading-snug mb-1"><?php echo e($post->title); ?></h3>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($post->description): ?>
                <p class="text-xs text-slate-500 font-odia line-clamp-2"><?php echo e($post->description); ?></p>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
    </div>

    <div class="mt-12">
        <?php echo e($posts->links()); ?>

    </div>
    <?php else: ?>
    <div class="bg-slate-50 p-12 text-center rounded-lg border border-slate-100">
        <i class="fa-brands fa-instagram text-5xl text-pink-200 mb-4 block"></i>
        <p class="text-slate-400 font-odia">କୌଣସି Instagram ପୋଷ୍ଟ ଉପଲବ୍ଧ ନାହିଁ।</p>
    </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</main><?php /**PATH D:\02-my freelance\00-DR_Padhi\DR_PADHI\storage\framework/views/livewire/views/e840a402.blade.php ENDPATH**/ ?>