@foreach($promotionalads as $ads)
@if($ads->banner)
@php
$fileLink = $ads->banner;
$fileExtension = strtolower(pathinfo($fileLink, PATHINFO_EXTENSION));
$videoFormats = ['mp4', 'webm'];
$imageFormats = ['jpeg', 'jpg', 'png', 'JPEG', 'JPG', 'PNG'];
@endphp
@if (in_array($fileExtension, $videoFormats))
banner_url ? 'target="_blank"' : '' }}>
@elseif (in_array($fileExtension, $imageFormats))
@else
@else
@endforeach
Unsupported media format.
@endif @else banner_url ? 'target="_blank"' : '' }}> @if (isVideo($ads->link)) @elseif (isImage($ads->link))The link is neither an image nor a video.
@endif @endifFeatured Ads
@forelse ($featuredAdsList as $post)
@empty
@endforelse
@php
$fileLink = $post['upload_media_link'];
$fileExtension = strtolower(pathinfo($fileLink, PATHINFO_EXTENSION));
$videoFormats = ['mp4', 'webm'];
$imageFormats = ['jpeg', 'jpg', 'png', 'JPEG', 'JPG', 'PNG'];
@endphp
@if (in_array($fileExtension, $videoFormats))
@elseif (in_array($fileExtension, $imageFormats))
@else
Featured
@if ($post['average_stars'] > 0 )
{{ $post['average_stars'] }}
@endif
Unsupported media format.
@endif
@if($post['user_id']!=1)
@if($post['business_name'])
{{ $post['business_name'] }}
@endif
@endif
{{ $post['currency'] }} {{ $post['post_price'] }}
{{ $post['post_title'] }}
@if(!empty($post['home_url']))
@endif
{{ $post['location_address'] }}
{{ Carbon::parse($post['reload_at'])->format('d F, Y') }}
campaign
No record found!
{{ $totalCount }} Listings Results
Search / Filtertune
Search / Filter
tune Search / Filter
@if(request('title'))
Looking for : {{ request('title') }}
@endif
@if(request('location'))
Where : {{ request('location') }}
@endif
@if(request('category'))
Category : {{ $selected_category->category }}
@endif
@if(request('sub_category'))
Sub Category : {{ $selected_subcategory->subcategory }}
@endif
@if(request('subsub_category'))
Caliber : {{ $selected_subsubcategory->subsubcategory }}
@endif
Listing Ads
@forelse ($adsList as $post)
@empty
@endforelse
@if($notFeaturedAdsCount>6)
@endif
@php
$fileLink = $post['upload_media_link'];
$fileExtension = strtolower(pathinfo($fileLink, PATHINFO_EXTENSION));
$videoFormats = ['mp4', 'webm'];
$imageFormats = ['jpeg', 'jpg', 'png', 'JPEG', 'JPG', 'PNG'];
@endphp
@if (in_array($fileExtension, $videoFormats))
@elseif (in_array($fileExtension, $imageFormats))
@else
Unsupported media format.
@endif
@if ($post['is_featured'] == 'Yes')
Featured
@endif
@if ($post['average_stars'] > 0 )
{{ $post['average_stars'] }}
@endif
@if($post['user_id']!=1)
@if($post['business_name'])
{{ $post['business_name'] }}
@endif
@endif
{{ $post['currency'] }} {{ $post['post_price'] }}
{{ $post['post_title'] }}
@if(!empty($post['home_url']))
@endif
{{ $post['location_address'] }}|
{{ Carbon::parse($post['reload_at'])->format('d F, Y') }}
campaign