@extends('layouts.main') @section('style') @endsection @section('content')
{{-- 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 --}}
{{--

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 @endforeach
{{ $woohoo_products->appends(request()->query())->links('pagination::bootstrap-5') }}
@endsection