@if (config('toggle_veg_non_veg')) {{ $product->veg ? translate('messages.veg') : translate('messages.non_veg') }} @endif
Product image
{{ $product->name }}
{{ \App\CentralLogics\Helpers::get_price_range($product, true) }} @if ($product->discount > 0 || \App\CentralLogics\Helpers::get_restaurant_discount($product->restaurant)) {{ \App\CentralLogics\Helpers::get_price_range($product) }} @endif
@if ($product->discount > 0)
{{ translate('messages.discount') }} : {{ \App\CentralLogics\Helpers::get_product_discount($product) }}
@endif
has('cart')) { foreach (session()->get('cart') as $key => $cartItem) { if (is_array($cartItem) && $cartItem['id'] == $product['id']) { $cart = $cartItem; } } } ?>

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

{!! $product->description !!}
@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') }}: