@extends('layouts.main') @section('style') @endsection @section('content') @foreach ($categories as $category) {{ $category['name'] }} @endforeach More @foreach ($banners as $in => $banner) @endforeach @foreach ($banners as $in => $banner) @endforeach Previous Next {{-- Search Icon --}} {{-- Search Input Field --}} {{-- Clear Button (Conditional and absolutely positioned) --}} @if (request('q')) @endif Type to search. Results update automatically after a short pause. {{-- Hidden submit button for accessibility/form behavior --}} Submit Search {{-- Featured Gift Cards --}} {{ $woohoo_products->appends(request()->query())->links('pagination::bootstrap-5') }} @foreach ($woohoo_products as $woohoo_product) @php $images = json_decode($woohoo_product['images'] ?? '{}', true); $price = json_decode($woohoo_product['price'] ?? '{}', true); $imageUrl = !empty($images['small']) ? $images['small'] : (!empty($images['base']) ? $images['base'] : (!empty($images['mobile']) ? $images['mobile'] : (!empty($images['thumbnail']) ? $images['thumbnail'] : asset('assets/images/giftcard_def.webp')))); @endphp {{ $woohoo_product['name'] ?? 'No Name' }} ₹{{ $price['min'] ?? '0' }} – ₹{{ $price['max'] ?? '0' }} @endforeach {{ $woohoo_products->appends(request()->query())->links('pagination::bootstrap-5') }} @endsection
₹{{ $price['min'] ?? '0' }} – ₹{{ $price['max'] ?? '0' }}