@extends('frontend.layout') @section('pageHeading') {{ $product->title }} @endsection @section('meta-keywords', "{{ $product->meta_keywords }}") @section('meta-description', "$product->meta_description") @php $og_title = $product->title; $og_description = strip_tags($product->description); $og_image = asset('assets/admin/img/product/feature_image/' . $product->feature_image); @endphp @section('og-title', "$og_title") @section('og-description', "$og_description") @section('og-image', "$og_image") @section('custom-style')
@endsection @section('hero-section')
{{ __('Shop') }}
{{ __('Home') }}
{{ __('Product Details') }}
@endsection @section('content')
@php $reviews = App\Models\ShopManagement\ProductReview::where('product_id', $product->id)->get(); $avarage_rating = App\Models\ShopManagement\ProductReview::where('product_id', $product->id)->avg('review'); $avarage_rating = round($avarage_rating, 2); @endphp
@foreach ($galleries as $gallery)
@endforeach
@foreach ($galleries as $gallery)
@endforeach
{{ $product->title }}
@if ($basicInfo->is_shop_rating == 1)
@endif @if ($product->type == 'digital')
{{ __('Available') }}
@else @if ($product->stock > 0)
{{ __('In Stock') }}
@else
{{ __('Out of Stock') }}
@endif @endif
{{ symbolPrice($product->previous_price) }}
{{ symbolPrice($product->current_price) }}
{{ $product->summary }}
@csrf
-
+
{{ __('Add to Cart') }}
{{ __('SKU') }}:
{{ $product->sku }}
{{ __('Category') }}:
{{ $product->category }}
{{ __('Description') }}
@if ($basicInfo->is_shop_rating == 1)
{{ __('Review') }} ({{ count($reviews) }})
@endif
{{ __('Description') }}
{!! $product->description !!}
@if ($basicInfo->is_shop_rating == 1)
{{ convertUtf8($product->title) }}
@if (count($reviews) > 0) @foreach ($reviews as $review)
@php $customer = App\Models\Customer::where('id', $review->user_id)->first(); @endphp
{{ convertUtf8($customer->fname) }} {{ convertUtf8($customer->lname) }}
– {{ date('d-m-Y', strtotime($review->created_at)) }}
{{ convertUtf8($review->comment) }}
@endforeach @else
{{ __('NOT RATED YET') }}
@endif @if (Auth::guard('customer')->user()) @if (App\Models\ShopManagement\OrderItem::where('user_id', Auth::guard('customer')->user()->id)->where('product_id', $product->id)->exists())
@error('error')
{{ Session::get('error') }}
@enderror
@csrf
{{ __('Comment') }}
{{ __('Rating') . ' *' }}
{{ __('Submit') }}
@endif @else
{{ __('Login') }}
{{ __('to leave a rating') }}
@endif
@endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@endsection