<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <?php echo e($title); ?>

     <?php $__env->endSlot(); ?>

    <div class="p-6">
        <div class="max-w-5xl">
            <div class="bg-white border border-gray-200 rounded-xl shadow-sm p-6 space-y-6">
                <div>
                    <h1 class="text-2xl font-bold text-gray-900"><?php echo e($title); ?></h1>
                    <p class="mt-2 text-sm text-gray-600">Coming soon. This module shell is ready for Sprint 1 feature implementation.</p>
                </div>

                <?php if(!empty($children)): ?>
                    <div class="rounded-xl border border-gray-200 bg-gray-50 p-4">
                        <h2 class="text-sm font-semibold uppercase tracking-wide text-gray-500 mb-3">Sub-pages</h2>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-2">
                            <?php $__currentLoopData = $children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <a
                                    href="<?php echo e(route($child['route_name'])); ?>"
                                    class="block rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 hover:bg-gray-100"
                                >
                                    <?php echo e($child['label']); ?>

                                </a>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                <?php endif; ?>

                <div class="rounded-xl border border-gray-200 bg-gray-50 p-4">
                    <h2 class="text-sm font-semibold uppercase tracking-wide text-gray-500 mb-3">Access Context</h2>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-y-2 text-sm text-gray-700">
                        <p><span class="font-medium text-gray-900">Required permission:</span> <?php echo e($requiredPermission); ?></p>
                        <p><span class="font-medium text-gray-900">Dealer:</span> <?php echo e(optional(auth()->user()->dealer)->name ?? 'N/A'); ?></p>
                        <p><span class="font-medium text-gray-900">User:</span> <?php echo e(auth()->user()->name); ?></p>
                        <p><span class="font-medium text-gray-900">Department:</span> <?php echo e(optional(auth()->user()->department)->name ?? 'N/A'); ?></p>
                        <p class="md:col-span-2"><span class="font-medium text-gray-900">Roles:</span> <?php echo e(auth()->user()->getRoleNames()->join(', ')); ?></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\Projects\mtt-os\resources\views\placeholders\module.blade.php ENDPATH**/ ?>