@extends('layouts.userLayout') @section('content')
@include('user.dashboard.sidebar')

Dog Pedigree Details

{{--
Dog Name {{ isset($dog['name']) && $dog['name'] ? ucwords($dog['name']) : '' }}
Is Champion {{ isset($dog['champion']) && $dog['champion'] ? 'Yes' : 'No' }}
Gender {{ isset($dog['gender']) && $dog['gender'] ? ucwords($dog['gender']) : '' }}
Breed {{ isset($dog['bread']) && $dog['bread'] ? ucwords($dog['bread']) : '' }}
Color {{ isset($dog['color']) && $dog['color'] ? ucwords($dog['color']) : '' }}
--}}
@foreach($pedigree as $parent) @endforeach
Parents Grand Parents Great Grand Parents Great Great Grand Parents
{{ $parent['name'] }}
@foreach($parent['grand_parent'] as $grandParent) @endforeach
{{ $grandParent['name'] }}
@foreach($parent['grand_parent'] as $grandParent) @foreach($grandParent['great_grand_parents'] as $greatGrandParent) @endforeach @endforeach
{{ $greatGrandParent['name'] }}
@foreach($parent['grand_parent'] as $grandParent) @foreach($grandParent['great_grand_parents'] as $greatGrandParent) @foreach($greatGrandParent['great_great_grandparent'] as $greatGreatGrandParent) @endforeach @endforeach @endforeach
{{ $greatGreatGrandParent['name'] }}
@endsection