Files
3dealer/resources/views/components/footer.blade.php
T
2026-10-24 00:20:57 +03:00

61 lines
3.2 KiB
PHP

<footer class="border-t border-black">
<div class="max-w-7xl mx-auto px-4 py-12 flex flex-col items-center gap-10 sm:px-8 lg:px-10 lg:py-20 lg:gap-16">
{{-- Logo --}}
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0">
<img src="/images/logo.png" alt="{{ config('app.name') }}" class="h-24 w-auto lg:h-40">
</a>
<div class="flex flex-col items-center gap-10 lg:gap-16">
{{-- Links --}}
<nav aria-label="{{ __('storefront.footer.nav_label') }}">
<ul class="flex flex-wrap justify-center items-center gap-x-8 gap-y-3 font-semibold uppercase">
<li><a href="{{ route('contact') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.nav.contact') }}</a></li>
<li><a href="{{ route('legal.shipping-returns') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.footer.shipping_returns') }}</a></li>
</ul>
</nav>
{{-- Payment icons --}}
<div class="flex flex-wrap justify-center items-center gap-5" aria-label="{{ __('storefront.footer.payment_methods') }}">
<x-ui.payment-icon name="visa" :height="13" />
<x-ui.payment-icon name="mastercard" :height="18" />
<x-ui.payment-icon name="paypal" :height="18" />
<x-ui.payment-icon name="applepay" :height="14" />
<x-ui.payment-icon name="gpay" :height="14" />
<x-ui.payment-icon name="klarna" :height="10" />
</div>
</div>
{{-- Social media — URLs from Stoic (settings.md); empty ones are hidden. --}}
@if ($stoicSettings->socialLinks())
<nav aria-label="{{ __('storefront.footer.social') }}">
<ul class="flex items-center gap-4">
@foreach ($stoicSettings->socialLinks() as $social)
<li>
<a href="{{ $social['url'] }}" aria-label="{{ $social['label'] }}" class="hover:text-brand">
<x-ui.icon :name="$social['icon']" :size="22" />
</a>
</li>
@endforeach
</ul>
</nav>
@endif
{{-- Copyright --}}
<div class="flex flex-col items-center gap-2 text-center text-base lg:flex-row lg:text-lg">
<p class="">
&copy; {{ date('Y') }} {{ config('app.name') }}. {{ __('storefront.footer.rights') }}
</p>
<div class="flex flex-wrap justify-center items-center gap-x-2 gap-y-1">
<a href="{{ route('legal.terms') }}" class="underline-slide [--slide-h:1px] pb-0">{{ __('storefront.footer.terms') }}</a>
<span aria-hidden="true">|</span>
<a href="{{ route('legal.privacy') }}" class="underline-slide [--slide-h:1px] pb-0">{{ __('storefront.footer.privacy') }}</a>
<span aria-hidden="true">|</span>
<a href="{{ route('legal.cookies') }}" class="underline-slide [--slide-h:1px] pb-0">{{ __('storefront.footer.cookies') }}</a>
</div>
</div>
</div>
</footer>