<?php $__blaze->ensureRequired('/Users/sbs/Downloads/Archive 13/resources/views/components/layouts/portal.blade.php', $__blaze->compiledPath.'/54f5ac09180420401b42f31ddcebfb06.php'); ?>
<?php if (isset($__slots54f5ac09180420401b42f31ddcebfb06)) { $__slotsStack54f5ac09180420401b42f31ddcebfb06[] = $__slots54f5ac09180420401b42f31ddcebfb06; } ?>
<?php if (isset($__attrs54f5ac09180420401b42f31ddcebfb06)) { $__attrsStack54f5ac09180420401b42f31ddcebfb06[] = $__attrs54f5ac09180420401b42f31ddcebfb06; } ?>
<?php $__attrs54f5ac09180420401b42f31ddcebfb06 = ['title' => 'Categories','pageTitle' => 'Menu Categories']; ?>
<?php $__slots54f5ac09180420401b42f31ddcebfb06 = []; ?>
<?php $__blaze->pushData($__attrs54f5ac09180420401b42f31ddcebfb06); ?>
<?php ob_start(); ?>

<div class="flex justify-between items-center mb-6">
    <div>
        <h2 class="text-xs font-bold text-zinc-500 uppercase tracking-widest">Organization</h2>
        <p class="text-[10px] text-zinc-400 mt-0.5">Manage your menu structure and item groupings.</p>
    </div>
    <?php $__blaze->ensureRequired('/Users/sbs/Downloads/Archive 13/resources/views/components/button.blade.php', $__blaze->compiledPath.'/feae8bf83b9dbafc90ffca48c0a1d0dc.php'); ?>
