<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="theme-color" content="#011b36">
    <meta name="robots" content="noindex, nofollow">

    <title><?php echo $__env->yieldContent('title', 'Administration'); ?> - NH TRANS</title>
    <meta name="description" content="<?php echo $__env->yieldContent('description', 'Tableau de bord d\'administration NH TRANS.'); ?>">

    <link rel="icon" href="<?php echo e(asset('assets/images/branding/logo-nh-trans.jpg')); ?>" type="image/png">

    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/admin.css', 'resources/js/admin.js']); ?>
</head>
<body class="flex min-h-screen bg-brand-surface text-brand-ink antialiased">
    <a href="#admin-main-content" class="sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 focus:z-[60] focus:rounded-lg focus:bg-brand-primary focus:px-4 focus:py-2 focus:text-brand-white">
        Aller au contenu principal
    </a>

    <?php if (isset($component)) { $__componentOriginalbebe114f3ccde4b38d7462a3136be045 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbebe114f3ccde4b38d7462a3136be045 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.sidebar','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.sidebar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalbebe114f3ccde4b38d7462a3136be045)): ?>
<?php $attributes = $__attributesOriginalbebe114f3ccde4b38d7462a3136be045; ?>
<?php unset($__attributesOriginalbebe114f3ccde4b38d7462a3136be045); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbebe114f3ccde4b38d7462a3136be045)): ?>
<?php $component = $__componentOriginalbebe114f3ccde4b38d7462a3136be045; ?>
<?php unset($__componentOriginalbebe114f3ccde4b38d7462a3136be045); ?>
<?php endif; ?>

    <div class="flex min-h-screen flex-1 flex-col overflow-x-hidden">
        <?php if (isset($component)) { $__componentOriginal232f012cda936a4eb249de3234ccfddd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal232f012cda936a4eb249de3234ccfddd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.topbar','data' => ['breadcrumbs' => $breadcrumbs ?? []]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.topbar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumbs ?? [])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal232f012cda936a4eb249de3234ccfddd)): ?>
<?php $attributes = $__attributesOriginal232f012cda936a4eb249de3234ccfddd; ?>
<?php unset($__attributesOriginal232f012cda936a4eb249de3234ccfddd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal232f012cda936a4eb249de3234ccfddd)): ?>
<?php $component = $__componentOriginal232f012cda936a4eb249de3234ccfddd; ?>
<?php unset($__componentOriginal232f012cda936a4eb249de3234ccfddd); ?>
<?php endif; ?>

        <main id="admin-main-content" class="flex-1 px-4 py-6 sm:px-6 lg:py-8">
            <div class="mx-auto max-w-7xl">
                <?php if(session('status')): ?>
                    <div class="mb-5 rounded-lg border border-admin-success/30 bg-admin-success-bg px-4 py-3 text-sm font-medium text-admin-success">
                        <?php echo e(session('status')); ?>

                    </div>
                <?php endif; ?>

                <?php if($errors->any()): ?>
                    <div class="mb-5 rounded-lg border border-admin-danger/30 bg-admin-danger-bg px-4 py-3 text-sm text-admin-danger">
                        <p class="font-semibold">Action impossible.</p>
                        <ul class="mt-1 list-disc pl-5">
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><?php echo e($error); ?></li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                <?php endif; ?>

                <?php echo $__env->yieldContent('content'); ?>
            </div>
        </main>

        <footer class="border-t border-brand-border px-4 py-4 text-center text-xs text-brand-muted sm:px-6">
            <p>NH TRANS - Interface d'administration connectee.</p>
        </footer>
    </div>

    <div id="admin-confirm-modal" data-modal data-open="false" class="admin-modal-backdrop fixed inset-0 z-50 flex items-center justify-center bg-brand-ink/50 p-4">
        <div data-modal-panel tabindex="-1" role="alertdialog" aria-modal="true" aria-labelledby="admin-confirm-title" class="admin-modal-panel admin-card w-full max-w-sm p-5">
            <h2 id="admin-confirm-title" data-confirm-title class="text-base font-semibold text-brand-ink">Confirmer cette action ?</h2>
            <p data-confirm-body class="mt-2 text-sm text-brand-muted">Cette action sera appliquee apres confirmation.</p>
            <div class="mt-5 flex justify-end gap-2">
                <button type="button" data-modal-close class="btn btn-secondary btn-sm">Annuler</button>
                <button type="button" data-confirm-submit data-modal-close class="btn btn-danger btn-sm">Confirmer</button>
            </div>
        </div>
    </div>

    <?php echo $__env->yieldPushContent('modals'); ?>
</body>
</html>
<?php /**PATH C:\wamp64\www\nh-trans\resources\views/layouts/admin.blade.php ENDPATH**/ ?>