@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')
@if($detailedProduct->photos != null) @php $photos = explode(',',$detailedProduct->photos); @endphp
@endif

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

@php $total = 0; $total += $detailedProduct->reviews->where('status', 1)->count(); @endphp {{ renderStarRating($detailedProduct->rating) }} ({{ $total }} {{ translate('reviews') }})
{{ translate('In stock')}}

@if ($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) @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)
{{ $detailedProduct->brand->getTranslation('name') }}
{{ translate('Brand') }}
{{ $detailedProduct->brand->name }}
@endif

@if(home_price($detailedProduct) != home_discounted_price($detailedProduct))
{{ translate('Price')}}
{{ home_discounted_price($detailedProduct) }} {{ home_price($detailedProduct) }} @if($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif @if(discount_in_percentage($detailedProduct) > 0) -{{discount_in_percentage($detailedProduct)}}% @endif @if (addon_is_activated('club_point') && $detailedProduct->earn_point > 0)
{{ translate('Club Point') }}: {{ $detailedProduct->earn_point }}
@endif
@else
{{ translate('Price') }}
{{ home_discounted_price($detailedProduct) }} @if ($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif @if (addon_is_activated('club_point') && $detailedProduct->earn_point > 0)
{{ translate('Club Point') }}: {{ $detailedProduct->earn_point }}
@endif
@endif
@csrf
{{ translate('Total Price') }}
@if(Auth::check() && addon_is_activated('affiliate_system') && get_affliate_option_status() && Auth::user()->affiliate_user != null && Auth::user()->affiliate_user->status) @php if(Auth::check()){ if(Auth::user()->referral_code == null){ Auth::user()->referral_code = substr(Auth::user()->id.Str::random(10), 0, 10); Auth::user()->save(); } $referral_code = Auth::user()->referral_code; $referral_code_url = URL::to('/product').'/'.$detailedProduct->slug."?product_referral_code=$referral_code"; } @endphp
@endif
@php $refund_sticker = get_setting('refund_sticker'); @endphp @if (addon_is_activated('refund_request')) @endif @if ($detailedProduct->added_by == 'seller')
{{ translate('Seller Guarantees')}}
@if ($detailedProduct->user->shop->verification_status == 1) {{ translate('Verified seller')}} @else {{ translate('Non verified seller')}} @endif
@endif
{{ translate('Share') }}
@if ($detailedProduct->added_by == 'seller' && $detailedProduct->user->shop != null)
@if ($detailedProduct->user->shop->verification_status)
@endif
{{ translate('Seller')}}
@if ($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) @endif
@if ($total > 0) {{ renderStarRating($detailedProduct->user->shop->rating) }} @else {{ renderStarRating(0) }} @endif
({{ $total }} {{ translate('customer reviews') }})
@endif
{{ translate('Top Selling Products') }}
    @foreach (get_best_selling_products(6, $detailedProduct->user_id) as $key => $top_product)
  • {{ $top_product->getTranslation('name') }}

    {{ home_discounted_base_price($top_product) }} @if(home_price($top_product) != home_discounted_price($top_product)) {{ home_price($top_product) }} @endif
  • @endforeach