You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

57 lines
2.3 KiB

@extends('layouts.user-profile-wide')
@section('subtitle', trans('app.family_tree'))
@section('user-content')
<div class="tree">
<ul>
<li>
{{ link_to_route('users.tree', $user->name, [$user->id], ['title' => $user->name.' ('.$user->gender.')']) }}
@if ($user->childs->count())
<ul>
@foreach($user->childs as $child)
<li>
{{ link_to_route('users.tree', $child->id, [$child->id], ['title' => $child->name.' ('.$child->gender.')']) }}
@if ($child->childs->count())
<ul>
@foreach($child->childs as $grand)
<li>
{{ link_to_route('users.tree', $grand->id, [$grand->id], ['title' => $grand->name.' ('.$grand->gender.')']) }}
@if ($grand->childs->count())
<ul>
@foreach($grand->childs as $gg)
<li>
{{ link_to_route('users.tree', $gg->id, [$gg->id], ['title' => $gg->name.' ('.$gg->gender.')']) }}
<?php /*
@if ($gg->childs->count())
<ul>
@foreach($gg->childs as $ggc)
<li>
{{ link_to_route('users.tree', $ggc->id, [$ggc->id], ['title' => $ggc->name.' ('.$ggc->gender.')']) }}
</li>
@endforeach
</ul>
@endif
*/ ?>
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
@endif
</li>
</ul>
<div class="clearfix"></div>
</div>
@endsection
@section ('ext_css')
<link rel="stylesheet" href="{{ asset('css/tree2.css') }}">
@endsection