@extends('user.layout') @section('title', 'Home') @push('head') @endpush @section('content') @php $socialLinks = $socialLinks ?? []; $facebook = !empty($socialLinks['facebook']) ? $socialLinks['facebook'] : '#'; $youtube = !empty($socialLinks['youtube']) ? $socialLinks['youtube'] : '#'; $telegram = !empty($socialLinks['telegram']) ? $socialLinks['telegram'] : '#'; $whatsapp = !empty($socialLinks['whatsapp']) ? $socialLinks['whatsapp'] : '#'; $search = $search ?? request('search'); $categoryId = $categoryId ?? request('category_id'); $defaultProductImage = asset('images/default-product.png'); @endphp
{{-- Banner Slider --}} @if(!empty($sliders) && count($sliders)) @endif {{-- Single Big Earning Projects Banner --}}

EARNING PROJECTS

আমাদের সেরা আর্নিং প্রজেক্টগুলো এক্সপ্লোর করুন

দেখুন
{{-- Popular Categories --}} @if(!empty($categories) && $categories->count())

জনপ্রিয় ক্যাটাগরি

@foreach($categories as $category) @php $categoryPhoto = $category->photo_path ?? null; $isActive = (string)$categoryId === (string)$category->id; $initial = mb_substr(trim($category->name), 0, 1); @endphp
@if($categoryPhoto) {{ $category->name }} @else
{{ $initial }}
@endif
{{ $category->name }}
@endforeach
@endif {{-- Products Section --}}

আপনার প্রয়োজনীয় পণ্য

@if($products->count())
@foreach($products as $product) @php $firstImage = $product->images->first(); $productImg = $firstImage ? $firstImage->image_url : $defaultProductImage; $detailsUrl = route('user.product.details', $product->slug); $hasDiscount = !empty($product->display_price['has_discount']); $discountPercent = $hasDiscount ? rtrim(rtrim($product->display_price['discount_percent'], '0'), '.') : null; @endphp @endforeach
@if($products->hasMorePages()) আরো প্রোডাক্ট লোড হচ্ছে... @else সব প্রোডাক্ট দেখানো হয়েছে @endif
@else

কোনো প্রোডাক্ট পাওয়া যায়নি

@endif
{{-- Official Community Section --}}
@endsection