@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 ($user->childs->count())
@foreach($user->childs as $child)
-
{{ link_to_route('users.tree', $child->id, [$child->id], ['title' => $child->name.' ('.$child->gender.')']) }}
@if ($child->childs->count())
@foreach($child->childs as $grand)
-
{{ link_to_route('users.tree', $grand->id, [$grand->id], ['title' => $grand->name.' ('.$grand->gender.')']) }}
@if ($grand->childs->count())
@foreach($grand->childs as $gg)
-
{{ link_to_route('users.tree', $gg->id, [$gg->id], ['title' => $gg->name.' ('.$gg->gender.')']) }}
@endforeach
@endif
@endforeach
@endif
@endforeach
@endif
@endsection
@section ('ext_css')
@endsection