<?php $__env->startSection('title', 'Pages'); ?>

<?php $__env->startSection('content'); ?>
<div class="mb-5">
    <h1 class="text-2xl font-bold text-gray-800">Pages</h1>
    <p class="text-sm text-gray-500">Section-Based / Hybrid / Dedicated page system</p>
</div>

<div class="bg-white rounded-xl border border-gray-200 overflow-hidden">
    <table class="min-w-full divide-y divide-gray-100">
        <thead class="bg-gray-50">
            <tr>
                <th class="px-4 py-3 text-left text-xs font-semibold text-gray-500 uppercase">Page</th>
                <th class="px-4 py-3 text-left text-xs font-semibold text-gray-500 uppercase">Type</th>
                <th class="px-4 py-3 text-left text-xs font-semibold text-gray-500 uppercase">Mode</th>
                <th class="px-4 py-3 text-left text-xs font-semibold text-gray-500 uppercase">Sections</th>
                <th class="px-4 py-3 text-right text-xs font-semibold text-gray-500 uppercase">Action</th>
            </tr>
        </thead>
        <tbody class="divide-y divide-gray-100">
            <?php $__currentLoopData = $pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $typeLabel = $page->page_type === \App\Models\PageDefinition::TYPE_SECTION_BASED
                        ? 'Section-Based'
                        : ($page->page_type === \App\Models\PageDefinition::TYPE_HYBRID ? 'Hybrid (Data + Section)' : 'Dedicated Module');
                ?>
                <tr>
                    <td class="px-4 py-3">
                        <p class="text-sm font-semibold text-gray-800"><?php echo e($page->name); ?></p>
                        <p class="text-xs text-gray-500"><?php echo e($page->slug); ?></p>
                    </td>
                    <td class="px-4 py-3 text-sm text-gray-700"><?php echo e($typeLabel); ?></td>
                    <td class="px-4 py-3">
                        <span class="text-xs px-2 py-1 rounded-full <?php echo e($page->is_active ? 'bg-green-100 text-green-700' : 'bg-gray-100 text-gray-600'); ?>"><?php echo e($page->is_active ? 'Enabled' : 'Disabled'); ?></span>
                    </td>
                    <td class="px-4 py-3 text-sm text-gray-600"><?php echo e(count($page->section_ids ?? [])); ?></td>
                    <td class="px-4 py-3 text-right">
                        <a href="<?php echo e(route('admin.pages.edit', $page)); ?>" class="px-3 py-1.5 text-xs bg-blue-100 text-blue-700 rounded">Manage</a>
                    </td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/gpsmigration/public_html/gpsmigration.com/resources/views/admin/pages/index.blade.php ENDPATH**/ ?>