<?php
    $unreadMessages = $adminUnreadMessages ?? 0;

    $navGroups = [
        [
            'title' => 'Vue générale',
            'items' => [
                ['label' => 'Tableau de bord', 'route' => 'admin.dashboard', 'icon' => 'grid', 'active' => request()->routeIs('admin.dashboard')],
            ],
        ],
        [
            'title' => 'Contenus du site',
            'items' => [
                ['label' => 'Toutes les pages', 'route' => 'admin.content.index', 'icon' => 'layers', 'active' => request()->routeIs('admin.content.index')],
                ['label' => 'Accueil', 'route' => 'admin.content.home', 'icon' => 'home', 'active' => request()->routeIs('admin.content.home')],
                ['label' => 'À propos', 'route' => 'admin.content.about', 'icon' => 'info', 'active' => request()->routeIs('admin.content.about')],
                ['label' => 'Page Services', 'route' => 'admin.content.services-page', 'icon' => 'file', 'active' => request()->routeIs('admin.content.services-page')],
                ['label' => 'Page Galerie', 'route' => 'admin.content.gallery-page', 'icon' => 'file', 'active' => request()->routeIs('admin.content.gallery-page')],
                ['label' => 'Page Contact', 'route' => 'admin.content.contact-page', 'icon' => 'file', 'active' => request()->routeIs('admin.content.contact-page')],
            ],
        ],
        [
            'title' => 'Collections',
            'items' => [
                ['label' => 'Services', 'route' => 'admin.services.index', 'icon' => 'briefcase', 'active' => request()->routeIs('admin.services.*')],
                ['label' => 'Partenaires', 'route' => 'admin.partners.index', 'icon' => 'handshake', 'active' => request()->routeIs('admin.partners.*')],
                ['label' => 'Clients', 'route' => 'admin.clients.index', 'icon' => 'users', 'active' => request()->routeIs('admin.clients.*')],
                ['label' => 'Réalisations / Galerie', 'route' => 'admin.gallery.index', 'icon' => 'image', 'active' => request()->routeIs('admin.gallery.*')],
                ['label' => 'Médias', 'route' => 'admin.media.index', 'icon' => 'folder', 'active' => request()->routeIs('admin.media.*')],
            ],
        ],
        [
            'title' => 'Communication',
            'items' => [
                ['label' => 'Messages reçus', 'route' => 'admin.messages.index', 'icon' => 'mail', 'active' => request()->routeIs('admin.messages.*'), 'badge' => $unreadMessages ?: null],
            ],
        ],
        [
            'title' => 'Configuration',
            'items' => [
                ['label' => 'Navigation', 'route' => 'admin.navigation.index', 'icon' => 'route', 'active' => request()->routeIs('admin.navigation.*')],
                ['label' => 'Paramètres généraux', 'route' => 'admin.settings.general', 'icon' => 'settings', 'active' => request()->routeIs('admin.settings.general')],
                ['label' => 'Coordonnées', 'route' => 'admin.settings.contact', 'icon' => 'phone', 'active' => request()->routeIs('admin.settings.contact')],
                ['label' => 'SEO', 'route' => 'admin.settings.seo', 'icon' => 'search', 'active' => request()->routeIs('admin.settings.seo')],
                ['label' => 'E-mail', 'route' => 'admin.settings.email', 'icon' => 'mail', 'active' => request()->routeIs('admin.settings.email')],
            ],
        ],
        [
            'title' => 'Administration',
            'items' => [
                ['label' => 'Utilisateurs', 'route' => 'admin.users.index', 'icon' => 'user', 'active' => request()->routeIs('admin.users.*')],
                ['label' => 'Journal d\'activité', 'route' => 'admin.activity.index', 'icon' => 'clock', 'active' => request()->routeIs('admin.activity.index')],
            ],
        ],
    ];
?>


<aside
    data-admin-sidebar
    data-collapsed="false"
    class="admin-sidebar sticky top-0 hidden h-screen w-64 shrink-0 flex-col border-r border-brand-border bg-brand-white lg:flex"
