@extends('layouts.app') @section('content')

{{ link_to_route('users.show', 'Lihat Profil '.$user->name, [$user->id], ['class' => 'btn btn-default']) }}
{{ $user->name }} Pohon Keluarga

{{ 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
@endsection @section ('ext_css') @endsection