Product image
@if ($item_type == 'food') {{ $item_type == 'food' ? $product->name : $product->title }} @else
{{ $item_type == 'food' ? $product->name : $product->title }}
@endif
{{ \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 @php($singleArray = []) @php($singleArray_name = []) @php($values = []) @php($selected_variations = json_decode($cart_item['variation'], true)) @if (is_array($selected_variations)) @php($singleArray = array_column($selected_variations, 'values')) @php($singleArray_name = array_column($selected_variations, 'name')) @php($names = []) @php($values = []) @foreach ($selected_variations as $key => $var) @if (isset($var['values'])) @php($names[$key] = $var['name']) @php($items = []) @foreach ($var['values'] as $k => $item) @php($items[$k] = $item['label']) @endforeach @php($values[$key] = $items) @endif @endforeach @endif @foreach (json_decode($product->variations) as $key => $choice) @if (isset($choice->name) && isset($choice->values))
{{ $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)
label, $values[$key]) ? 'checked' : '' }} @endif autocomplete="off"> {{ \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') }}
@php($addons = array_column(json_decode($cart_item['add_ons'], true), 'quantity', 'id')) @foreach (\App\Models\AddOn::withOutGlobalScope(App\Scopes\RestaurantScope::class)->whereIn('id', $add_ons)->active()->get() as $key => $add_on) @php($checked = array_key_exists($add_on->id, $addons))
@endforeach
@endif
{{ translate('Total Price') }}: