{{ __('Dashboard') }}

@if(Auth::user()->group_id === 1) Admin View @endif

Welcome back, {{ Auth::user()->first_name }}!

You are currently logged into the Fibbers York Archive.

@if (session('success'))
{{ session('success') }}
@endif @if(Auth::user()->group_id === 1 && isset($pendingBandMembers) && $pendingBandMembers->isNotEmpty())

Pending Band Member Approvals {{ $pendingBandMembers->count() }}

Users claiming "I was in this band"
@foreach($pendingBandMembers as $claim) @endforeach
Band User Email Action
{{ $claim->band_name }} {{ $claim->first_name }} {{ $claim->last_name }} {{ $claim->email }}
@csrf
@csrf @method('DELETE')
@endif

{{ Auth::user()->group_id === 1 ? 'All Recent Comments' : 'Your Recent Comments' }}

@if($comments->isEmpty())

No comments yet!

The Fibbers Archive thrives on your stories and memories. Why not head over to the bands or gigs sections and share something?

@else
@foreach($comments as $comment)
@if(Auth::user()->group_id === 1) {{ $comment->user->first_name }} {{ $comment->user->last_name }} • @endif On @php $parent = $comment->parentable; $name = 'View Item'; $url = '#'; if ($parent) { if ($comment->parentable_type === 'App\Band') { $name = $parent->name ?? $parent->title ?? 'View Band'; if (isset($parent->slug)) { $url = route('bands.show', $parent->slug); } } elseif ($comment->parentable_type === 'App\Event') { $baseName = $parent->name ?? $parent->f2 ?? 'Gig'; $date = $parent->event_date ? $parent->event_date->format('d/m/Y') : 'Unknown Date'; $name = "{$baseName} ({$date})"; $url = route('gigs.show', $parent->id); } elseif ($comment->parentable_type === 'App\Story') { $name = $parent->name ?? $parent->title ?? 'View Story'; if (isset($parent->slug)) { $url = route('stories.show', $parent->slug); } } } @endphp @if($url !== '#') {{ $name }} @else Deleted or Unavailable Item @endif
{{ $comment->created_at->diffForHumans() }}

{{ $comment->text ?: 'No comment text provided (image only).' }}

@if($comment->resources->isNotEmpty())
@foreach($comment->resources as $resource) Attached memory @endforeach
@endif @if(Auth::user()->group_id === 1)
@if($comment->reported) Reported @endif
@if($comment->user->deactivated) Already Kicked @else Kick User @endif
@csrf @method('DELETE')
@endif
@endforeach
{{ $comments->links() }}
@endif