@extends("front.$version.layout") @section('pagename') - {{__('Product')}} - {{convertUtf8($product->title)}} @endsection @section('styles') @endsection @section('meta-keywords', "$product->meta_keywords") @section('meta-description', "$product->meta_description") @php $reviews = App\ProductReview::where('product_id', $product->id)->get(); $avarage_rating = App\ProductReview::where('product_id',$product->id)->avg('review'); $avarage_rating = round($avarage_rating,2); @endphp @section('breadcrumb-title', $be->product_details_title) @section('breadcrumb-subtitle', strlen($product->title) > 40 ? mb_substr($product->title,0,40,'utf-8') . '...' : $product->title) @section('breadcrumb-link', strlen($product->title) > 40 ? mb_substr($product->title,0,40,'utf-8') . '...' : $product->title) @section('content')
@foreach ($product->product_images as $image)
@endforeach
    @foreach ($product->product_images as $image)
  • @endforeach

{{convertUtf8($product->title)}}

@if ($bex->product_rating_system == 1)
@endif @if ($product->type != 'digital') @if ($product->stock > 0)

{{__('In Stock')}}

@else

{{__('Out of Stock')}}

@endif @endif
@if ($bex->catalog_mode == 0) {{$bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : ''}}{{$product->current_price}}{{$bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : ''}} @if (!empty($product->previous_price)) {{ $bex->base_currency_symbol_position == 'left' ? $bex->base_currency_symbol : '' }}{{$product->previous_price}}{{ $bex->base_currency_symbol_position == 'right' ? $bex->base_currency_symbol : '' }} @endif @endif @if (!empty($product->summary))

{{convertUtf8($product->summary)}}

@endif
@if ($product->type != 'digital' && $bex->catalog_mode == 0)
@endif @if ($bex->catalog_mode == 0)
{{__('Add To Cart')}}
@endif
count() == 0) style="padding-bottom:120px;" @endif>
{!! replaceBaseUrl(convertUtf8($product->description)) !!}
@if ($bex->product_rating_system == 1 && $bex->catalog_mode == 0)

{{convertUtf8($product->title)}}

@if (count($reviews) > 0) @foreach ($reviews as $review)
@if (strpos($review->user->photo, 'facebook') !== false || strpos($review->user->photo, 'google')) user image @else user image @endif
{{convertUtf8($review->user->username)}} – {{$review->created_at->format('d-m-Y')}}

{{convertUtf8($review->comment)}}

@endforeach @else
{{__('NOT RATED YET')}}
@endif @if(Auth::user()) @if(App\OrderItem::where('user_id',Auth::user()->id)->where('product_id',$product->id)->exists())
@error('error')

{{Session::get('error')}}

@enderror
@csrf
{{__('Comment')}}
{{__('Rating')}} *
@endif @else @endif
@endif
@if($related_product->count() > 0)
{{__('Related Products')}}

Have a look at the finlance latest Product')}}>

@endif @endsection @section('scripts') @endsection