@extends('layouts.app') @section('title', 'Talent Detail') @section('styles') @endsection @section('content')
@include('includes.alerts')

@if ($type == 'real-family') {{ Str::upper($talent->family_name) }} @else {{ Str::ucfirst($talent->first_name) . ' ' . Str::upper(Str::substr($talent->last_name, 0, 1)) . '.' ?? 'Unknown Talent' }} @endif

@if ($type == 'real-family') @if ($talent->photos->isNotEmpty()) @foreach ($talent->photos as $photo)
Family Photo
@endforeach
@else

No photos available for this family.

@endif @elseif ($type == 'hand-talent') @if ($talent->handImages->isNotEmpty()) @foreach ($talent->handImages as $handImage)
Hand Image
@endforeach @else

No photos available for this talent.

@endif @else @if ($talent->images->isNotEmpty()) @foreach ($talent->images as $talentImage)
Talent Image
@endforeach @else

No photos available for this talent.

@endif @endif @if ($type != 'real-family')

Age : {{ $talent->age }}

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

@php $height = $talent->height; $feet = floor($height); $inches = round(($height - $feet) * 12); @endphp

Height: {{ $feet }}'{{ $inches }} inches

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

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

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

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

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

Click To Download Resume :

@endif
@endif @if($type != 'real-family')
@endif
@if ($type != 'real-family')
@if ( !empty($talent->upload_head_shot_comp_card) && file_exists(storage_path( 'app/public/talent_head_shot_comp_card/' . $talent->id . '/' . $talent->upload_head_shot_comp_card))) Talent Headshot @else

Image not available

@endif
@if ($talent->talentvideo->isNotEmpty())
@foreach ($talent->talentvideo as $talentVideo)
@if (Str::contains($talentVideo->video_url, 'video_url !!} @else @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

Video not available

@endif @endif
@endforeach
@else

No videos available.

@endif
@if ($talent->talentaudio->isNotEmpty()) @foreach ($talent->talentaudio as $talentAudio)
@endforeach @else

Audios not available.

@endif
@endif
@endsection @section('scripts') @endsection