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

@if ($detailedProduct->auction_product != 1)
@php $total = 0; $total += $detailedProduct->reviews->count(); @endphp {{ renderStarRating($detailedProduct->rating) }} ({{ $total }} {{ translate('reviews') }})
@endif @if ($detailedProduct->est_shipping_days)
{{ translate('Estimate Shipping Time') }}: {{ $detailedProduct->est_shipping_days }} {{ translate('Days') }}
@endif @if ($detailedProduct->digital == 1)
{{ translate('In stock')}}
@endif
@if ($detailedProduct->auction_product != 1) @endif
@if ($detailedProduct->brand != null)
{{ translate('Brand') }}
{{ $detailedProduct->brand->name }}
@endif
@if ($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) {{ translate('Sold by') }} {{ $detailedProduct->user->shop->name }} @else

{{ translate('Inhouse product') }}

@endif
@if (get_setting('conversation_system') == 1)
@endif

@if ($detailedProduct->auction_product)
{{ translate('Auction Will End')}}
@if($detailedProduct->auction_end_date > strtotime("now"))
@else

{{ translate('Ended')}}

@endif
{{ translate('Starting Bid')}}
{{ single_price($detailedProduct->starting_bid) }} @if($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif
@if(Auth::check() && Auth::user()->product_bids->where('product_id',$detailedProduct->id)->first() != null)
{{ translate('My Bidded Amount')}}
{{ single_price(Auth::user()->product_bids->where('product_id',$detailedProduct->id)->first()->amount) }}

@endif @php $highest_bid = $detailedProduct->bids->max('amount'); @endphp
{{ translate('Highest Bid')}}
@if($highest_bid != null) {{ single_price($highest_bid) }} @endif
@else @if ($detailedProduct->wholesale_product == 1) @foreach ($detailedProduct->stocks->first()->wholesalePrices as $wholesalePrice) @endforeach
{{ translate('Min Qty') }} {{ translate('Max Qty') }} {{ translate('Unit Price') }}
{{ $wholesalePrice->min_qty }} {{ $wholesalePrice->max_qty }} {{ single_price($wholesalePrice->price) }}
@else @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 @endif @endif @if ($detailedProduct->auction_product != 1)
@csrf @if ($detailedProduct->digital == 0) @if ($detailedProduct->choice_options != null) @foreach (json_decode($detailedProduct->choice_options) as $key => $choice)
{{ \App\Models\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
@endif
{{ translate('Total Price') }}
@endif @if ($detailedProduct->auction_product) @php $highest_bid = $detailedProduct->bids->max('amount'); $min_bid_amount = $highest_bid != null ? $highest_bid+1 : $detailedProduct->starting_bid; @endphp @if($detailedProduct->auction_end_date >= strtotime("now"))
@if(Auth::check() && $detailedProduct->user_id == Auth::user()->id) {{ translate('Seller Can Not Place Bid to His Own Product') }} @else @endif
@endif @else
@if ($detailedProduct->digital == 0) @if ($detailedProduct->external_link != null) {{ translate($detailedProduct->external_link_btn) }} @else @endif @elseif ($detailedProduct->digital == 1) @endif
@if (Auth::check() && addon_is_activated('affiliate_system') && (\App\Models\AffiliateOption::where('type', 'product_sharing')->first()->status || \App\Models\AffiliateOption::where('type', 'category_wise_affiliate')->first()->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'))
{{ translate('Refund') }}
@if ($detailedProduct->refundable == 1) @if ($refund_sticker != null) @else @endif {{ translate('View Policy') }} @else
{{ translate('Not Applicable') }}
@endif
@endif @if ($detailedProduct->digital == 1) @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 @endif @endif
{{ translate('Share') }}