>
    <div class="flex items-center justify-between gap-2 border-b border-brand-border px-4 py-4">
        <a href="<?php echo e(route('admin.dashboard')); ?>" class="flex items-center gap-2 overflow-hidden">
            <?php if (isset($component)) { $__componentOriginal987d96ec78ed1cf75b349e2e5981978f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal987d96ec78ed1cf75b349e2e5981978f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.logo','data' => ['class' => 'h-8 w-auto shrink-0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('logo'); ?>
<?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(['class' => 'h-8 w-auto shrink-0']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal987d96ec78ed1cf75b349e2e5981978f)): ?>
<?php $attributes = $__attributesOriginal987d96ec78ed1cf75b349e2e5981978f; ?>
<?php unset($__attributesOriginal987d96ec78ed1cf75b349e2e5981978f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal987d96ec78ed1cf75b349e2e5981978f)): ?>
<?php $component = $__componentOriginal987d96ec78ed1cf75b349e2e5981978f; ?>
<?php unset($__componentOriginal987d96ec78ed1cf75b349e2e5981978f); ?>
<?php endif; ?>
            <span class="admin-sidebar__label truncate text-sm font-semibold text-brand-ink">Administration</span>
        </a>
        <button
            type="button"
            data-sidebar-collapse-toggle
            aria-pressed="false"
            class="hidden h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-brand-border text-brand-muted hover:text-brand-primary lg:flex"
        >
            <span class="sr-only">Réduire la barre latérale</span>
            <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'chevron-right','class' => 'h-4 w-4 rotate-180']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?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(['name' => 'chevron-right','class' => 'h-4 w-4 rotate-180']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
        </button>
    </div>

    <nav aria-label="Navigation administrative" class="flex-1 space-y-5 overflow-y-auto px-3 py-4">
        <?php if (isset($component)) { $__componentOriginald51234c7c29a7cbd8ad34633d80579d1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald51234c7c29a7cbd8ad34633d80579d1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.nav-groups','data' => ['groups' => $navGroups]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.nav-groups'); ?>
<?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(['groups' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($navGroups)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald51234c7c29a7cbd8ad34633d80579d1)): ?>
<?php $attributes = $__attributesOriginald51234c7c29a7cbd8ad34633d80579d1; ?>
<?php unset($__attributesOriginald51234c7c29a7cbd8ad34633d80579d1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald51234c7c29a7cbd8ad34633d80579d1)): ?>
<?php $component = $__componentOriginald51234c7c29a7cbd8ad34633d80579d1; ?>
<?php unset($__componentOriginald51234c7c29a7cbd8ad34633d80579d1); ?>
<?php endif; ?>
    </nav>

    <div class="admin-sidebar__label border-t border-brand-border p-3">
        <a href="<?php echo e(route('home')); ?>" target="_blank" rel="noopener" class="btn btn-secondary btn-sm w-full">
            <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'external','class' => 'h-4 w-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?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(['name' => 'external','class' => 'h-4 w-4']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
            Voir le site public
        </a>
    </div>
</aside>


<div data-drawer-backdrop data-open="false" class="admin-drawer-backdrop fixed inset-0 z-40 bg-brand-ink/50 lg:hidden"></div>

<aside
    data-admin-drawer
    data-open="false"
    class="admin-drawer fixed inset-y-0 left-0 z-50 flex w-72 flex-col bg-brand-white shadow-2xl lg:hidden"
    aria-label="Navigation administrative mobile"
>
    <div class="flex items-center justify-between gap-2 border-b border-brand-border px-4 py-4">
        <a href="<?php echo e(route('admin.dashboard')); ?>" class="flex items-center gap-2">
            <?php if (isset($component)) { $__componentOriginal987d96ec78ed1cf75b349e2e5981978f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal987d96ec78ed1cf75b349e2e5981978f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.logo','data' => ['class' => 'h-8 w-auto']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('logo'); ?>
<?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(['class' => 'h-8 w-auto']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal987d96ec78ed1cf75b349e2e5981978f)): ?>
<?php $attributes = $__attributesOriginal987d96ec78ed1cf75b349e2e5981978f; ?>
<?php unset($__attributesOriginal987d96ec78ed1cf75b349e2e5981978f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal987d96ec78ed1cf75b349e2e5981978f)): ?>
<?php $component = $__componentOriginal987d96ec78ed1cf75b349e2e5981978f; ?>
<?php unset($__componentOriginal987d96ec78ed1cf75b349e2e5981978f); ?>
<?php endif; ?>
            <span class="text-sm font-semibold text-brand-ink">Administration</span>
        </a>
        <button type="button" data-drawer-close class="flex h-8 w-8 items-center justify-center rounded-lg border border-brand-border text-brand-muted">
            <span class="sr-only">Fermer le menu</span>
            <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'close','class' => 'h-4 w-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?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(['name' => 'close','class' => 'h-4 w-4']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
        </button>
    </div>

    <nav aria-label="Navigation administrative mobile" class="flex-1 space-y-5 overflow-y-auto px-3 py-4">
        <?php if (isset($component)) { $__componentOriginald51234c7c29a7cbd8ad34633d80579d1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald51234c7c29a7cbd8ad34633d80579d1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.nav-groups','data' => ['groups' => $navGroups]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.nav-groups'); ?>
<?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(['groups' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($navGroups)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald51234c7c29a7cbd8ad34633d80579d1)): ?>
<?php $attributes = $__attributesOriginald51234c7c29a7cbd8ad34633d80579d1; ?>
<?php unset($__attributesOriginald51234c7c29a7cbd8ad34633d80579d1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald51234c7c29a7cbd8ad34633d80579d1)): ?>
<?php $component = $__componentOriginald51234c7c29a7cbd8ad34633d80579d1; ?>
<?php unset($__componentOriginald51234c7c29a7cbd8ad34633d80579d1); ?>
<?php endif; ?>
    </nav>

    <div class="border-t border-brand-border p-3">
        <a href="<?php echo e(route('home')); ?>" target="_blank" rel="noopener" class="btn btn-secondary btn-sm w-full">
            <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'external','class' => 'h-4 w-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?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(['name' => 'external','class' => 'h-4 w-4']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
            Voir le site public
        </a>
    </div>
</aside>
<?php /**PATH C:\wamp64\www\nh-trans\resources\views/components/admin/sidebar.blade.php ENDPATH**/ ?>