<?php $__env->startSection('title', 'FAQ Details'); ?>
<?php $__env->startSection('page-title', 'FAQ Details'); ?>

<?php $__env->startSection('content'); ?>
<div class="fade-in">
    <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">
            <h3 class="text-lg font-semibold text-gray-900 dark:text-white">FAQ Information</h3>
            <div class="flex items-center gap-3">
                <a href="<?php echo e(route('admin.faqs.edit', $faq)); ?>" 
                   class="inline-flex items-center px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium rounded-lg transition-colors">
                    <i class="fas fa-edit mr-2"></i>Edit
                </a>
                <a href="<?php echo e(route('admin.faqs.index')); ?>" 
                   class="inline-flex items-center px-4 py-2 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 text-gray-700 dark:text-gray-300 text-sm font-medium rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors">
                    <i class="fas fa-arrow-left mr-2"></i>Back
                </a>
            </div>
        </div>

        <!-- Content -->
        <div class="p-6 space-y-6">
            <!-- Question (English) -->
            <div>
                <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Question (English)</label>
                <p class="text-base text-gray-900 dark:text-white"><?php echo e($faq->question); ?></p>
            </div>

            <!-- Question (Khmer) -->
            <?php if($faq->question_km): ?>
            <div>
                <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Question (Khmer)</label>
                <p class="text-base text-gray-900 dark:text-white"><?php echo e($faq->question_km); ?></p>
            </div>
            <?php endif; ?>

            <!-- Answer (English) -->
            <div>
                <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Answer (English)</label>
                <div class="text-base text-gray-900 dark:text-white whitespace-pre-wrap"><?php echo e($faq->answer); ?></div>
            </div>

            <!-- Answer (Khmer) -->
            <?php if($faq->answer_km): ?>
            <div>
                <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Answer (Khmer)</label>
                <div class="text-base text-gray-900 dark:text-white whitespace-pre-wrap"><?php echo e($faq->answer_km); ?></div>
            </div>
            <?php endif; ?>

            <!-- Metadata -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 pt-6 border-t border-gray-200 dark:border-gray-800">
                <div>
                    <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Order</label>
                    <p class="text-base text-gray-900 dark:text-white"><?php echo e($faq->order); ?></p>
                </div>
                <div>
                    <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Status</label>
                    <?php if($faq->status): ?>
                        <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200">
                            Active
                        </span>
                    <?php else: ?>
                        <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200">
                            Inactive
                        </span>
                    <?php endif; ?>
                </div>
                <div>
                    <label class="block text-sm font-medium text-gray-500 dark:text-gray-400 mb-2">Created At</label>
                    <p class="text-base text-gray-900 dark:text-white"><?php echo e($faq->created_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/e-com/resources/views/admin/faqs/show.blade.php ENDPATH**/ ?>