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.
38 lines
1.2 KiB
38 lines
1.2 KiB
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
@can('edit', $couple)
|
|
<div class="pull-right">
|
|
{{ link_to_route('couples.edit', trans('couple.edit'), $couple, ['class' => 'btn btn-warning']) }}
|
|
</div>
|
|
@endcan
|
|
<h2 class="page-header">
|
|
{{ $couple->husband->name }} & {{ $couple->wife->name }} <small>{{ trans('couple.detail') }}</small>
|
|
</h2>
|
|
|
|
@include('couples.partials.stat')
|
|
<br>
|
|
<h4 class="page-header">{{ trans('user.childs') }} & {{ trans('user.grand_childs') }}</h4>
|
|
@if ($couple->childs->isEmpty())
|
|
<i>{{ trans('app.childs_were_not_recorded') }}</i>
|
|
@else
|
|
<?php $no = 0; ?>
|
|
@foreach($couple->childs->chunk(4) as $chunkedChild)
|
|
<div class="row">
|
|
@foreach($chunkedChild as $child)
|
|
<div class="col-md-3">
|
|
<h4><strong>{{ ++$no }}. {{ $child->profileLink() }} ({{ $child->gender }})</strong></h4>
|
|
<ul style="padding-left: 35px">
|
|
@foreach($child->childs as $grand)
|
|
<li>{{ $grand->profileLink() }} ({{ $grand->gender }})</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endforeach
|
|
@if (! $loop->last)
|
|
<div class="clearfix"></div><hr>
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
@endsection
|