<?php if (isset($__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__slotsStackfeae8bf83b9dbafc90ffca48c0a1d0dc[] = $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc; } ?>
<?php if (isset($__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__attrsStackfeae8bf83b9dbafc90ffca48c0a1d0dc[] = $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc; } ?>
<?php $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc = ['href' => route('portal.categories.create')]; ?>
<?php $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc = []; ?>
<?php $__blaze->pushData($__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc); ?>
<?php ob_start(); ?>
        New Category
    <?php $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
<?php $__blaze->pushSlots($__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc); ?>
<?php _feae8bf83b9dbafc90ffca48c0a1d0dc($__blaze, $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc, $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc, ['href'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php if (! empty($__slotsStackfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc = array_pop($__slotsStackfeae8bf83b9dbafc90ffca48c0a1d0dc); } ?>
<?php if (! empty($__attrsStackfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc = array_pop($__attrsStackfeae8bf83b9dbafc90ffca48c0a1d0dc); } ?>
<?php $__blaze->popData(); ?>
</div>



<div class="bg-white border border-zinc-200 rounded-sm shadow-sm overflow-hidden">
    <table class="w-full text-left border-collapse text-zinc-900">
        <thead>
            <tr class="bg-zinc-50 border-b border-zinc-200">
                <th class="px-4 py-3 text-[10px] font-bold text-zinc-500 uppercase tracking-widest">Order</th>
                <th class="px-4 py-3 text-[10px] font-bold text-zinc-500 uppercase tracking-widest">Category Name</th>
                <th class="px-4 py-3 text-[10px] font-bold text-zinc-500 uppercase tracking-widest">Parent</th>
                <th class="px-4 py-3 text-[10px] font-bold text-zinc-500 uppercase tracking-widest text-center">Status</th>
                <th class="px-4 py-3 text-[10px] font-bold text-zinc-500 uppercase tracking-widest text-right">Actions</th>
            </tr>
        </thead>
        <tbody class="divide-y divide-zinc-200">
            <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr class="hover:bg-zinc-50 transition-colors group">
                    <td class="px-4 py-3 text-[10px] font-medium text-zinc-400">
                        #<?php echo e($category->sort_order); ?>

                    </td>
                    <td class="px-4 py-3">
                        <div class="flex items-center space-x-3">
                            <div class="w-2 h-2 rounded-full bg-amber-500 <?php echo e($category->parent_id ? 'ml-4' : ''); ?>"></div>
                            <div>
                                <p class="text-xs font-bold text-zinc-800"><?php echo e($category->name); ?></p>
                                <p class="text-[9px] text-zinc-400 uppercase tracking-tighter"><?php echo e($category->slug); ?></p>
                            </div>
                        </div>
                    </td>
                    <td class="px-4 py-3">
                        <?php if($category->parent): ?>
                            <?php $__blaze->ensureRequired('/Users/sbs/Downloads/Archive 13/resources/views/components/badge.blade.php', $__blaze->compiledPath.'/3f3732a4d7df0bbcd3fbf5d0160a7038.php'); ?>
<?php $__blaze->pushData(['variant' => 'zinc','label' => $category->parent->name]); ?>
<?php _3f3732a4d7df0bbcd3fbf5d0160a7038($__blaze, ['variant' => 'zinc','label' => $category->parent->name], [], ['label'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php $__blaze->popData(); ?>
                        <?php else: ?>
                            <span class="text-[9px] text-zinc-400 uppercase font-bold tracking-widest">Master</span>
                        <?php endif; ?>
                    </td>
                    <td class="px-4 py-3 text-center">
                        <?php $__blaze->ensureRequired('/Users/sbs/Downloads/Archive 13/resources/views/components/badge.blade.php', $__blaze->compiledPath.'/3f3732a4d7df0bbcd3fbf5d0160a7038.php'); ?>
<?php $__blaze->pushData(['variant' => $category->is_active ? 'success' : 'zinc','label' => $category->is_active ? 'Active' : 'Hidden']); ?>
<?php _3f3732a4d7df0bbcd3fbf5d0160a7038($__blaze, ['variant' => $category->is_active ? 'success' : 'zinc','label' => $category->is_active ? 'Active' : 'Hidden'], [], ['variant', 'label'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php $__blaze->popData(); ?>
                    </td>
                    <td class="px-4 py-3 text-right">
                        <div class="flex justify-end items-center space-x-2">
                            <?php $__blaze->ensureRequired('/Users/sbs/Downloads/Archive 13/resources/views/components/button.blade.php', $__blaze->compiledPath.'/feae8bf83b9dbafc90ffca48c0a1d0dc.php'); ?>
<?php if (isset($__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__slotsStackfeae8bf83b9dbafc90ffca48c0a1d0dc[] = $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc; } ?>
<?php if (isset($__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__attrsStackfeae8bf83b9dbafc90ffca48c0a1d0dc[] = $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc; } ?>
<?php $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc = ['variant' => 'ghost','href' => route('portal.categories.edit', $category),'class' => 'p-1.5!']; ?>
<?php $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc = []; ?>
<?php $__blaze->pushData($__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc); ?>
<?php ob_start(); ?>
                                <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg>
                            <?php $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
<?php $__blaze->pushSlots($__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc); ?>
<?php _feae8bf83b9dbafc90ffca48c0a1d0dc($__blaze, $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc, $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc, ['href'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php if (! empty($__slotsStackfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__slotsfeae8bf83b9dbafc90ffca48c0a1d0dc = array_pop($__slotsStackfeae8bf83b9dbafc90ffca48c0a1d0dc); } ?>
<?php if (! empty($__attrsStackfeae8bf83b9dbafc90ffca48c0a1d0dc)) { $__attrsfeae8bf83b9dbafc90ffca48c0a1d0dc = array_pop($__attrsStackfeae8bf83b9dbafc90ffca48c0a1d0dc); } ?>
<?php $__blaze->popData(); ?>
                            <form action="<?php echo e(route('portal.categories.destroy', $category)); ?>" method="POST" class="inline" onsubmit="return confirm('Delete this category? Items within will become unassigned.')">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button type="submit" class="p-1.5 text-zinc-400 hover:text-red-600 hover:bg-red-50 rounded-sm transition-all">
                                    <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg>
                                </button>
                            </form>
                        </div>
                    </td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr>
                    <td colspan="5" class="px-4 py-12 text-center">
                        <div class="opacity-20 mb-3">
                            <svg class="w-10 h-10 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 6h16M4 10h16M4 14h16M4 18h16"></path></svg>
                        </div>
                        <p class="text-xs font-medium text-zinc-400 italic">No categories defined yet.</p>
                    </td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>
</div>
<?php $__slots54f5ac09180420401b42f31ddcebfb06['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
<?php $__blaze->pushSlots($__slots54f5ac09180420401b42f31ddcebfb06); ?>
<?php _54f5ac09180420401b42f31ddcebfb06($__blaze, $__attrs54f5ac09180420401b42f31ddcebfb06, $__slots54f5ac09180420401b42f31ddcebfb06, [], ['pageTitle' => 'page-title'], $__this ?? (isset($this) ? $this : null)); ?>
<?php if (! empty($__slotsStack54f5ac09180420401b42f31ddcebfb06)) { $__slots54f5ac09180420401b42f31ddcebfb06 = array_pop($__slotsStack54f5ac09180420401b42f31ddcebfb06); } ?>
<?php if (! empty($__attrsStack54f5ac09180420401b42f31ddcebfb06)) { $__attrs54f5ac09180420401b42f31ddcebfb06 = array_pop($__attrsStack54f5ac09180420401b42f31ddcebfb06); } ?>
<?php $__blaze->popData(); ?>
<?php /**PATH /Users/sbs/Downloads/Archive 13/resources/views/portal/categories/index.blade.php ENDPATH**/ ?>