@extends('../site/layouts.app') @section('page_title', $name) @section('seo') @include('site.layouts.section.product-details.seo') @endsection @section('css') @endsection @section('content')
{{-- breadcrumbs --}}
@include('site.layouts.section.product-details.slider')

{{ $name }}

{{-- ratting --}} @if($reviews_allowed == 1 && preference('reviews_enable_product_review') == 1) @include('site.layouts.section.product-details.rating') @endif
{{-- share button --}} @include('site.layouts.section.product-details.share_button') @if (preference('wishlist')) @php $active = false; if (auth()->user()) { foreach (auth()->user()->wishlist as $key => $wishlist) { if ($id == $wishlist->product_id) { $active = true; } } } @endphp {{-- Wish-list --}}
@endif {{-- compare --}} @if (preference('compare'))
@endif
@include('site.layouts.section.product-details.offer') @if(!$product->isGroupedProduct() && !$product->isExternalProduct()) @include('site.layouts.section.product-details.variation') @endif @include('site.layouts.section.product-details.add_to_cart')
{{ $purchase_note }}
@include('site.layouts.section.product-details.delivery')
@if(!empty(strip_tags($description)) || strpos($description, ' 0) @include('site.layouts.section.product-details.description') @endif @if(!empty($attributes) || !empty($weight) || is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['length']) && $dimensions['length'] != "" || is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['width']) && $dimensions['width'] != "" || is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['height']) && $dimensions['height'] != "") @include('site.layouts.section.product-details.specification') @endif @if(!empty($vendorDetails)) @include('site.layouts.section.product-details.vendor_info') @endif @if($reviews_allowed == 1 && preference('reviews_enable_product_review') == 1) @include('site.layouts.section.product-details.review') @endif
@include('site.layouts.section.product-details.related-products')
@if(!empty($vendorDetails))

{{ __('Sold By') }}

{{ $vendorDetails->name }}

{{ __('Image') }}

{{ __('Positive Seller Ratings') }}

{{ \App\Models\Product::positiveRating($vendor_id) }}%

{{ __('Ship on Time') }}

{{ $vendorDetails->onTimeShipment() }}%

{{ __('Seller Reviews') }}

{{ $vendorReview['total_review'] ?? 0 }}

@if(isset($vendorDetails->shops[0]->name)) {{ __('Go to Store') }} @endif @auth @if (isActive('Ticket') && preference('chat')) {{ __('Send Message') }} @endif @endauth @include('site.layouts.section.product-details.same-shop') @endif
@endsection @section('js') @php $allImage = []; foreach($images as $im) { $allImage[] = getBackgroundImage($im); } $format = getFormatedCountdown(); $formatSaleTo = date($format, strtotime(strtr($sale_to, " ", ''))); @endphp @endsection