@extends('layouts.user-profile-wide') @section('subtitle', trans('app.family_tree')) @section('user-content')
{{ link_to_route('users.tree', $user->name, [$user->id], ['title' => $user->name.' ('.$user->gender.')']) }} @if ($childsCount = $user->childs->count())
@foreach($user->childs as $child)
{{ link_to_route('users.tree', $child->name, [$child->id], ['title' => $child->name.' ('.$child->gender.')']) }} @if ($grandsCount = $child->childs->count())
@foreach($child->childs as $grand)
{{ link_to_route('users.tree', $grand->name, [$grand->id], ['title' => $grand->name.' ('.$grand->gender.')']) }} @if ($ggCount = $grand->childs->count())
@foreach($grand->childs as $gg)
{{ link_to_route('users.tree', $gg->name, [$gg->id], ['title' => $gg->name.' ('.$gg->gender.')']) }} @if ($ggcCount = $gg->childs->count())
@foreach($gg->childs as $ggc)
{{ link_to_route('users.tree', $ggc->name, [$ggc->id], ['title' => $ggc->name.' ('.$ggc->gender.')']) }} @if ($ggccCount = $ggc->childs->count())
@foreach($ggc->childs as $ggcc)
{{ link_to_route('users.tree', $ggcc->name, [$ggcc->id], ['title' => $ggcc->name.' ('.$ggcc->gender.')']) }}
@endforeach
@endif
@endforeach
@endif
@endforeach
@endif
@endforeach
@endif
@endforeach
@endif

 
@if ($childsTotal)
{{ trans('app.child_count') }}
{{ $childsTotal }}
@endif @if ($grandChildsTotal)
{{ trans('app.grand_child_count') }}
{{ $grandChildsTotal }}
@endif @if ($ggTotal)
Jumlah Cicit
{{ $ggTotal }}
@endif @if ($ggcTotal)
Jumlah Canggah
{{ $ggcTotal }}
@endif @if ($ggccTotal)
Jumlah Wareng
{{ $ggccTotal }}
@endif
 
@endsection @section ('ext_css') @endsection