@php $photos = explode(',',$product->photos); @endphp
@foreach ($photos as $key => $photo)
@endforeach @foreach ($product->stocks as $key => $stock) @if ($stock->image != null)
@endif @endforeach
@foreach ($photos as $key => $photo)
@endforeach @foreach ($product->stocks as $key => $stock) @if ($stock->image != null)
@endif @endforeach

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

@if(home_price($product) != home_discounted_price($product))
{{ translate('Price')}}
{{ home_discounted_price($product) }} {{ home_price($product) }} @if($product->unit != null) /{{ $product->getTranslation('unit') }} @endif @if(discount_in_percentage($product) > 0) -{{discount_in_percentage($product)}}% @endif
@if (addon_is_activated('club_point') && $product->earn_point > 0)
{{ translate('Club Point') }}: {{ $product->earn_point }}
@endif
@else
{{ translate('Price')}}
{{ home_discounted_price($product) }} @if ($product->unit != null) /{{ $product->unit }} @endif
@endif @php $qty = 0; foreach ($product->stocks as $key => $stock) { $qty += $stock->qty; } @endphp
@csrf @if($product->digital !=1) @if ($product->choice_options != null) @foreach (json_decode($product->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($product->colors)) > 0)
{{ translate('Color')}}
@foreach (json_decode($product->colors) as $key => $color) @endforeach
@endif
{{ translate('Quantity')}}
@if($product->stock_visibility_state == 'quantity') ({{ $qty }} {{ translate('available')}}) @elseif($product->stock_visibility_state == 'text' && $qty >= 1) ({{ translate('In Stock') }}) @endif
@endif
{{ translate('Total Price')}}
@if ($product->digital == 1) @elseif($qty > 0) @if ($product->external_link != null) {{ translate($product->external_link_btn)}} @else @endif @endif