<?php $__env->startSection('title', 'View Slide'); ?>
<?php $__env->startSection('page-title', 'View Slide'); ?>

<?php $__env->startSection('content'); ?>
<div class="bg-white rounded-lg shadow p-6 mb-6">
    <div class="flex items-center justify-between mb-6">
        <h3 class="text-2xl font-bold text-gray-800"><?php echo e($slide->title['en'] ?? 'N/A'); ?></h3>
        <div class="flex space-x-2">
            <a href="<?php echo e(route('admin.slides.edit', $slide)); ?>" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
                <i class="fas fa-edit mr-2"></i>Edit
            </a>
            <a href="<?php echo e(route('admin.slides.index')); ?>" class="bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded">
                Back
            </a>
        </div>
    </div>

    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
        <div>
            <?php if($slide->image): ?>
                <img src="<?php echo e(public_asset_url($slide->image)); ?>" alt="<?php echo e($slide->title['en'] ?? 'Slide'); ?>" class="w-full rounded-lg shadow">
            <?php endif; ?>
        </div>

        <div>
            <h4 class="text-lg font-semibold mb-4">Slide Information</h4>
            <dl class="space-y-2">
                <div>
                    <dt class="text-sm font-medium text-gray-500">Title (Khmer)</dt>
                    <dd class="text-sm text-gray-900"><?php echo e($slide->title['km'] ?? 'N/A'); ?></dd>
                </div>
                <div>
                    <dt class="text-sm font-medium text-gray-500">Subtitle (English)</dt>
                    <dd class="text-sm text-gray-900"><?php echo e($slide->subtitle['en'] ?? 'N/A'); ?></dd>
                </div>
                <div>
                    <dt class="text-sm font-medium text-gray-500">Subtitle (Khmer)</dt>
                    <dd class="text-sm text-gray-900"><?php echo e($slide->subtitle['km'] ?? 'N/A'); ?></dd>
                </div>
                <div>
                    <dt class="text-sm font-medium text-gray-500">Link</dt>
                    <dd class="text-sm text-gray-900">
                        <?php if($slide->link): ?>
                            <a href="<?php echo e($slide->link); ?>" target="_blank" class="text-blue-600 hover:underline"><?php echo e($slide->link); ?></a>
                        <?php else: ?>
                            N/A
                        <?php endif; ?>
                    </dd>
                </div>
                <div>
                    <dt class="text-sm font-medium text-gray-500">Button Text</dt>
                    <dd class="text-sm text-gray-900">
                        <?php echo e($slide->button_text['en'] ?? 'N/A'); ?>

                        <?php if(isset($slide->button_text['km'])): ?>
                            / <?php echo e($slide->button_text['km']); ?>

                        <?php endif; ?>
                    </dd>
                </div>
                <div>
                    <dt class="text-sm font-medium text-gray-500">Status</dt>
                    <dd class="text-sm">
                        <?php if($slide->status === 'active'): ?>
                            <span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">Active</span>
                        <?php else: ?>
                            <span class="px-2 py-1 text-xs font-semibold rounded-full bg-red-100 text-red-800">Inactive</span>
                        <?php endif; ?>
                    </dd>
                </div>
                <div>
                    <dt class="text-sm font-medium text-gray-500">Order</dt>
                    <dd class="text-sm text-gray-900"><?php echo e($slide->order); ?></dd>
                </div>
            </dl>
        </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/e-com/resources/views/admin/slides/show.blade.php ENDPATH**/ ?>