Implement creator studio and upload updates
This commit is contained in:
@@ -4,15 +4,19 @@
|
||||
@param \Illuminate\Support\Collection $breadcrumbs
|
||||
Collection of objects with ->name and ->url properties.
|
||||
--}}
|
||||
@if(isset($breadcrumbs) && $breadcrumbs->isNotEmpty())
|
||||
@php
|
||||
$breadcrumbTrail = \App\Support\Seo\BreadcrumbTrail::normalize($breadcrumbs ?? collect());
|
||||
@endphp
|
||||
@if($breadcrumbTrail !== [])
|
||||
<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>
|
||||
@foreach($breadcrumbTrail as $crumb)
|
||||
@if(!$loop->first)
|
||||
<span class="opacity-40" aria-hidden="true">›</span>
|
||||
@endif
|
||||
@if(!$loop->last)
|
||||
<a class="hover:text-white transition-colors" href="{{ $crumb->url }}">{{ $crumb->name }}</a>
|
||||
<a class="hover:text-white transition-colors" href="{{ $crumb['url'] }}">{{ $crumb['name'] }}</a>
|
||||
@else
|
||||
<span class="text-white/70">{{ $crumb->name }}</span>
|
||||
<span class="text-white/70" aria-current="page">{{ $crumb['name'] }}</span>
|
||||
@endif
|
||||
@endforeach
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user