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.
 
 
 
 
 

83 lines
3.2 KiB

@extends('layouts.app')
@section('content')
</div>
<div class="container-fluid">
<h1 class="page-header">
@include('users.partials.action-buttons')
{{ $user->name }} <small>{{ trans('app.family_chart') }}</small>
</h1>
<div class="panel panel-default table-responsive">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<th style="width: 9%">{{ trans('user.grand_father') }} & {{ trans('user.grand_mother') }}</th>
<td class="text-center">
{{ $fatherGrandpa ? $fatherGrandpa->profileLink('chart') : '?' }}
</td>
<td class="text-center">
{{ $fatherGrandma ? $fatherGrandma->profileLink('chart') : '?' }}
</td>
<td class="text-center">
{{ $motherGrandpa ? $motherGrandpa->profileLink('chart') : '?' }}
</td>
<td class="text-center">
{{ $motherGrandma ? $motherGrandma->profileLink('chart') : '?' }}
</td>
</tr>
<tr>
<th>{{ trans('user.father') }} & {{ trans('user.mother') }}</th>
<td class="text-center" colspan="2">
{{ $father ? $father->profileLink('chart') : '?' }}
</td>
<td class="text-center" colspan="2">
{{ $mother ? $mother->profileLink('chart') : '?' }}
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td class="text-center lead" colspan="4">
<strong>{{ $user->profileLink('chart') }} ({{ $user->gender }})</strong>
</td>
</tr>
<tr>
<th>{{ trans('user.childs') }} & {{ trans('user.grand_childs') }}</th>
<td colspan="4">
<?php $no = 0; ?>
@foreach($childs->chunk(4) as $chunkedChild)
<div class="">
@foreach($chunkedChild as $child)
<div class="col-md-3">
<h4><strong>{{ ++$no }}. {{ $child->profileLink('chart') }} ({{ $child->gender }})</strong></h4>
<ul style="padding-left: 30px">
@foreach($child->childs as $grand)
<li>{{ $grand->profileLink('chart') }} ({{ $grand->gender }})</li>
@endforeach
</ul>
</div>
@endforeach
@if (! $loop->last)
<div class="clearfix"></div><hr>
@endif
</div>
@endforeach
</td>
</tr>
</tbody>
</table>
</div>
<h4 class="page-header">
{{ trans('user.siblings') }}, {{ trans('user.nieces') }}, & {{ trans('user.grand_childs') }}
</h4>
@foreach ($siblings->chunk(3) as $chunkedSiblings)
<div class="row">
@foreach ($chunkedSiblings as $sibling)
<div class="col-sm-4">
@include('users.partials.chart-sibling')
</div>
@endforeach
</div>
@endforeach
@endsection