@php use App\Libraries\General; use App\Libraries\FileSystem; @endphp @foreach($listing->items() as $k => $row)
@php $pet_image_single = isset($row->image) && $row->image ? json_decode($row->image) : []; @endphp @if(isset($row['pet_status']) && $row['pet_status'] == 1) @php $corner_class = 'change_bg2'; $text = 'Available'; @endphp @elseif(isset($row['pet_status']) && $row['pet_status'] == 2) @php $corner_class = 'change_bg1'; $text = 'Hold'; @endphp @elseif(isset($row['pet_status']) && $row['pet_status'] == 3) @php $corner_class = ''; $text = 'Sold'; @endphp @else @php $corner_class = ''; $text = ''; @endphp @endif
...
...

{{ $text }}

{{ $row->title }}

@php $microchips = []; if(count($row['dog_microchip']) > 0) { foreach($row['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
{{ isset($row['state_name']) && $row['state_name'] ? $row['state_name'].', '.$row['country_name'] : '' }}
@if(isset($row->price_status) && $row->price_status ==1) {{ isset($row->price) && $row->price > 0.00 ? priceformat($row->price) : ''; }} @endif
@endforeach