@section('title') | {{ __('app.family_chart') }} @endsection {{ __('app.family_chart') }}
{{-- chart --}}
{{ __('app.family_chart') }}
{{-- grandparents --}}
{{ trans('person.grandfather') }} & {{ trans('person.grandmother') }} :
@if ($person->father and $person->father->father) $person->father->father->isDeceased(), ])> {{ $person->father->father->name }} @else @endif
@if ($person->father and $person->father->mother) $person->father->mother->isDeceased(), ])> {{ $person->father->mother->name }} @else @endif
@if ($person->mother and $person->mother->father) $person->mother->father->isDeceased(), ])> {{ $person->mother->father->name }} @else @endif
@if ($person->mother and $person->mother->mother) $person->mother->mother->isDeceased(), ])> {{ $person->mother->mother->name }} @else @endif
{{-- uncles/ants & cousins --}}
{{ trans('person.uncles') }} & {{ trans('person.aunts') }} :
{{ trans('person.cousins') }} :
@if ($person->father) @foreach ($person->father->siblings(true) as $index => $sibling)
{{ $index + 1 }}. $sibling->isDeceased(), ])> {{ $sibling->name }}
    @foreach ($sibling->children as $child)
  1. $child->isDeceased(), ])> {{ $child->name }}
  2. @endforeach
@endforeach @endif
@if ($person->mother) @foreach ($person->mother->siblings(true) as $index => $sibling)
{{ $index + 1 }}. $sibling->isDeceased(), ])> {{ $sibling->name }}
    @foreach ($sibling->children as $child)
  1. $child->isDeceased(), ])> {{ $child->name }}
  2. @endforeach
@endforeach @endif
{{-- parents --}}
{{ trans('person.father') }} & {{ trans('person.mother') }} :
@if ($person->father) $person->father->isDeceased(), ])> {{ $person->father->name }} @else @endif
@if ($person->mother) $person->mother->isDeceased(), ])> {{ $person->mother->name }} @else @endif
{{-- person --}}
$person->isDeceased(), ])> {{ $person->name }}
{{-- children & grandchildren --}}
{{ trans('person.children') }} :
{{ trans('person.grandchildren') }} :
@foreach ($person->children_with_children as $index => $child)
{{ $index + 1 }}. $child->isDeceased(), ])> {{ $child->name }}
    @foreach ($child->children as $grandchild)
  1. $grandchild->isDeceased(), ])> {{ $grandchild->name }}
  2. @endforeach
@endforeach
{{-- siblings & nephews/nieces --}}
{{ trans('person.siblings') }} :
{{ trans('person.nephews') }} & {{ trans('person.nieces') }} :
@foreach ($person->siblings(true) as $index => $sibling)
{{ $index + 1 }}. $sibling->isDeceased(), ])> {{ $sibling->name }}
    @foreach ($sibling->children as $child)
  1. $child->isDeceased(), ])> {{ $child->name }}
  2. @endforeach
@endforeach