

<?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 Berita</p>
        <h1 class="text-4xl md:text-5xl font-extrabold mb-4"><?php echo e($post->title); ?></h1>
        <p class="text-blue-100 text-lg">
            <?php echo e(optional($post->published_at)->format('d F Y') ?? $post->created_at->format('d F Y')); ?>

        </p>
    </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($post->image): ?>
            <img src="<?php echo e(asset($post->image)); ?>" alt="<?php echo e($post->title); ?>" class="w-full h-[420px] object-cover">
            <?php endif; ?>

            <div class="p-8">
                <?php if($post->excerpt): ?>
                <p class="text-lg text-slate-600 leading-8 mb-6 border-l-4 border-blue-700 pl-4 italic">
                    <?php echo e($post->excerpt); ?>

                </p>
                <?php endif; ?>

                <div class="prose max-w-none text-slate-700 leading-8">
                    <?php echo $post->content; ?>

                </div>

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

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

            <div class="space-y-5">
                <?php $__empty_1 = true; $__currentLoopData = $latestPosts; $__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('berita.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(optional($item->published_at)->format('d M Y') ?? $item->created_at->format('d M Y')); ?>

                    </p>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <p class="text-slate-500">Belum ada berita 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/berita-detail.blade.php ENDPATH**/ ?>