@php use App\Libraries\General; use App\Libraries\FileSystem; use App\Models\User\UserAuth; $userId = UserAuth::getLoginId(); @endphp @foreach($listing as $key => $value) @php $pet_image_single = isset($value->image) && $value->image ? json_decode($value->image) : []; @endphp

{{ isset($value->title) && $value->title ? $value->title : '' }}

@php $microchips = []; if(count($value['dog_microchip']) > 0) { foreach($value['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($value) && $value['gender'] == 'male' ) @elseif(isset($value) && $value['gender'] == 'female' ) @endif --}}
@if(isset($value['state_name']) && $value['state_name'] || isset($value['country_name']) && $value['country_name'] || isset($value['price']) && $value['price'] > 0.00)
@if(isset($value['state_name']) && $value['state_name'] || isset($value['country_name']) && $value['country_name']) @if(isset($value['state_name']) && $value['state_name'] && isset($value['country_name']) && $value['country_name']) {{ $value['state_name'].', '.$value['country_name'] }} @elseif(!isset($value['state_name']) && isset($value['country_name']) && $value['country_name']) {{ $value['country_name'] }} @endif @endif @if(isset($value['price']) && $value['price'] > 0.00 && $value->price_status == 1 && $value->ad_type == 'available_dogs')
{{ priceformat($value['price']) }}
@endif
@endif
@endforeach