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.
85 lines
3.1 KiB
85 lines
3.1 KiB
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
</div>
|
|
<div class="container-fluid">
|
|
<h1 class="page-header">
|
|
<div class="pull-right">
|
|
{{ link_to_route('users.show', 'Lihat Profil '.$user->name, [$user->id], ['class' => 'btn btn-default']) }}
|
|
</div>
|
|
{{ $user->name }} <small>Bagan Keluarga</small>
|
|
</h1>
|
|
|
|
<div class="panel panel-default table-responsive">
|
|
<table class="table table-bordered table-striped">
|
|
<tbody>
|
|
<tr>
|
|
<th style="width: 9%">Kakek & Nenek</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>Ayah & Ibu</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> </th>
|
|
<td class="text-center lead" colspan="4">
|
|
<strong>{{ $user->profileLink('chart') }} ({{ $user->gender }})</strong>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Anak-Anak & Cucu-Cucu</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">
|
|
Saudara, Keponakan, dan Cucu
|
|
</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
|