@php use App\Services\MediaService; @endphp @if ($offers_sliders->original['error'] != 'true') @endif @if (count($singleOffers) >= 1) {{-- @dd($singleOffers); --}}
@foreach ($singleOffers as $data) @php $singleOffersImage = app(MediaService::class)->dynamic_image( $data->banner_image, 635, ); // Determine the correct URL $hidden_types = ['default', 'products', 'combo_products', 'offer_url']; $custom_url = $data->link; if ($data->type == 'all_products') { $custom_url = customUrl('products'); } elseif (empty($custom_url)) { $custom_url = '#'; } // dd($custom_url); @endphp @endforeach
@endif @if ($offers_sliders->original['error'] == 'true' && count($singleOffers) < 1) @php $title = labels('front_messages.no_offers_found', 'No Offers Found!'); @endphp @endif