@extends('front_end.template.layout') @section('content')

Shop Detail

@if (isset($store->logo) && $store->logo && file_exists(public_path('storage/' . $store->logo))) @endif

{{ $store->store_name ? $store->store_name : 'No Store Name' }}

{{ $store->location ? $store->location : 'No Store Location' }}

4.5

{{ $store->description ? $store->description : 'No Store Description' }}

New Arrivals

@if($latest_products->isEmpty()) < @else @foreach($latest_products as $product)
@php $images = explode(',', $product->image); $firstImage = $images[0]; @endphp image image
@php $userLoggedIn = auth()->check(); $userRole = $userLoggedIn ? auth()->user()->role : null; $loginUrl = route('login'); @endphp @if (isset($product->added_to_wishlist) && $product->added_to_wishlist == 1) Available in Wishlist @else Add To Wishlist @endif
@if($product->regular_price) @if($product->sale_price && $product->sale_price < $product->regular_price)
Sale Price: {{ $product->sale_price ?? 'N/A' }}
Regular Price: {{ $product->regular_price }}
@else
Price: {{ $product->regular_price }}
@endif @else
Price: Not available
@endif
@for($i = 1; $i <= 5; $i++) @if($product->average_rating >= $i) @elseif($product->average_rating >= $i - 0.5) @else @endif @endfor
@endforeach @endif

TRENDING NOW

@if($products->isEmpty()) @else @include('front_end.partials_store_product_grid', ['products' => $products]) @endif
@if($totalProducts > count($products))
@endif
@endsection