@push('style') @endpush @php $search = request()->get('search') ? "true" : ""; $adSearch = (isset($search) && $search == 'true') ? '?search=true' : ''; @endphp
{{-- Featured badge --}} @if($ad?->status == 'active' && $ad?->verification_status == 'verified') @if(in_array($ad?->featured,[1,2,3])) @if($ad?->featured == 1) Silver @elseif($ad?->featured == 2) Gold @elseif($ad?->featured == 3 ) Premium @endif {{-- {{dd($ad->featured) }} --}} @endif @endif
{{ $ad->slug }}

{{ $ad?->title }}

{{ $ad?->belongsToRegion?->name }}, {{ $ad?->belongsToCategory?->name }}
@if ($ad->category_slug && $ad->category_slug != 'jobs') @php $priceExists = $ad->price && $ad->price > 0; $isNegotiable = $ad->negotiable == '1'; @endphp @if ($priceExists || $isNegotiable)
@if ($priceExists) {{ $setting?->currency_symbol }} {{ $ad->price }} @endif @if ($isNegotiable) @if ($priceExists) (Negotiable) @else Negotiable @endif @endif
@endif @endif
{{ $ad->created_at->diffForHumans() }}
{{--
{{ $ad->slug }}

{{ $ad?->title }}

{{ $ad?->belongsToRegion?->name }}, {{ $ad?->belongsToCategory?->name }}
@if ($ad->category_slug && $ad->category_slug != 'jobs')
@if ($ad->negotiable == '1') Negotiable @else {{$setting?->currency_symbol}} {{$ad?->price}} @endif
@endif
{{ $ad->created_at->diffForHumans() }}
--}}