Files
mikeisdeving/resources/views/components/site/footer.blade.php
T

20 lines
834 B
PHP
Raw Normal View History

@php
$profile = \App\Models\Profile::query()->first();
$socials = collect($profile?->social_links ?? []);
@endphp
<footer class="mt-24 border-t border-white/5">
<div class="mx-auto flex max-w-5xl flex-col items-center gap-4 px-6 py-10 text-sm text-paper-dim sm:flex-row sm:justify-between">
<p>&copy; {{ now()->year }} {{ $profile?->name ?? config('app.name') }}. All rights reserved.</p>
@if ($socials->isNotEmpty())
<div class="flex items-center gap-5">
@foreach ($socials as $platform => $url)
<a href="{{ $url }}" target="_blank" rel="noopener noreferrer" class="capitalize transition hover:text-accent">
{{ $platform }}
</a>
@endforeach
</div>
@endif
</div>
</footer>