@extends('front.layout.master') @section('title', filter_var($store->name) . ' | ' . config('app.name')) @section('body') @php $lang = session()->get('changed_language') ?? config('translatable.fallback_locale'); $coverExists = $store->cover_photo && file_exists(public_path('/images/store/cover_photo/' . $store->cover_photo)); $coverUrl = $coverExists ? url('images/store/cover_photo/' . $store->cover_photo) : url('images/default_cover_store.jpg'); $storeLogoFile = $store->store_logo ?? $store->logo ?? null; $logoExists = $storeLogoFile && file_exists(public_path('/images/store/logo/' . $storeLogoFile)); $sort = request('sort', 'A-Z'); $limit = (int) request('limit', 12); $totalProducts = method_exists($products, 'total') ? $products->total() : count($products); @endphp {{-- ============= STORE HERO ============= --}}
{{ $store->name }}
@if($logoExists) @else {{ strtoupper(substr($store->name, 0, 1)) }} @endif

{{ $store->name }}

@if($store->verified_store == '1') {{ __('Verified') }} @endif @if(!empty($google_reviews)) @endif
{{ $totalProducts }} {{ __('products') }} @if($store->city)·{{ $store->city['name'] ?? '' }}, {{ $store->country['nicename'] ?? '' }}@endif
@if($store->description || $store->address || $store->mobile || $store->email)
@if($store->description) {!! \Illuminate\Support\Str::limit(strip_tags($store->description), 280) !!} @else {{ __('Trusted seller on') }} {{ config('app.name') }}. @endif
@if($store->address || $store->city || $store->country)
{{ trim($store->address . ' ' . ($store->city['name'] ?? '') . ', ' . ($store->state['name'] ?? '') . ', ' . ($store->country['nicename'] ?? '') . ' ' . ($store->pin_code ?? ''), ', ') }}
@endif @if($store->mobile) @endif @if($store->email) @endif
@endif
{{-- ============= FILTER BAR ============= --}}

{{ __('Products from this store') }}

{{ $totalProducts }} {{ __('items') }}

{{-- ============= PRODUCT GRID ============= --}}
@if(count($products))
@foreach($products as $p) @includeIf('front.partials.product-card', ['p' => $p, 'lang' => $lang]) @endforeach
@if(method_exists($products, 'links'))
{!! $products->appends(request()->except('page'))->links() !!}
@endif @else

{{ __('No products yet') }}

{{ __('This store has not listed any products at the moment.') }}

@endif
{{-- ============= GOOGLE REVIEWS MODAL ============= --}} @if(!empty($google_reviews)) @endif @endsection