@extends('frontend.layout') @section('pageHeading') {{ __('Product Details') }} @endsection @section('metaKeywords') @if (!empty($details)) {{ $details->meta_keywords }} @endif @endsection @section('metaDescription') @if (!empty($details)) {{ $details->meta_description }} @endif @endsection @section('style') @endsection @section('content') {{-- breadcrub start --}} @includeIf('frontend.partials.details-breadcrumb', [ 'breadcrumb' => $bgImg->breadcrumb, 'heading' => @$details->title, 'title' => !empty($pageHeading) ? $pageHeading->products_page_title : 'product', ]) {{-- breadcrub end --}}

{{ $details->title }}

@if (!empty($details->average_rating))
@endif ({{ $details->average_rating }}) @php $totalReview = App\Models\Shop\ProductReview::Where('product_id', $details->id)->count(); @endphp {{ $totalReview }} {{ __('Reviews') }}

{{ symbolPrice($details->current_price) }}

@if (!empty($details->previous_price)) {{ symbolPrice($details->previous_price) }} @endif
{!! $details->summary !!}
{{ __('Category') . ':' }} {{ $details->categoryName }}
{!! replaceBaseUrl($details->content, 'summernote') !!}
@if (count($reviews) == 0)
{{ __('This product has no review yet') . '!' }}
@else
{{ __('All Reviews') }}
@foreach ($reviews as $review)
@if (empty($review->user->image)) Person Image @else Person Image @endif
{{ $review->user->username }}
{{ date_format($review->created_at, 'F d, Y') }}
@endforeach
@endif @auth('web')
Add Review
@csrf
@endauth
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@if (count($related_products) > 0)

{{ __('Related Products') }}

@foreach ($related_products as $product)
Product @if ($product->product_type == 'digital') {{ $product->product_type }} @endif @if ($product->product_type == 'physical') @if ($product->stock == 0)
{{ __('Stock Out') }}
@endif @endif @if ($product->product_type == 'physical') @if ($product->stock != 0) @endif @endif @if ($product->product_type == 'digital') @endif
{{ strlen($product->title) > 15 ? mb_substr($product->title, 0, 15, 'UTF-8') . '...' : $product->title }}
{{ symbolPrice($product->current_price) }}
@if (!empty($product->previous_price)) {{ symbolPrice($product->previous_price) }} @endif
@endforeach
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endif
@if (count($related_products) > 0)

{{ __('Related Products') }}

@foreach ($related_products as $product)
Product @if ($product->product_type == 'digital') {{ $product->product_type }} @endif
{{ strlen($product->title) > 15 ? mb_substr($product->title, 0, 15, 'UTF-8') . '...' : $product->title }}
{{ symbolPrice($product->current_price) }}
@if (!empty($product->previous_price)) {{ symbolPrice($product->previous_price) }} @endif
@endforeach
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endif @endsection @section('script') @endsection