@extends('layouts.store') @section('title',__('Local stories, new collections')) @section('meta_description',__('Thoughtfully selected products made by Bangladeshi entrepreneurs. Local craft, modern living.')) @section('content')
@php $editorialCategories = $categories->take(8); $resizeUnsplash = static function (string $url, int $width, int $quality = 78): string { if (! \Illuminate\Support\Str::contains($url, 'images.unsplash.com/')) return $url; $url = preg_replace('/([?&])w=\d+/', '$1w='.$width, $url); return preg_replace('/([?&])q=\d+/', '$1q='.$quality, $url); }; @endphp
@forelse($campaigns as $index => $campaign) @php $campaignTitle = app()->getLocale() === 'bn' ? $campaign->title : ($campaign->title_en ?: __('Local stories from Bangladesh')); $campaignSubtitle = app()->getLocale() === 'bn' ? $campaign->subtitle : ($campaign->subtitle_en ?: __('Discover new products from local entrepreneurs.')); $campaignCta = app()->getLocale() === 'bn' ? ($campaign->cta_label ?: __('Explore the collection')) : ($campaign->cta_label_en ?: __('Explore the collection')); @endphp @php($campaignImage = $resizeUnsplash($campaign->image ?: 'https://images.unsplash.com/photo-1490312278390-ab64016e0aa9?auto=format&fit=crop&w=2200&q=88', 2200, 88))
{{ $campaignTitle }}
{{ $storeName }} · {{ __('Collection') }} {{ str_pad((string)($index+1),2,'0',STR_PAD_LEFT) }}

{{ $campaignTitle }}

{{ $campaignSubtitle }}

@empty
{{ __('Bangladeshi craft and homeware') }}
{{ __('Made by local hands, with care') }}

{{ __('Every item carries a little Bangladesh.') }}

{{ __('Thoughtful craft, contemporary design — chosen for everyday life.') }}

@endforelse @if($campaigns->count()>1)
@foreach($campaigns as $index=>$campaign)@endforeach
01 / {{ str_pad((string)$campaigns->count(),2,'0',STR_PAD_LEFT) }}
@endif {{ __('Crafted in Bangladesh') }} · {{ date('Y') }}
✳ {{ __('Handmade and thoughtfully selected') }}⌁ {{ __('Delivery across Bangladesh') }}↺ {{ __('Easy support and returns') }}♡ {{ __('Supporting local entrepreneurs') }}
@if($sections->has('categories'))
{{ __('Browse by category') }}

{{ __('Shop by category') }}

{{ __('Browse categories') }} ↗
@foreach($editorialCategories as $index=>$category)@php($categoryImages = ['photo-1610030469983-98e550d6193c','photo-1618221195710-dd6b41faaea6','photo-1587049352851-8d4e89133924','photo-1549465220-1a8b9238cd48','photo-1531346878377-a5be20888e57','photo-1601924994987-69e26d50dc26','photo-1485955900006-10f4d324d411','photo-1507473885765-e6ed057f782c'])@php($categoryImage = $category->banner ?: $category->image)@php($catImage = $categoryImage ? (\Illuminate\Support\Str::startsWith($categoryImage, ['http://','https://']) ? $categoryImage : asset('storage/'.$categoryImage)) : 'https://images.unsplash.com/'.($category->name_en === 'Electrical Products' ? 'photo-1556911220-e15b29be8c8f' : ($category->name_en === 'Beauty & Wellness' ? 'photo-1608248543803-ba4f8c70ae0b' : ($category->name_en === 'Kids & Toys' ? 'photo-1596461404969-9ae70f2830c1' : $categoryImages[$index % count($categoryImages)]))).'?auto=format&fit=crop&w=900&q=82')@php($catImage = $resizeUnsplash($catImage, 480, 76)){{ $category->display_name }}{{ __('Discover the edit') }}{{ $category->display_name }}{{ __('Explore') }} ↗@endforeach
@endif @if($sections->has('latest')||$sections->has('bestsellers'))
{{ __('Just selected') }}

{{ __('What’s new') }}

{{ __('Fresh designs from small businesses, chosen for you.') }}

{{ __('All new products') }} ↗
@forelse($products->take(4) as $product)@include('partials.product-card',['product'=>$product])@empty
{{ __('New products coming soon.') }}
@endforelse
@endif @if($collections->isNotEmpty())
{{ __('Editor\'s picks') }}

{{ __('Collections by story') }}

{{ __('All collections') }} ↗
@foreach($collections->take(3) as $index=>$collection){{ $collection->name }}THE {{ strtoupper($storeName) }} EDIT{{ $collection->name }}{{ __('View collection') }} ↗@endforeach
@endif @if($featured->isNotEmpty())
{{ __('Loved by you') }}

{{ __('Popular collection') }}

{{ __('The pieces you come back to.') }}

{{ __('More products') }} ↗
@foreach($featured as $product)@include('partials.product-card',['product'=>$product])@endforeach
@endif @if(isset($categoryShelves) && $categoryShelves->isNotEmpty()) @foreach($categoryShelves as $shelf) @if($shelf['products']->isNotEmpty())
{{ __('Browse by category') }}

{{ $shelf['category']->display_name }}

{{ __('Fresh designs from small businesses, chosen for you.') }}

{{ __('Browse categories') }} ↗
@foreach($shelf['products'] as $product) @include('partials.product-card', ['product' => $product]) @endforeach
@endif @endforeach @endif
{{ __('A handcrafted design') }}
{{ __('A person behind every product') }}

{{ __('Your purchase helps a story grow.') }}

{{ __('Every product carries an entrepreneur\'s dream, skill and care. Choosing local helps that story travel further.') }}

{{ __('Read our story') }} ↗
@endsection