@extends('layouts.app') @section('title', 'AutoPart Online Store - Home') @section('content')
{{-- Hero + Category Sidebar --}}
{{-- Category Sidebar --}} {{-- Hero Banner --}}
New Generation

Power Up Your Ride Today

Discover premium performance parts and accessories engineered to elevate your driving experience to the next level.

{{-- Trust Badges --}}
@php $badges = [ ['icon' => 'truck', 'title' => 'Free Shipping', 'sub' => 'On orders over $50'], ['icon' => 'shield-check', 'title' => 'Secure Payment', 'sub' => '100% protected'], ['icon' => 'rotate-ccw', 'title' => 'Easy Returns', 'sub' => '30-day guarantee'], ['icon' => 'headphones', 'title' => '24/7 Support', 'sub' => 'Expert assistance'], ]; @endphp @foreach($badges as $badge)

{{ $badge['title'] }}

{{ $badge['sub'] }}

@endforeach
{{-- Category Cards --}}
@php $catCards = [ ['title' => 'Body Parts', 'items' => ['Bumpers', 'Doors', 'Fenders', 'Hoods'], 'img' => '35d5e7c26e97f4caea1ecb1fdcc08f6f.jpg'], ['title' => 'Repair Parts', 'items' => ['Alternators', 'Starters', 'Batteries', 'Belts'], 'img' => '4f3fcc235517c529a7ed215699d5d630.jpg'], ['title' => 'Wheels & Tires', 'items' => ['Alloy Wheels', 'Winter Tires', 'Steel Wheels', 'Hubcaps'], 'img' => 'zoshua-colah-kQzRZjrr6sw-unsplash.jpg'], ]; @endphp @foreach($catCards as $card)
{{ $card['title'] }}

{{ $card['title'] }}

    @foreach($card['items'] as $item)
  • {{ $item }}
  • @endforeach
View All
@endforeach
{{-- Trending Products + Sidebar --}}
{{-- Left Sidebar Widgets --}} {{-- Main Content --}}
{{-- Trending Products --}}

Trending Products

@foreach($trendingProducts as $product) @include('partials.product-card', ['product' => $product]) @endforeach
{{-- Promo Banners --}}
Promo 1
Save up to $50

High Quality
Engine Parts

Shop Collection
Promo 2
Best Seller

Custom Wheels
& Tires Kit

Discover Now
{{-- Special Offers --}} @if($specialProduct)

Special Offers

@php $spDiscount = ($specialProduct->old_price && $specialProduct->old_price > $specialProduct->price) ? round((1 - $specialProduct->price / $specialProduct->old_price) * 100) : 0; $spImg = $specialProduct->image_path ? asset('images/' . $specialProduct->image_path) : 'https://ui-avatars.com/api/?name=' . urlencode($specialProduct->name); @endphp
@if($spDiscount > 0)
-{{ $spDiscount }}% discount
@endif Special
★★★★★(124 Reviews)

{{ $specialProduct->name }}

{{ $specialProduct->description ?? 'Upgrade your vehicle with this premium product. Engineered for high performance and longevity.' }}

${{ number_format($specialProduct->price, 2) }} @if($specialProduct->old_price) ${{ number_format($specialProduct->old_price, 2) }} @endif

Hurry Up! Offer ends in:

View Offer Details
@endif
@push('scripts') @endpush @endsection