@php use App\Libraries\General; use App\Libraries\FileSystem; use Illuminate\Support\str; use App\Models\User\Products; @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'] }} {{-- dfdfdf --}} @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

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 , '......') }}
@if(isset($row->status) && $row->status)
@if($row->plan_actions)
    @if(strtotime($row->plan_actions->expired_on) > strtotime(date('Y-m-d H:i:s'))) @if(Products::hasPermission($row->bumped,$user->membership_id,'bumped',$row->ad_type))
  • Bump AD
  • @endif @if(Products::hasPermission($row->highlight,$user->membership_id,'highlight',$row->ad_type))
  • Highlight AD
  • @endif @endif {{-- @if(strtotime(date('Y-m-d H:i:s',strtotime('- 5 days '.$row->plan_actions->expired_on))) <= strtotime(date('Y-m-d H:i:s'))) --}}
  • Renew AD
  • {{-- @endif --}}
@endif
@endif
@if(isset($row->status) && $row->status)
@endif

{{ $text }}

@endforeach