@if(is_array(json_decode($product->photos)) && count(json_decode($product->photos)) > 0)
@foreach (json_decode($product->photos) as $key => $photo) @endforeach
@endif

{{ __($product->name) }}

@if(home_price($product->id) > home_discounted_price($product->id))
{{ translate('Price')}}:
{{ home_price($product->id) }}
{{ translate('Discount Price')}}:
{{ home_discounted_price($product->id) }}
@else
{{ translate('Price')}}:
{{ home_discounted_price($product->id) }}
@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; if($product->variant_product){ foreach ($product->stocks as $key => $stock) { $qty += $stock->qty; } } else{ $qty = $product->current_stock; } @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)->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')}}:

@endif
{{ translate('Total Price')}}:
@if ($product->digital == 1) @elseif($qty > 0) @else @endif