@php $galleryTitle = $resource->caption ?: ($resource->imageCategory->name ?? 'Archive Artifact'); $ogImage = $resource->thumbnail(1200, 630) ?? ($resource->file ? Storage::url($resource->file) : asset('images/hero.png')); $galleryDesc = !empty(trim($resource->description ?? '')) ? \Illuminate\Support\Str::limit(strip_tags($resource->description), 155) : ($resource->caption ? $resource->caption . ' from the historical live music archive of Fibbers, York.' : 'Historical live music artifact from the Fibbers York archive.'); $imageSchema = [ '@context' => 'https://schema.org', '@type' => 'ImageObject', 'name' => $galleryTitle, 'contentUrl' => $resource->file ? Storage::url($resource->file) : null, 'thumbnailUrl' => $ogImage, 'description' => $galleryDesc, ]; $bandName = isset($associatedBands) && $associatedBands->isNotEmpty() ? $associatedBands->first()->name : null; $bandBySlug = isset($associatedBands) ? $associatedBands->keyBy('slug') : collect(); $bandByName = isset($associatedBands) ? $associatedBands->keyBy(fn($b) => mb_strtolower($b->name)) : collect(); $backLinkUrl = $backUrl ?? route('gallery.index', \Illuminate\Support\Str::slug($resource->imageCategory->name ?? 'band-posters')); @endphp

{{ $resource->caption ?: 'Untitled Artifact' }}

{{ $resource->imageCategory->name ?? 'General Archive' }} @if ($resource->calendar_month || $resource->calendar_year) {{ $resource->calendar_month ? date('F', mktime(0, 0, 0, $resource->calendar_month, 1)) : '' }} {{ $resource->calendar_year }} @endif
{{ $resource->altText($bandName) }}
@php $hasDescription = !empty(trim($resource->description ?? '')); $hasBands = isset($associatedBands) && $associatedBands->isNotEmpty(); $hasTags = $resource->tags->isNotEmpty(); $hasSidebarInfo = $hasDescription || $hasBands || $hasTags; @endphp @if ($hasSidebarInfo)
@if ($hasDescription)

Field Notes

"{{ $resource->description }}"

@endif @if ($hasBands) @php $bandCount = $associatedBands->count(); @endphp

Bands

{{ $bandCount }} {{ \Illuminate\Support\Str::plural('Artist', $bandCount) }}
@if ($bandCount === 1) @php $singleBand = $associatedBands->first(); @endphp
{{ $singleBand->name }}

{{ $singleBand->events_count }} {{ \Illuminate\Support\Str::plural('gig', $singleBand->events_count) }} at Fibbers

View Archive
@else @if($bandCount > 10)
@endif
@foreach($associatedBands as $index => $band) {{ $band->name }} @endforeach
@if($bandCount > 8)
@endif @endif
@endif @if ($hasTags) @php $tagCount = $resource->tags->count(); @endphp

Tags

@foreach ($resource->tags as $tagIndex => $tag) @endforeach
@if($tagCount > 10)
@endif
@endif
@endif
Own A Piece Of History

Buy Merch With This Image

High quality art prints and custom T-shirts, Hoodies & Mugs from only £10.00. Super-cool AND you're supporting the archive!

Choose Merch Products →
Archive Detail {{ $resource->caption ?: 'Artifact' }}
{{ $galleryTitle }}
Pinch or tap +/- to zoom • Drag to pan