@extends('app') @section('content') @php $home_footers = DB::table('home_footers')->first(); $generalSetting = App\Models\GeneralSetting::first(); @endphp
@if($feateuredCategories->count())
@forelse($feateuredCategories as $item) @php $routeSlug = $item->slug; if ($item->parent_id === null) { $routeParams = $routeSlug; } else { $parent = $item->parent; if ($parent && $parent->parent_id === null) { $routeParams = $parent->slug . '/' . $item->slug; } elseif ($parent) { $grandParent = $parent->parent; $routeParams = $grandParent ? $grandParent->slug . '/' . $parent->slug . '/' . $item->slug : $item->slug; } } @endphp @empty
No Categories are Available!
@endforelse
@endif @if($productWithDate > now())
@foreach($dealProducts as $product) @if($product->last_date > now()) @include('partials.product',['product'=>$product]) @endif @endforeach
@endif
@include('partials.productWithCategory')
@if($brands->count() > 0 && $generalSetting->brand_active == true)

Top Brands

@forelse($brands as $brand) @php // Generate image URL $imageUrl = $brand->image ? asset('posadmin/images/brand/' . $brand->image) : asset('images/default.png'); // Generate shop URL filtered by brand slug $shopUrl = route('brand', $brand->slug); @endphp @empty @endforelse
@endif
@if($generalSetting->footer_active == true)

{{ $home_footers->service_one_header }}

{{ $home_footers->service_one_text }}

{{ $home_footers->service_two_header }}

{{ $home_footers->service_two_text }}

{{ $home_footers->service_three_header }}

{{ $home_footers->service_three_text }}

{{ $home_footers->service_four_header }}

{{ $home_footers->service_four_text }}

@endif @endsection @push('js') @endpush