@php use App\Libraries\General; use App\Libraries\FileSystem; use Illuminate\Support\str; @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

{{ $row['title'] }} @php $microchips = []; if(!empty($row['dog_microchip']) && 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

@if(isset($row->price_status) && $row->price_status ==1)

{{ isset($row['price']) && $row['price'] > 0.00 ? priceformat($row['price']) : ''; }}

@endif
Posted on : {{ isset($row['created']) && $row['created'] ? _d($row['created']) : '' }}
{{ isset($row['state_name']) && $row['state_name'] ? $row['state_name'].', '.$row['country_name'] : '' }}
{{ str::limit( isset($row['description']) && $row['description'] ? $row['description'] : '' , 300 , '......') }}
{{-- --}}

{{ $text }}

@endforeach