@extends('layouts.app')
@section('content')
@can('edit', $couple)
{{ link_to_route('couples.edit', trans('couple.edit'), $couple, ['class' => 'btn btn-warning']) }}
@endcan
@include('couples.partials.stat')
@if ($couple->childs->isEmpty())
{{ trans('app.childs_were_not_recorded') }}
@else
@foreach($couple->childs->chunk(4) as $chunkedChild)
@foreach($chunkedChild as $child)
{{ ++$no }}. {{ $child->profileLink() }} ({{ $child->gender }})
@foreach($child->childs as $grand)
- {{ $grand->profileLink() }} ({{ $grand->gender }})
@endforeach
@endforeach
@if (! $loop->last)
@endif
@endforeach
@endif
@endsection