@extends('layouts.frontend') @php $siteName = \App\Models\Setting::get('site_name', config('app.name')); $siteTagline = \App\Models\Setting::get('site_tagline', 'Popular E-Commerce & Gadget Online Market in Bangladesh'); @endphp @section('title', $siteName . ' - ' . $siteTagline) @section('content') @php $heroBanners = \App\Models\Banner::active()->position('hero')->orderBy('sort_order')->get(); $mainSideBanners = \App\Models\Banner::active()->position('main_side')->orderBy('sort_order')->take(2)->get(); @endphp @if($heroBanners->count() > 0 || $mainSideBanners->count() > 0)
@if($heroBanners->count() > 0)
@foreach($heroBanners as $banner)
@if($banner->link) {{ $banner->title }} @else {{ $banner->title }} @endif
@endforeach
@if($heroBanners->count() > 1)
@endif
@endif @if($mainSideBanners->count() > 0)
@foreach($mainSideBanners as $banner)
@if($banner->link) {{ $banner->title }} @else {{ $banner->title }} @endif
@endforeach
@endif
@endif @php $homeCategories = \App\Models\Category::where('status', true) ->whereNull('parent_id') ->orderBy('name') ->get(); @endphp

Categories

@foreach($homeCategories as $index => $category) @endforeach
@if($homeCategories->count() > 8)
@endif
@if($freeShippingProducts->count() > 0)
@include('frontend.partials.section-header', [ 'title' => 'Free Shipping', 'icon' => '🚚', 'link' => route('products.index', ['free_shipping' => 1]) ])
@foreach($freeShippingProducts as $product) @include('frontend.partials.product-card', ['product' => $product]) @endforeach
@endif @if($offerProducts->count() > 0)
@include('frontend.partials.section-header', [ 'title' => 'Offers', 'icon' => '🏷️', 'link' => route('products.index', ['on_sale' => 1]) ])
@foreach($offerProducts as $product) @include('frontend.partials.product-card', ['product' => $product]) @endforeach
@endif @if($hotDealProducts->count() > 0)
@include('frontend.partials.section-header', [ 'title' => 'Hot Deal', 'icon' => '🔥', 'link' => route('products.index', ['hot_deal' => 1]) ])
@foreach($hotDealProducts as $product) @include('frontend.partials.product-card', ['product' => $product]) @endforeach
@endif @foreach($categoryProducts as $categoryData)
@include('frontend.partials.section-header', [ 'title' => $categoryData['category']->name, 'link' => route('products.index', ['category' => $categoryData['category']->slug]) ])
@foreach($categoryData['products'] as $product) @include('frontend.partials.product-card', ['product' => $product]) @endforeach
@endforeach @include('frontend.partials.brand-carousel') @if($blogs->count() > 0)
@include('frontend.partials.section-header', [ 'title' => 'Blogs', 'icon' => '📝', 'link' => route('blog.index') ])
@foreach($blogs as $blog)
@include('frontend.partials.blog-card', ['blog' => $blog])
@endforeach
@endif

Free Shipping

On orders over ৳1000

Secure Payment

100% secure checkout

Easy Returns

7 days return policy

24/7 Support

Dedicated support

@php $footerBanners = \App\Models\Banner::active()->position('footer')->orderBy('sort_order')->take(2)->get(); @endphp @if($footerBanners->count() > 0) @endif @endsection