Files
SkinbaseNova/resources/views/components/breadcrumbs.blade.php

20 lines
773 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{--
Breadcrumb component with schema.org structured data.
@param \Illuminate\Support\Collection $breadcrumbs
Collection of objects with ->name and ->url properties.
--}}
@if(isset($breadcrumbs) && $breadcrumbs->isNotEmpty())
<nav class="flex items-center gap-1.5 flex-wrap text-sm text-neutral-400" aria-label="Breadcrumb">
<a class="hover:text-white transition-colors" href="/">Home</a>
@foreach($breadcrumbs as $crumb)
<span class="opacity-40" aria-hidden="true"></span>
@if(!$loop->last)
<a class="hover:text-white transition-colors" href="{{ $crumb->url }}">{{ $crumb->name }}</a>
@else
<span class="text-white/70">{{ $crumb->name }}</span>
@endif
@endforeach
</nav>
@endif