@php
$productAvailability = $product->getAvailability();
$hasInventory = ($productAvailability > 0);
@endphp
{{-- Special Offer --}}
@include('design_1.web.products.show.includes.main_info.special_offer')
{{-- Breadcrumb --}}
{{ $product->title }}
@php
$productAllBadges = $product->allBadges();
@endphp
{{-- Badges --}}
@if(count($productAllBadges))
@foreach($productAllBadges as $productBadge)
@if(!empty($productBadge->icon))
@endif
{{ $productBadge->title }}
@endforeach
@endif
{{-- Rate --}}
@include('design_1.web.components.rate', [
'rate' => $product->getRate(),
'rateCount' => $product->getRateCount(),
'rateClassName' => '',
'rateCountFont' => 'font-12',
])
{{ truncate($product->creator->full_name, 15) }}
{{ $product->salesCount() }}
{{ trans('panel.sales') }}
@if($product->isPhysical() and !empty($product->delivery_estimated_time))
{{ $product->delivery_estimated_time }}
{{ trans('update.shipping_days') }}
@endif
@if(!$hasInventory)
{{ trans('update.out_of_stock') }}
@endif
{{-- Summary --}}
@if(!empty($product->summary))
@php
$walletHints = explode("\n", $product->summary);
@endphp
@foreach ($walletHints as $hint)
@if (!empty(trim($hint)))
- {{ $hint }}
@endif
@endforeach
@endif
{{-- Specifications --}}
@if(!empty($selectableSpecifications) and count($selectableSpecifications))
@foreach($selectableSpecifications as $selectableSpecification)
{{ $selectableSpecification->specification->title }}
@foreach($selectableSpecification->selectedMultiValues as $specificationValue)
@if(!empty($specificationValue->multiValue))
iteration == 1) ? 'checked' : '' }} >
@endif
@endforeach
@endforeach
@endif
@if($hasInventory)
{{-- Price --}}
@if(!empty($product->price) and $product->price > 0)
@if($product->getPriceWithActiveDiscountPrice() < $product->price)
{{ handlePrice($product->getPriceWithActiveDiscountPrice(), true, true, false, null, true, 'store') }}
{{ handlePrice($product->price, true, true, false, null, true, 'store') }}
@else
{{ handlePrice($product->price, true, true, false, null, true, 'store') }}
@endif
@else
{{ trans('public.free') }}
@endif
@if($product->isPhysical())
@if(!empty($product->delivery_fee) and $product->delivery_fee > 0)
+ {{ trans('update.n_shipping_fee',['amount' => handlePrice($product->delivery_fee)]) }}
@else
{{ trans('update.free_shipping') }}
@endif
@endif
{{-- Quantity --}}
@if(!empty($product->inventory) and !empty($product->inventory_warning) and $product->inventory_warning > $productAvailability)
{{ trans('update.only_n_items_are_available', ['count' => $productAvailability]) }}
@endif
{{-- Actions --}}
@else
{{ trans('update.out_of_stock') }}
@endif