

<?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-5xl mx-auto px-4 py-20">
            <p class="text-blue-200 font-semibold mb-3">Detail Agenda</p>
            <h1 class="text-4xl md:text-5xl font-extrabold mb-4"><?php echo e($agenda->title); ?></h1>

            <div class="flex flex-wrap gap-3 text-sm md:text-base">
                <span class="bg-white/10 px-4 py-2 rounded-full">
                    <?php echo e($agenda->event_date->format('d F Y')); ?>

                </span>

                <?php if($agenda->event_time): ?>
                    <span class="bg-white/10 px-4 py-2 rounded-full">
                        <?php echo e($agenda->event_time); ?>

                    </span>
                <?php endif; ?>

                <?php if($agenda->location): ?>
                    <span class="bg-white/10 px-4 py-2 rounded-full">
                        <?php echo e($agenda->location); ?>

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

    <section class="max-w-7xl mx-auto px-4 py-16 grid lg:grid-cols-3 gap-10">
        <article class="lg:col-span-2">
            <div class="bg-white rounded-3xl shadow-sm overflow-hidden">
                <?php if($agenda->image): ?>
                    <img src="<?php echo e(asset($agenda->image)); ?>" alt="<?php echo e($agenda->title); ?>" class="w-full h-[420px] object-cover">
                <?php endif; ?>

                <div class="p-8">
                    <div class="prose max-w-none text-slate-700 leading-8">
                        <?php echo $agenda->description ?: '<p>Deskripsi agenda belum tersedia.</p>'; ?>

                    </div>

                    <div class="mt-8">
                        <a href="<?php echo e(route('agenda')); ?>"
                            class="inline-block bg-blue-900 text-white px-5 py-3 rounded-xl hover:bg-blue-800">
                            ← Kembali ke Agenda
                        </a>
                    </div>
                </div>
            </div>
        </article>

        <aside>
            <div class="bg-white rounded-3xl shadow-sm p-6">
                <h3 class="text-2xl font-bold mb-6">Agenda Lainnya</h3>

                <div class="space-y-5">
                    <?php $__empty_1 = true; $__currentLoopData = $latestAgendas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <div class="border-b pb-4 last:border-b-0">
                            <a href="<?php echo e(route('agenda.show', $item->slug)); ?>" class="font-bold text-blue-900 hover:underline">
                                <?php echo e($item->title); ?>

                            </a>
                            <p class="text-sm text-slate-500 mt-1">
                                <?php echo e($item->event_date->format('d M Y')); ?>

                            </p>
                            <?php if($item->location): ?>
                                <p class="text-sm text-blue-700 mt-1"><?php echo e($item->location); ?></p>
                            <?php endif; ?>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <p class="text-slate-500">Belum ada agenda lainnya.</p>
                    <?php endif; ?>
                </div>
            </div>
        </aside>
    </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-detail.blade.php ENDPATH**/ ?>