@php $photos = explode(',',$product->photos); @endphp
@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 @foreach ($photos as $key => $photo)
@endforeach

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

@if(home_price($product) != home_discounted_price($product))
{{ translate('Price')}}:
{{ home_price($product) }} @if($product->unit != null) /{{ $product->getTranslation('unit') }} @endif
{{ translate('Discount Price')}}:
{{ home_discounted_price($product) }} @if($product->unit != null) /{{ $product->getTranslation('unit') }} @endif
@else
{{ translate('Price')}}:
{{ home_discounted_price($product) }} /{{ $product->unit }}
@endif @if (\App\Addon::where('unique_identifier', 'club_point')->first() != null && \App\Addon::where('unique_identifier', 'club_point')->first()->activated && $product->earn_point > 0)
{{ translate('Club Point') }}:
{{ $product->earn_point }}
@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\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) @endif