@php use App\Libraries\General; use App\Libraries\FileSystem; @endphp @foreach($highlightsListing as $p) @php $image = 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['state_name']) && $p['state_name'] || isset($p['country_name']) && $p['country_name'] || isset($p['price']) && $p['price'] > 0.00)
@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
@if(isset($loginUserId) && $loginUserId) @if(isset($p['favourite']) && $p['favourite']) @else @endif @else @endif
@endforeach