{{-- resources/views/home.blade.php --}} @extends('layouts.app') @section('styles') @endsection @section('content')
{{-- Flash Messages --}} @if (session('error')) @endif @if (session('status')) @endif {{-- Breadcrumb --}}
{{-- Breadcrumb --}} {{-- Button --}} {{-- View All Categories --}}
{{-- Left Column: Filters --}}
{{-- Mobile Filter Toggle --}} {{-- Filter Panel --}}
{{-- Categories Section --}}
Categories
@foreach ($categories as $category) @include('partials.category-item', [ 'category' => $category, 'level' => 0, ]) @endforeach
{{-- Filter Form --}}
@csrf {{-- Location Filter --}}
Location
{{-- Price Filter --}}
{{ config('app.currency_symbol') }} Price Range
{{ config('app.currency_symbol', '£') }}
to
{{ config('app.currency_symbol', '£') }}
{{-- Brand Filter --}}
Brand
{{-- Apply Filters Button --}} {{-- Clear Filters --}}
{{-- Right Column: Main Content --}}
{{-- Google AdSense Top --}}
{{-- Results Header --}}
Latest Ads

{{ $ads->total() }} ads found

{{-- Sort Options --}}
{{-- Loader --}}
{{-- Ads Container --}}
@include('partials.ads-grid', [ 'ads' => $ads, 'favoriteAdIds' => $favoriteAdIds ?? [], ])
{{-- Pagination Container --}}
{{ $ads->withQueryString()->links('pagination::bootstrap-5') }}
{{-- Popular Ads Section --}} @if (isset($popularAds) && $popularAds->count() > 0)
@endif {{-- Recent Ads Section --}} @if (isset($recentAds) && $recentAds->count() > 0)

Recently Uploaded

@foreach ($recentAds as $ad)
@include('partials.ad-card-mini', ['ad' => $ad])
@endforeach
@endif {{-- Google AdSense Bottom --}}
@endsection @section('scripts') @endsection