@php $heroStaff = isset($staff) && $staff->isNotEmpty() ? ($staff->first(fn ($s) => str_contains(strtolower(trim($s->role ?? '')), 'founder') || ($s->category ?? '') === 'founder') ?? $staff->first(fn ($s) => filled($s->photo)) ?? $staff->first()) : null; $staffCount = isset($staff) ? $staff->count() : 0; $categoryCount = isset($categories) ? count($categories) : 0; @endphp {{-- Hero: same split pattern as Highlights --}}
Staff

Our founding team have created and scaled world-class systems

{{ $staffCount }} {{ Str::plural('member', $staffCount) }} @if ($categoryCount > 0) {{ $categoryCount }} {{ Str::plural('area', $categoryCount) }} @endif

Meet the dedicated people behind Life Football Club — leadership, coaching, and operations working as one.

Meet the team
@if ($heroStaff && filled($heroStaff->photo))
Staff image unavailable
{{ $heroStaff->name }}
@else
Life Football Club
@endif
{{-- Chip Filters (scroll target for hero CTA) --}}
@foreach($categories ?? [] as $cat) @endforeach
{{-- Role-based layout: Founder alone, Trio (Club Mgr, Head Coach, Asst Coach), then rest as small cards --}} @php $isFounder = fn($s) => str_contains(strtolower(trim($s->role ?? '')), 'founder') || $s->category === 'founder'; $founder = $staff->first($isFounder); $fixedRoles = ['club manager', 'head coach', 'assistant coach', 'assistance coach']; $otherStaff = $staff->filter(fn($s) => !$isFounder($s) && !in_array(strtolower(trim($s->role ?? '')), $fixedRoles))->values(); @endphp @if($founder)
@if($founder->photo) {{ $founder->name }} @else
@endif
{{ $founder->name }}

{{ $founder->role }}

@if($founder->bio)

{{ $founder->bio }}

@endif
@if($founder->linkedin)@endif @if($founder->twitter)@endif
{{-- Trio: Club Manager, Head Coach, Assistant Coach — large vertical cards — reference design --}} @php $trio = $staff->filter(fn($s) => !$isFounder($s) && in_array(strtolower(trim($s->role ?? '')), $fixedRoles)) ->sortBy(fn($s) => array_search(strtolower(trim($s->role)), $fixedRoles)) ->values(); $restStaff = $staff->filter(fn($s) => !$isFounder($s) && !in_array(strtolower(trim($s->role ?? '')), $fixedRoles))->values(); @endphp @if($trio->isNotEmpty())
@foreach($trio as $person)
@if($person->photo) {{ $person->name }} @else
@endif
{{ $person->name }}

{{ $person->role }}

@if($person->bio)

{{ $person->bio }}

@endif
@if($person->linkedin)@endif @if($person->twitter)@endif
@endforeach
@endif
@else {{-- No founder: show trio (Club Manager, Head Coach, Asst Coach) as top section --}} @php $fixedRoles = ['club manager', 'head coach', 'assistant coach', 'assistance coach']; $trio = $staff->filter(fn($s) => in_array(strtolower(trim($s->role ?? '')), $fixedRoles)) ->sortBy(fn($s) => array_search(strtolower(trim($s->role)), $fixedRoles)) ->values(); @endphp @if($trio->isNotEmpty())
@foreach($trio as $person)
@if($person->photo) {{ $person->name }} @else
@endif
{{ $person->name }}

{{ $person->role }}

@if($person->bio)

{{ $person->bio }}

@endif
@if($person->linkedin)@endif @if($person->twitter)@endif
@endforeach
@endif @endif {{-- Other Staff (smaller cards) — everyone except Founder + Trio — role-based, no is_key needed --}} @if(isset($otherStaff) && $otherStaff->isNotEmpty())
@foreach($otherStaff as $person)
@if($person->photo) {{ $person->name }} @else
@endif
{{ $person->name }}

{{ $person->role }}

@endforeach
@endif @if(isset($staff) && $staff->isEmpty())

No staff members yet. Check back soon!

@endif
@include('partials.highlight-hero-styles')