@extends('frontend.layouts.app') @section('meta_title'){{ $detailedProduct->meta_title }}@stop @section('meta_description'){{ $detailedProduct->meta_description }}@stop @section('meta_keywords'){{ $detailedProduct->tags }}@stop @section('meta') @endsection @section('content')
@php $photos = explode(',', $detailedProduct->photos); @endphp

{{ $detailedProduct->getTranslation('name') }}

@php $total = 0; $total += $detailedProduct->reviews->count(); @endphp {{ renderStarRating($detailedProduct->rating) }} ({{ $total }} {{ translate('reviews')}})
@if ($detailedProduct->est_shipping_days)
{{ translate('Estimate Shipping Time')}}: {{ $detailedProduct->est_shipping_days }} {{ translate('Days') }}
@endif

{{ translate('Sold by')}}:
@if ($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) {{ $detailedProduct->user->shop->name }} @else {{ translate('Inhouse product') }} @endif
@if (get_setting('conversation_system') == 1)
@endif @if ($detailedProduct->brand != null) @endif

@if(home_price($detailedProduct) != home_discounted_price($detailedProduct))
{{ translate('Price')}}:
{{ home_price($detailedProduct) }} @if($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif
{{ translate('Discount Price')}}:
{{ home_discounted_price($detailedProduct) }} @if($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif
@else
{{ translate('Price')}}:
{{ home_discounted_price($detailedProduct) }} @if($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif
@endif
@csrf @if ($detailedProduct->choice_options != null) @foreach (json_decode($detailedProduct->choice_options) as $key => $choice)
{{ \App\Attribute::find($choice->attribute_id)->getTranslation('name') }}:
@foreach ($choice->values as $key => $value) @endforeach
@endforeach @endif @if (count(json_decode($detailedProduct->colors)) > 0)
{{ translate('Color')}}:
@foreach (json_decode($detailedProduct->colors) as $key => $color) @endforeach

@endif
{{ translate('Quantity')}}:
@php $qty = 0; foreach ($detailedProduct->stocks as $key => $stock) { $qty += $stock->qty; } @endphp
@if($detailedProduct->stock_visibility_state == 'quantity') ({{ $qty }} {{ translate('available')}}) @elseif($detailedProduct->stock_visibility_state == 'text' && $qty >= 1) ({{ translate('In Stock') }}) @endif

{{ translate('Total Price')}}:
@php $refund_request_addon = \App\Addon::where('unique_identifier', 'refund_request')->first(); $refund_sticker = \App\BusinessSetting::where('type', 'refund_sticker')->first(); @endphp @if ($refund_request_addon != null && $refund_request_addon->activated == 1 && $detailedProduct->refundable) @endif
{{ translate('Share')}}:
@if ($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1 && $detailedProduct->user->seller->verification_status == 1)
@endif
{{ translate('Sold By')}}
@if($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) {{ $detailedProduct->user->shop->name }} @if ($detailedProduct->user->seller->verification_status == 1) @else @endif
{{ $detailedProduct->user->shop->address }}
@else
{{ env("APP_NAME") }}
@endif @php $total = 0; $rating = 0; foreach ($detailedProduct->user->products as $key => $seller_product) { $total += $seller_product->reviews->count(); $rating += $seller_product->reviews->sum('rating'); } @endphp
@if ($total > 0) {{ renderStarRating($rating/$total) }} @else {{ renderStarRating(0) }} @endif
({{ $total }} {{ translate('customer reviews')}})
@if($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) @endif
{{ translate('Top Selling Products')}}
    @foreach (filter_products(\App\Product::where('user_id', $detailedProduct->user_id)->orderBy('num_of_sale', 'desc'))->limit(6)->get() as $key => $top_product)
  • {{ $top_product->getTranslation('name') }}

    {{ renderStarRating($top_product->rating) }}
    {{ home_discounted_base_price($top_product) }}
  • @endforeach

Notice: Undefined variable: detailedProduct in /home/plcshop/amarshokh.com/resources/views/frontend/f_order.blade.php on line 546

Fatal error: Uncaught Error: Call to a member function getTranslation() on null in /home/plcshop/amarshokh.com/resources/views/frontend/f_order.blade.php:546 Stack trace: #0 {main} thrown in /home/plcshop/amarshokh.com/resources/views/frontend/f_order.blade.php on line 546