@include('pdf.css.style')
@if ($application->project_title)

{{ $application->project_title }}

@endif
@php $applicant = $application->applicants->first(); $address = $applicant->address; @endphp
@if ($applicant->webSite) @endif @if ($applicant->facebook) @endif @if ($applicant->instagram) @endif @if ($applicant->twitter) @endif
Nom :  {{ $applicant->fullname }}
Genre :  {{ $applicant->genre }}
Né·e en :  {{ optional($applicant->birthdate)->format('Y') }}
Adresse :  @if ($address) {!! nl2br(e($address->streetAddress)) !!}
{{ $address->postal_code }} {{ $address->locality }} @if ($address->country_id)
{{ $address->country->name }} @endif @else   @endif
Téléphone :  {{ $applicant->phone_number }}
Email :  {{ $applicant->email }}
Site :  {{ $applicant->webSite->url }}
Facebook :  {{ $applicant->facebook->url }}
Instagram :  {{ $applicant->instagram->url }}
X (Twitter) :  {{ $applicant->twitter->url }}
@php $coApplicants = $application->applicants->skip(1)->all(); @endphp @if (count($coApplicants) > 0)

Co-candidat(s)

@foreach ($coApplicants as $coApplicant) @php $applicant = $coApplicant; $address = $applicant->address; @endphp @endforeach
@if ($applicant->webSite) @endif @if ($applicant->facebook) @endif @if ($applicant->instagram) @endif @if ($applicant->twitter) @endif
Nom :  {{ $applicant->fullname }}
Genre :  {{ $applicant->genre }}
Né·e en :  {{ optional($applicant->birthdate)->format('Y') }}
Adresse :  @if ($address) {!! nl2br(e($address->streetAddress)) !!}
{{ $address->postal_code }} {{ $address->locality }} @if ($address->country_id)
{{ $address->country->name }} @endif @else   @endif
Téléphone :  {{ $applicant->phone_number }}
Email :  {{ $applicant->email }}
Site :  {{ $applicant->webSite->url }}
Facebook :  {{ $applicant->facebook->url }}
Instagram :  {{ $applicant->instagram->url }}
X (Twitter) :  {{ $applicant->twitter->url }}
@endif @if ($application->film) @php $film = $application->film; @endphp

Fiche Film

@if ($film->duration) @endif
Titre :  {{ optional($film)->fullTitle ?? '---' }}
Durée :  {{ $film->duration }}
Genre :  @foreach ($film->genres as $genre) {{ $genre->name }} {!! !$loop->last ? ', ' : '' !!} @endforeach
Format :  @forelse (optional($film)->shootingFormats as $shootingFormat) {{ $shootingFormat->name }}{{ !$loop->last ? ', ' : '' }} @empty - @endforelse
@endif

Observations :