

<?php $__env->startSection('content'); ?>
    <section class="bg-gradient-to-r from-blue-950 via-blue-900 to-blue-700 text-white">
        <div class="max-w-7xl mx-auto px-4 py-20">
            <p class="text-blue-200 font-semibold mb-3">Kegiatan Organisasi</p>
            <h1 class="text-4xl md:text-5xl font-extrabold mb-4">Agenda</h1>
            <p class="text-lg text-blue-100 max-w-3xl leading-8">
                Informasi agenda kegiatan, pertemuan, pelatihan, dan aktivitas resmi organisasi.
            </p>
        </div>
    </section>

    <section class="max-w-7xl mx-auto px-4 py-16">
        <div class="space-y-6">
            <?php $__empty_1 = true; $__currentLoopData = $agendas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agenda): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="bg-white rounded-3xl shadow-sm border border-slate-100 overflow-hidden">
                    <div class="grid md:grid-cols-4 gap-0">
                        <div class="md:col-span-1">
                            <?php if($agenda->image): ?>
                                <img src="<?php echo e(asset($agenda->image)); ?>" alt="<?php echo e($agenda->title); ?>"
                                    class="w-full h-full object-cover min-h-[220px]">
                            <?php else: ?>
                                <div
                                    class="w-full h-full min-h-[220px] bg-blue-100 flex items-center justify-center text-blue-900 font-bold">
                                    Agenda
                                </div>
                            <?php endif; ?>
                        </div>

                        <div class="md:col-span-3 p-6 md:p-8">
                            <div class="flex flex-wrap gap-3 mb-4">
                                <span class="bg-blue-100 text-blue-800 px-4 py-2 rounded-full text-sm font-semibold">
                                    <?php echo e($agenda->event_date->format('d F Y')); ?>

                                </span>

                                <?php if($agenda->event_time): ?>
                                    <span class="bg-slate-100 text-slate-700 px-4 py-2 rounded-full text-sm">
                                        <?php echo e($agenda->event_time); ?>

                                    </span>
                                <?php endif; ?>

                                <?php if($agenda->location): ?>
                                    <span class="bg-slate-100 text-slate-700 px-4 py-2 rounded-full text-sm">
                                        <?php echo e($agenda->location); ?>

                                    </span>
                                <?php endif; ?>
                            </div>

                            <h2 class="text-2xl md:text-3xl font-bold text-blue-900 mb-4"><?php echo e($agenda->title); ?></h2>

                            <p class="text-slate-600 leading-8 mb-4">
                                <?php echo e(\Illuminate\Support\Str::limit(strip_tags($agenda->description ?: 'Deskripsi agenda belum tersedia.'), 180)); ?>

                            </p>

                            <a href="<?php echo e(route('agenda.show', $agenda->slug)); ?>"
                                class="inline-block text-blue-700 font-semibold hover:underline">
                                Lihat Detail →
                            </a>
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="text-center text-slate-500">
                    Belum ada agenda dipublikasikan.
                </div>
            <?php endif; ?>
        </div>

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

        </div>
    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/kepx5469/public_html/diklat.keperawatanrsbalimeddenpasar.org/resources/views/agenda.blade.php ENDPATH**/ ?>