{{--
Product image
--}}
Product image
{{$product->name}}
{{\App\CentralLogics\Helpers::get_price_range($product, true)}} @if($product->discount > 0) {{\App\CentralLogics\Helpers::get_price_range($product)}} @endif
@if($product->discount > 0)
Discount : {{\App\CentralLogics\Helpers::get_product_discount($product)}}
@endif {{--
--}}

{{translate('messages.description')}}

{!! $product->description !!} {{--
@csrf @foreach (json_decode($product->choice_options) as $key => $choice)
{{ $choice->title }}
@foreach ($choice->options as $key => $option) @endforeach
@endforeach
{{translate('messages.quantity')}}:
@php($add_ons = json_decode($product->add_ons)) @if(count($add_ons)>0)
{{ translate('messages.addon') }}
@foreach (\App\Models\AddOn::whereIn('id', $add_ons)->active()->get() as $key => $add_on)
@endforeach
@endif
{{translate('Total Price')}}:
--}}
@csrf @foreach (json_decode($product->variations) as $key => $choice) @if (isset($choice->price) == false)
{{ $choice->name }} ({{ ($choice->required == 'on') ? translate('messages.Required') : translate('messages.optional') }})
@if ($choice->min != 0 && $choice->max != 0) {{ translate('You_need_to_select_minimum_ ') }} {{ $choice->min }} {{ translate('to_maximum_ ') }} {{ $choice->max }} {{ translate('options') }} @endif
@foreach ($choice->values as $k => $option)
{{ \App\CentralLogics\Helpers::format_currency($option->optionPrice) }}
@endforeach
@endif @endforeach
{{translate('messages.quantity')}}:
@php($add_ons = json_decode($product->add_ons)) @if(count($add_ons)>0 && !in_array('', $add_ons))
{{ translate('messages.addon') }}
@foreach (\App\Models\AddOn::withOutGlobalScope(App\Scopes\RestaurantScope::class)->whereIn('id', $add_ons)->active()->get() as $key => $add_on)
@endforeach
@endif
{{ translate('messages.Total Price') }}: