@php use App\Libraries\General; use App\Libraries\FileSystem; use App\Models\Admin\Products; @endphp @extends('layouts.adminlayout') @section('content') @include("admin.products.viewHead")
@if(isset($pedigree) && $pedigree) {{-- Pedigree --}}

Dog Pedigree

@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'] }}
@endif
@endsection