@extends('user-front.layout')
@section('meta-description', !empty($seo) ? $seo->home_meta_description : '')
@section('meta-keywords', !empty($seo) ? $seo->home_meta_keywords : '')
@section('page-title', $keywords['Home'] ?? __('Home'))
@section('og-meta')
@endsection
@php
$homepageCategories = $item_categories->take(5);
$homepageLatestItems = isset($latest_items) ? $latest_items->take(8) : collect();
$validBestItems = collect();
if (isset($top_selling) && count($top_selling) > 0) {
foreach ($top_selling as $selling) {
if (!is_null($selling->item) && !is_null($selling->item->itemContents[0] ?? null)) {
$validBestItems->push($selling);
}
}
}
$homepageBestItems = count($validBestItems) > 0 ? $validBestItems->take(8) : $homepageLatestItems;
@endphp
@section('styles')
@endsection
@section('content')
{{-- ═══════════════════════════════════════════
HERO SECTION
═══════════════════════════════════════════ --}}
@if($ubs->hero_section == 1)
@endif
{{-- after_hero additional sections --}}
@if(count($after_hero) > 0)
@foreach($after_hero as $cusHero)
@php $cusHeroContent = App\Models\User\AdditionalSectionContent::where([['language_id',$uLang],['addition_section_id',$cusHero->id]])->first(); @endphp
@includeIf('user-front.additional-section', ['data'=>$cusHeroContent,'possition'=>$cusHero->possition])
@endforeach
@endif
{{-- ═══════════════════════════════════════════
CATEGORIES SECTION
═══════════════════════════════════════════ --}}
{{ $keywords['Categories'] ?? 'CATEGORIES' }}
VIEW ALL
@if(count($homepageCategories) == 0)
{{ $keywords['No Categories Found'] ?? 'No Categories Found' }}
@else
@endif
{{-- ═══════════════════════════════════════════
NEW ARRIVALS
═══════════════════════════════════════════ --}}
{{ $keywords['New Arrivals'] ?? 'NEW ARRIVALS' }}
VIEW ALL
@if(count($homepageLatestItems) == 0)
{{ $keywords['No Products Found'] ?? 'No Products Found' }}
@else
@foreach($homepageLatestItems as $product)
@php
$pContent = $product->itemContents[0] ?? null;
if(is_null($pContent)) continue;
$fi = flashAmountStatus($product->id, $product->current_price);
$dp = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol,
currency_converter($fi['status'] ? $fi['amount'] : $product->current_price));
@endphp
{{-- Product Image --}}
{{-- Badge --}}
NEW
@if(@$fi['status'])
SALE
@endif
{{-- Product details --}}
{{ $dp }}
@if($product->previous_price > $product->current_price)
{{ symbolPrice($userCurrentCurr->symbol_position,$userCurrentCurr->symbol,currency_converter($product->previous_price)) }}
@endif
{{-- Action icons --}}
@if($shop_settings->catalog_mode != 1)
@endif
@endforeach
@endif
{{-- ═══════════════════════════════════════════
COLLECTION BANNERS (4 COLUMNS)
═══════════════════════════════════════════ --}}
@php
$collectionLabels = ['SUMMER COLLECTION', 'STREETWEAR EDIT', 'FORMAL WEAR', 'SPORTSWEAR'];
$collectionCats = $item_categories;
@endphp
@if(count($collectionCats) > 0)
@foreach($collectionCats as $colCat)
@php $colLabel = $collectionLabels[$loop->index] ?? strtoupper($colCat->name); @endphp
@endforeach
@endif
{{-- ═══════════════════════════════════════════
FLASH / PROMO BANNER (special offer timer)
═══════════════════════════════════════════ --}}
@if($ubs->flash_section == 1)
@includeIf('user-front.clothing.partials.flash_content')
@endif
{{-- ═══════════════════════════════════════════
BEST SELLERS
═══════════════════════════════════════════ --}}
{{ $keywords['Best Sellers'] ?? 'BEST SELLERS' }}
VIEW ALL
@if(count($homepageBestItems) == 0)
{{ $keywords['No Products Found'] ?? 'No Products Found' }}
@else
@foreach($homepageBestItems as $selling)
@php
$bProd = isset($selling->item) ? $selling->item : $selling;
$bCont = !is_null($bProd) ? ($bProd->itemContents[0] ?? null) : null;
if(is_null($bProd) || is_null($bCont)) continue;
$fi2 = flashAmountStatus($bProd->id, $bProd->current_price);
$dp2 = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol,
currency_converter($fi2['status'] ? $fi2['amount'] : $bProd->current_price));
@endphp
@if($bProd->previous_price > $bProd->current_price)
SALE
@endif
{{ $dp2 }}
@if($bProd->previous_price > $bProd->current_price)
{{ symbolPrice($userCurrentCurr->symbol_position,$userCurrentCurr->symbol,currency_converter($bProd->previous_price)) }}
@endif
@if($shop_settings->catalog_mode != 1)
@endif
@endforeach
@endif
{{-- ═══════════════════════════════════════════
TRUST STRIP (free shipping section)
═══════════════════════════════════════════ --}}
@foreach([
['icon'=>'fal fa-truck', 'title'=>'FREE SHIPPING', 'text'=>'Free shipping on orders over ₹75'],
['icon'=>'fal fa-undo', 'title'=>'EASY RETURNS', 'text'=>'30-day return policy hassle free'],
['icon'=>'fal fa-lock', 'title'=>'SECURE PAYMENT', 'text'=>'100% secure payment guaranteed'],
['icon'=>'fal fa-award', 'title'=>'PREMIUM QUALITY', 'text'=>'High quality materials you can trust'],
] as $tc)
{{ $tc['title'] }}
{{ $tc['text'] }}
@endforeach
{{-- ═══════════════════════════════════════════
TESTIMONIALS (Reviews auto scroll)
═══════════════════════════════════════════ --}}
@php
$clTestimonials = [
[
'rating' => 5,
'comment' => 'Absolutely love the quality of their clothing! The fabrics are premium, and the fit is perfect. Highly recommend!',
'image' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?q=80&w=150&auto=format&fit=crop',
'name' => 'Sarah Jenkins',
'occupation' => 'Fashion Designer'
],
[
'rating' => 5,
'comment' => 'The customer service is outstanding, and shipping was incredibly fast. The dress fits like a glove and feels so luxurious.',
'image' => 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?q=80&w=150&auto=format&fit=crop',
'name' => 'Michael Chang',
'occupation' => 'Creative Director'
],
[
'rating' => 5,
'comment' => 'I have bought multiple items from them, and each time the quality exceeds my expectations. Truly style redefined.',
'image' => 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=150&auto=format&fit=crop',
'name' => 'Emma Watson',
'occupation' => 'Stylist'
],
[
'rating' => 5,
'comment' => 'Very comfortable denim jacket and the sunglasses are top tier. Will definitely be ordering from here again soon.',
'image' => 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?q=80&w=150&auto=format&fit=crop',
'name' => 'David Miller',
'occupation' => 'Photographer'
],
[
'rating' => 5,
'comment' => 'Premium quality fabric, minimalist aesthetic, and fast checkout. The online shopping experience was very smooth.',
'image' => 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?q=80&w=150&auto=format&fit=crop',
'name' => 'Sophia Martinez',
'occupation' => 'Content Creator'
],
[
'rating' => 5,
'comment' => 'I am very picky about my streetwear, but their designs nailed the fit and details. 10/10 purchase.',
'image' => 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?q=80&w=150&auto=format&fit=crop',
'name' => 'Alex Rivera',
'occupation' => 'Music Producer'
],
[
'rating' => 5,
'comment' => 'A wonderful selection of winter and summer season arrivals. Easy exchange process when I needed a different size.',
'image' => 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?q=80&w=150&auto=format&fit=crop',
'name' => 'Olivia Taylor',
'occupation' => 'Model'
],
[
'rating' => 5,
'comment' => 'The attention to detail in their packaging and apparel is impressive. Feels like a luxury boutique at fair prices.',
'image' => 'https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?q=80&w=150&auto=format&fit=crop',
'name' => 'James Harrison',
'occupation' => 'Marketing Manager'
]
];
@endphp
@if(count($clTestimonials) > 0)
WHAT OUR CUSTOMERS SAY
@foreach($clTestimonials as $t)
@for($s=0;$s<($t['rating']??5);$s++)@endfor
"{{ $t['comment'] }}"
{{ $t['name'] }}
{{ $t['occupation'] }}
@endforeach
@endif
{{-- ═══════════════════════════════════════════
FOLLOW US ON INSTAGRAM
═══════════════════════════════════════════ --}}
@php
$instaCats = $item_categories->take(5);
@endphp
@if(count($instaCats) > 0)
@foreach($instaCats as $iCat)
@endforeach
@endif
{{-- Modals --}}
@include('user-front.partials.variation-modal')
{{-- .clothing-home --}}
@endsection
@section('scripts')
@endsection