@extends('layouts.site') @section('title', ($speaker->meta_title ?: $speaker->name).' — Faith & Future Summit') @section('meta_description', $speaker->meta_description ?: Str::limit(strip_tags($speaker->bio), 160)) @section('og_image', $speaker->og_image ? asset('storage/'.$speaker->og_image) : ($speaker->photo ? asset('storage/'.$speaker->photo) : null)) @section('content') {{-- Hero --}}
arrow_back All Speakers
@if($speaker->photo) {{ $speaker->name }} @else
{{ strtoupper(mb_substr($speaker->name, 0, 1)) }}
@endif @if($speaker->is_featured) Featured @endif
@if($speaker->country) location_on {{ $speaker->country }} @endif

{{ $speaker->name }}

@if($speaker->role)

{{ $speaker->role }}

@endif @if($speaker->socials) @endif
{{-- Bio --}} @if($speaker->bio)

About {{ explode(' ', $speaker->name)[0] }}

{!! $speaker->bio !!}
@endif {{-- Profile Facts --}} @php $hasProfileFacts = $speaker->country || $speaker->organization || $speaker->edition_attended || $speaker->topic_area || $speaker->socials @endphp @if($hasProfileFacts)

Profile Facts

@if($speaker->country)
Country {{ $speaker->country }}
@endif @if($speaker->organization)
Organization {{ $speaker->organization }}
@endif @if($speaker->edition_attended)
Edition Attended {{ $speaker->edition_attended }}
@endif @if($speaker->topic_area)
Topic Area {{ $speaker->topic_area }}
@endif @if($speaker->socials) @php $hasSocials = collect($speaker->socials)->filter()->isNotEmpty() @endphp @if($hasSocials) @endif @endif
@endif {{-- Summit Appearances --}} @if($speaker->events->isNotEmpty())

Summit Appearances

@foreach($speaker->events as $ev) @if($ev->card_image) {{ $ev->title }} @endif
@if($ev->edition_label){{ $ev->edition_label }}@endif

{{ $ev->title }}

@if($ev->starts_at)

calendar_today {{ $ev->starts_at->format('d M Y') }}{{ $ev->city ? ' · '.$ev->city : '' }}

@endif
arrow_forward
@endforeach
@endif {{-- Related / Other Speakers --}} @php $related = collect(); if ($speaker->events->isNotEmpty()) { $eventIds = $speaker->events->pluck('id'); $related = \App\Models\Speaker::where('speakers.id', '!=', $speaker->id) ->whereHas('events', fn($q) => $q->whereIn('events.id', $eventIds)) ->orderByDesc('is_featured')->orderBy('sort_order')->take(4)->get(); } if ($related->isEmpty()) { $related = \App\Models\Speaker::where('speakers.id', '!=', $speaker->id) ->orderByDesc('is_featured')->orderBy('sort_order')->take(4)->get(); } @endphp @if($related->isNotEmpty())

Related / Other Speakers

@foreach($related as $sp)
@if($sp->photo) {{ $sp->name }} @else
person
@endif

{{ $sp->name }}

{{ collect([$sp->country, $sp->role, $sp->edition_attended])->filter()->join(' · ') }}

View Profile →
@endforeach
@endif @endsection