@include('includes.header') @include('includes.alerts')

{{ Str::ucfirst($talent->user->name) }}

@foreach ($talent->images->take(6) as $talentImage)
@endforeach

Age Type : {{ $ageType }}

Age : {{ $talent->age }}

Gender : {{ Str::ucfirst($talent->gender) }}

Height: {{ $talent->height }} inches

Hair Color : {{ Str::ucfirst($talent->hairColor->name) }}

Eye Color : {{ Str::ucfirst($talent->eyeColor ? $talent->eyeColor->name : '-') }}

Race : {{ Str::ucfirst($talent->race) }}

Location : {{ Str::ucfirst($talent->state) }}

@if (!empty($talent->resume))

Click To Download Resume :

@endif
{{--

Best E-mail To Reach You: {{ $talent->user->email }}

--}} {{--
@if (in_array($talent->id, $userFavorites))
@csrf
@else
@csrf
@endif
--}}
@foreach ($talent->images as $talentImage)
@endforeach
@if ($talent->talentvideo->isNotEmpty())
@foreach ($talent->talentvideo as $talentVideo)
@if (Str::contains($talentVideo->video_url, 'video_url !!} @else {{-- Convert YouTube link to iframe --}} @php $videoId = null; if ( preg_match( '/youtu\.be\/([a-zA-Z0-9_-]+)/', $talentVideo->video_url, $matches, ) ) { $videoId = $matches[1]; } elseif ( preg_match( '/youtube\.com\/.*v=([a-zA-Z0-9_-]+)/', $talentVideo->video_url, $matches, ) ) { $videoId = $matches[1]; } @endphp @if ($videoId) @else {{-- Fallback if URL is invalid --}}

Invalid video URL

@endif @endif
@endforeach
@else {{-- Fallback if no videos --}}

No videos available.

@endif
@if ($talent->talentaudio->isNotEmpty()) @foreach ($talent->talentaudio as $talentAudio)
@endforeach @else {{-- Fallback if no audios --}}

No audios available.

@endif
@include('includes.footer')