{{-- names --}} {{-- sex & gender --}} {{-- birth --}} @if ($person->isDeceased()) {{-- death --}} @else {{-- contact --}} @endif {{-- family --}} {{-- partners --}} @foreach ($person->couples->sortBy('date_start') as $couple) @endforeach {{-- children --}} @foreach ($person->childrenNaturalAll() as $child) @endforeach {{-- siblings --}} @foreach ($person->siblings() as $sibling) @endforeach {{-- files --}} @foreach ($files as $file) @endforeach {{-- photos --}}
{{ __('person.person') }}
  {{ __('person.names') }}
  {{ __('person.firstname') }} : {{ $person->firstname }}
  {{ __('person.surname') }} : {{ $person->surname }}
  {{ __('person.birthname') }} : {{ $person->birthname }}
  {{ __('person.nickname') }} : {{ $person->nickname }}
  {{ __('person.sex') }} & {{ __('person.gender') }}  
  {{ __('person.sex') }} : {{ $person->sex === 'm' ? __('app.male') : __('app.female') }}
  {{ __('person.gender') }} : {{ $person->gender ? $person->gender->name : '' }}
  {{ __('person.birth') }}  
  {{ __('person.dob') }} : {{ $person->birth_formatted }}
  {{ __('person.pob') }} : {{ $person->pob }}
  {{ __('person.age') }} : {{ $person->age }}
  {{ __('person.death') }}  
  {{ __('person.dod') }} : {{ $person->death_formatted }}
  {{ __('person.pod') }} : {{ $person->pod }}
  {{ __('person.cemetery') }} : @php $cemetery = array_filter([$person->getMetadataValue('cemetery_location_name'), $person->getMetadataValue('cemetery_location_address')]); @endphp @foreach ($cemetery as $line) {{ $line }} @if (!$loop->last)
@endif @endforeach
  {{ __('person.contact') }}  
  {{ __('person.address') }} : {{ $person->address }}
  {{ __('person.phone') }} : {{ $person->phone }}
 
  {{ __('person.summary') }}  
  {{ $person->summary }}
 
{{ __('person.family') }}  
  {{ __('person.father') }} : @if ($person->father) {{ $person->father->name }} {{ $person->father->birth_year }} @endif
  {{ __('person.mother') }} : @if ($person->mother) {{ $person->mother->name }} {{ $person->mother->birth_year }} @endif
  {{ __('person.parents') }} : @if ($person->parents) {{ $person->parents->person_1->name }} {{ $person->parents->person_1->birth_year }}
{{ $person->parents->person_2->name }} {{ $person->parents->person_2->birth_year }} @endif
  {{ __('person.partner') }} : @if ($person->currentPartner()) {{ $person->currentPartner()->name }} {{ $person->currentPartner()->birth_year }} @endif
 
{{ __('person.partners') }} @if (count($person->couples) > 0) @endif
  @if ($couple->person2_id === $person->id) {{ $couple->person_1->name }} @else {{ $couple->person_2->name }} @endif @if ($couple->is_married) @endif
{{ $couple->date_start ? $couple->date_start->timezone(session('timezone') ?? 'UTC')->isoFormat('LL') : '??' }} @if ($couple->date_end or $couple->has_ended)
{{ $couple->date_end ? $couple->date_end->timezone(session('timezone') ?? 'UTC')->isoFormat('LL') : '??' }} @endif
 
{{ __('person.children') }} @if (count($person->childrenNaturalAll()) > 0) @endif
  {{ $child->name }} {{ $child->birth_year }}
 
{{ __('person.siblings') }} @if (count($person->siblings()) > 0) @endif
  {{ $sibling->name }} {{ $sibling->birth_year }} {{ $sibling->type }}
 
{{ __('person.files') }} @if (count($files) > 0) @endif
  {{ $file->file_name }}
 
{{ __('person.photos') }} @if (count($images) > 0) @endif
@foreach ($images as $image)
{{ $person->name }}
@endforeach