<?php $__env->startSection('title', ucfirst($pageContent->section) . ' Page Content'); ?>
<?php $__env->startSection('page-title', 'View Page Content: ' . ucfirst($pageContent->section)); ?>

<?php $__env->startSection('content'); ?>
<div class="fade-in max-w-4xl">
    <!-- Back Button -->
    <a href="<?php echo e(route('admin.page-content.index')); ?>" class="inline-flex items-center text-blue-600 hover:text-blue-700 mb-6">
        <i class="fas fa-arrow-left mr-2"></i>Back to List
    </a>

    <!-- Detail Card -->
    <div class="bg-white dark:bg-gray-950 border border-gray-200 dark:border-gray-800 rounded-lg overflow-hidden">
        <!-- Header -->
        <div class="px-6 py-4 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-800 flex items-center justify-between">
            <div>
                <h2 class="text-lg font-semibold text-gray-900 dark:text-white"><?php echo e(ucfirst($pageContent->section)); ?> Page Content</h2>
                <p class="text-sm text-gray-600 dark:text-gray-400 mt-1">View details for this page section</p>
            </div>
            <div class="flex gap-2">
                <a href="<?php echo e(route('admin.page-content.edit', $pageContent)); ?>" 
                   class="px-4 py-2.5 bg-amber-600 hover:bg-amber-700 text-white font-medium rounded-lg shadow-sm hover:shadow-md transition-all inline-flex items-center gap-2">
                    <i class="fas fa-edit"></i>Edit
                </a>
                <form action="<?php echo e(route('admin.page-content.destroy', $pageContent)); ?>" method="POST" style="display: inline;">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('DELETE'); ?>
                    <button type="submit" class="px-4 py-2.5 bg-red-600 hover:bg-red-700 text-white font-medium rounded-lg shadow-sm hover:shadow-md transition-all inline-flex items-center gap-2" onclick="return confirm('Are you sure you want to delete this page content?')">
                        <i class="fas fa-trash"></i>Delete
                    </button>
                </form>
            </div>
        </div>

        <!-- Content -->
        <div class="p-6 space-y-6">
            <!-- Section -->
            <div class="grid grid-cols-2 gap-6">
                <div>
                    <p class="text-sm font-medium text-gray-700 dark:text-gray-300">Section</p>
                    <p class="text-gray-900 dark:text-white mt-2">
                        <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200">
                            <?php echo e(ucfirst($pageContent->section)); ?>

                        </span>
                    </p>
                </div>
            </div>

            <hr class="border-gray-200 dark:border-gray-800">

            <!-- Title English -->
            <div>
                <p class="text-sm font-medium text-gray-700 dark:text-gray-300">Title (English)</p>
                <p class="text-gray-900 dark:text-white mt-2"><?php echo e($pageContent->title_en ?? '—'); ?></p>
            </div>

            <!-- Title Khmer -->
            <div>
                <p class="text-sm font-medium text-gray-700 dark:text-gray-300">Title (ភាសាខ្មែរ)</p>
                <p class="text-gray-900 dark:text-white mt-2"><?php echo e($pageContent->title_km ?? '—'); ?></p>
            </div>

            <hr class="border-gray-200 dark:border-gray-800">

            <!-- Description English -->
            <div>
                <p class="text-sm font-medium text-gray-700 dark:text-gray-300">Description (English)</p>
                <div class="text-gray-900 dark:text-white mt-2 prose dark:prose-invert max-w-none">
                    <?php echo nl2br(e($pageContent->description_en)) ?? '—'; ?>

                </div>
            </div>

            <!-- Description Khmer -->
            <div>
                <p class="text-sm font-medium text-gray-700 dark:text-gray-300">Description (ភាសាខ្មែរ)</p>
                <div class="text-gray-900 dark:text-white mt-2 prose dark:prose-invert max-w-none">
                    <?php echo nl2br(e($pageContent->description_km)) ?? '—'; ?>

                </div>
            </div>

            <hr class="border-gray-200 dark:border-gray-800">

            <!-- Image -->
            <?php if($pageContent->image): ?>
                <div>
                    <p class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-4">Image</p>
                    <img src="<?php echo e(asset('storage/' . $pageContent->image)); ?>" alt="<?php echo e($pageContent->section); ?>" class="max-w-md rounded-lg border border-gray-300 dark:border-gray-700">
                </div>
                <hr class="border-gray-200 dark:border-gray-800">
            <?php endif; ?>

            <!-- Metadata -->
            <div class="grid grid-cols-2 gap-6 pt-4">
                <div>
                    <p class="text-xs font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wide">Created By</p>
                    <p class="text-gray-900 dark:text-white mt-2"><?php echo e($pageContent->createdBy?->name ?? 'System'); ?></p>
                </div>
                <div>
                    <p class="text-xs font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wide">Created At</p>
                    <p class="text-gray-900 dark:text-white mt-2"><?php echo e($pageContent->created_at->format('M d, Y H:i')); ?></p>
                </div>
                <div>
                    <p class="text-xs font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wide">Updated By</p>
                    <p class="text-gray-900 dark:text-white mt-2"><?php echo e($pageContent->updatedByUser?->name ?? 'System'); ?></p>
                </div>
                <div>
                    <p class="text-xs font-medium text-gray-600 dark:text-gray-400 uppercase tracking-wide">Last Updated</p>
                    <p class="text-gray-900 dark:text-white mt-2"><?php echo e($pageContent->updated_at->format('M d, Y H:i')); ?></p>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mac/Documents/360monicaAPI/resources/views/admin/page-content/show.blade.php ENDPATH**/ ?>