@extends('layouts.frontlayout') @section('content') @if(isset($highlightsListing) && $highlightsListing->toArray())

Highlights

@endif @if(isset($products) && $products->toArray())

Latest Listings

@foreach($products as $key => $p)
@php $images = isset($p['image']) && $p['image'] ? json_decode($p['image']) : []; @endphp ...
...

{{ $p['title'] }}

@php $microchips = []; if(count($p['dog_microchip']) > 0) { foreach($p['dog_microchip'] as $k => $d) { $microchips[] = $d['gender']; } } @endphp @if(isset($microchips) && $microchips && in_array('male', $microchips) && isset($microchips) && $microchips && in_array('female', $microchips)) @elseif(isset($microchips) && $microchips && in_array('male', $microchips) && !in_array('female', $microchips)) @elseif(isset($microchips) && $microchips && in_array('female', $microchips) && !in_array('male', $microchips)) @endif {{-- @if(isset($p['gender']) && $p['gender'] == 'male' ) @elseif(isset($p['gender']) && $p['gender'] == 'female' ) @endif --}}
@if(isset($p['state_name']) && $p['state_name'] || isset($p['country_name']) && $p['country_name'] || isset($p['price']) && $p['price'] > 0)
@if(isset($p['state_name']) && $p['state_name'] || isset($p['country_name']) && $p['country_name']) @if(isset($p['state_name']) && $p['state_name'] && isset($p['country_name']) && $p['country_name']) {{ $p['state_name'].', '.$p['country_name'] }} @elseif(!isset($p['state_name']) && isset($p['country_name']) && $p['country_name']) {{ $p['country_name'] }} @endif @endif @if(isset($p['price']) && $p['price'] > 0.00 && $p->price_status == 1 && $p->ad_type == 'available_dogs')
{{ price_format($p['price']) }}
@endif
@endif
@endforeach
@endif

{{ $home->pet_title }}

@if(isset($home->pet_link_title) && $home->pet_link_title) @endif
..
@if(isset($breeders) && $breeders->toArray())

Breeders

@foreach($breeders as $b)
@php $images = isset($b['image']) && $b['image'] ? json_decode($b['image']) : []; @endphp ...
...

{{ $b['title'] }}

@if(isset($b['state_name']) && $b['state_name'] || isset($b['country_name']) && $b['country_name'])
@if(isset($b['state_name']) && $b['state_name'] || isset($b['country_name']) && $b['country_name']) @if(isset($b['state_name']) && $b['state_name'] && isset($b['country_name']) && $b['country_name']) {{ $b['state_name'].', '.$b['country_name'] }} @elseif(!isset($b['state_name']) && isset($b['country_name']) && $b['country_name']) {{ $b['country_name'] }} @endif @endif
@endif
@endforeach
@endif @if(isset($testimonials) && $testimonials->toArray())

SAFE4dogs

@endif
..
@endsection