<?php
    $navItems = $siteFooterNavigation ?? config('nh_trans.nav');
    $services = $siteServices ?? collect(config('nh_trans.services'));
    $contact = $siteContact ?? config('nh_trans.contact');
    $footer = $siteFooter ?? config('nh_trans.footer');
    $companyName = data_get($siteCompany ?? config('nh_trans.company'), 'name', 'NH TRANS');
?>

<footer class="bg-brand-dark text-brand-white">
    <div class="mx-auto max-w-6xl px-6 py-14">
        <div class="grid grid-cols-1 gap-10 sm:grid-cols-2 lg:grid-cols-4">
            <div class="flex flex-col gap-4 lg:col-span-1">
                <div class="rounded-lg bg-brand-white/95 p-2 w-fit">
                    <?php if (isset($component)) { $__componentOriginal987d96ec78ed1cf75b349e2e5981978f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal987d96ec78ed1cf75b349e2e5981978f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.logo','data' => ['class' => 'h-10 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-10 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; ?>
                </div>
                <p class="text-sm leading-relaxed text-brand-white/75">
                    <?php echo e($footer['about_text'] ?? ''); ?>

                </p>
            </div>

            <div class="flex flex-col gap-3">
                <h2 class="text-sm font-semibold uppercase tracking-wide text-brand-light">Navigation</h2>
                <ul class="flex flex-col gap-2">
                    <?php $__currentLoopData = $navItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li>
                            <?php $routeName = $item['route_name'] ?? $item['route'] ?? null; ?>
                            <a href="<?php echo e($routeName ? route($routeName) : ($item['url'] ?? '#')); ?>" class="text-sm text-brand-white/75 transition-colors hover:text-brand-white">
                                <?php echo e($item['label']); ?>

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

            <div class="flex flex-col gap-3">
                <h2 class="text-sm font-semibold uppercase tracking-wide text-brand-light">Nos services</h2>
                <ul class="flex flex-col gap-2">
                    <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li>
                            <a href="<?php echo e(route('services')); ?>#<?php echo e($service['slug']); ?>" class="text-sm text-brand-white/75 transition-colors hover:text-brand-white">
                                <?php echo e($service['title']); ?>

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

            <div class="flex flex-col gap-3">
                <h2 class="text-sm font-semibold uppercase tracking-wide text-brand-light">Contact</h2>
                <ul class="flex flex-col gap-2 text-sm text-brand-white/75">
                    <li>
                        <?php if($contact['email']): ?>
                            <a href="mailto:<?php echo e($contact['email']); ?>" class="transition-colors hover:text-brand-white"><?php echo e($contact['email']); ?></a>
                        <?php else: ?>
                            <span class="italic text-brand-white/50">E-mail à renseigner</span>
                        <?php endif; ?>
                    </li>
                    <?php $__empty_1 = true; $__currentLoopData = $contact['phones']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $phone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <li>
                            <?php if(!empty($phone['number'])): ?>
                                <a href="tel:<?php echo e(preg_replace('/\s+/', '', $phone['number'])); ?>" class="transition-colors hover:text-brand-white">
                                    <?php echo e($phone['number']); ?>

                                </a>
                            <?php endif; ?>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <li><span class="italic text-brand-white/50">Téléphone à renseigner</span></li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>

        <div class="route-divider my-10 opacity-30"></div>

        <div class="flex flex-col items-center justify-between gap-4 text-xs text-brand-white/60 sm:flex-row">
            <p>&copy; <?php echo e(date('Y')); ?> <?php echo e($companyName); ?>. Tous droits réservés.</p>
            <a href="<?php echo e(route('admin.login')); ?>" class="text-brand-white/50 transition-colors hover:text-brand-white/80">
                <?php echo e($footer['admin_link_label'] ?? 'Connexion administrateur'); ?>

            </a>
        </div>
    </div>
</footer>
<?php /**PATH C:\wamp64\www\nh-trans\resources\views/components/site-footer.blade.php ENDPATH**/ ?>