@php $advert_type_id = $advert['advert_type']; $prod_typeid = $advert['prodsvc_id']; @endphp @foreach($advert['details'] as $detail)
{{ $detail['breed_type_des'] }}
{{ $detail['gender_des'] }}
{{ $detail['no_of_cattle'] }}
@if($advert_type_id == 'SELLER')
{{ $detail['weight'] }}
@php $price = ($detail['price'] == '0.00') ? 'Not given' : number_format($detail['price'],2); @endphp {{ $price }}
@if(isset($detail['age_years']) && $detail['age_years'] != 0) {{$detail['age_years']}} years @else @endif @if(isset($detail['age_months']) && $detail['age_months'] != 0) {{$detail['age_months']}} months @else @endif
{{ $detail['status_ofparenting_des'] }}
{{ $detail['sold_status_des'] }}
@endif
{{ $detail['comments'] }}
@if($advert_type_id == 'SELLER') @if(!empty($detail['image_path']))
@foreach($detail['image_path'] as $imageview) @endforeach
@endif @endif
@endforeach