@csrf
@if(count($languages) > 1)
@php $languageSettings = collect(App\Models\LanguageSetting::LANGUAGES) ->keyBy('language_code') ->map(function ($lang) { return [ 'flag_url' => asset('flags/1x1/' . strtolower($lang['flag_code']) . '.svg'), 'name' => App\Models\LanguageSetting::LANGUAGES_TRANS[$lang['language_code']] ?? $lang['language_name'] ]; }); @endphp @foreach($languages as $code => $name) @endforeach {{-- Current Selected Flag --}} @php $currentFlagCode = collect(App\Models\LanguageSetting::LANGUAGES) ->where('language_code', $currentLanguage) ->first()['flag_code'] ?? $currentLanguage; @endphp
{{ $currentLanguage }}
@endif
@if(count($languages) > 1 && (array_filter($translationNames) || array_filter($translationDescriptions)))
@foreach($languages as $lang => $langName) @if(!empty($translationNames[$lang]) || !empty($translationDescriptions[$lang]))
{{ $languageSettings->get($lang)['name'] ?? strtoupper($lang) }}
@if(!empty($translationNames[$lang]))
@lang('app.name'): {{ $translationNames[$lang] }}
@endif @if(!empty($translationDescriptions[$lang]))
@lang('app.description'): {{ $translationDescriptions[$lang] }}
@endif
@endif @endforeach
@endif
@foreach ($menus as $item) @endforeach
@foreach ($categoryList as $item) @endforeach
@lang('modules.menu.minutes')
@if (in_array('Kitchen', restaurant_modules()))
@foreach($kitchenTypes as $type) @endforeach
@endif
@if ($menuItem->image) {{ $menuItem->item_name }} @endif
@if (restaurant()->tax_mode === 'item')
@if(empty($selectedTaxes)) @lang('modules.menu.selectTaxes') @else @foreach(collect($taxes)->whereIn('id', $selectedTaxes) as $tax) {{ $tax->tax_name }} ({{ $tax->tax_percent }}%) @endforeach @endif
@lang('modules.menu.selectTaxes')
    @foreach($taxes as $tax)
  • @endforeach
@endif
@lang('modules.menu.hasVariations')
@if ($showItemPrice)
{{ restaurant()->currency->currency_symbol }}
@else
@foreach($inputs as $key => $value)
{{ restaurant()->currency->currency_symbol }}
{{-- Variation tax breakdown for this variation --}} @if(!empty($variationBreakdowns[$key]['breakdown']))
@lang('modules.menu.taxBreakdown') — {{ $variationName[$key] ?? __('modules.menu.variation') }}
@lang('modules.menu.basePrice'): {{ currency_format($variationBreakdowns[$key]['breakdown']['base_raw'] ?? 0, restaurant()->currency_id) }}
@if(!empty($variationBreakdowns[$key]['breakdown']['tax_breakdown']))
@foreach($variationBreakdowns[$key]['breakdown']['tax_breakdown'] as $taxName => $amount)
{{ $taxName }} {{ currency_format($amount, restaurant()->currency_id) }}
@endforeach
@endif
@lang('modules.menu.tax') ({{ $variationBreakdowns[$key]['breakdown']['tax_percent'] ?? 0 }}%): {{ currency_format($variationBreakdowns[$key]['breakdown']['tax_raw'] ?? 0, restaurant()->currency_id) }}
@lang('modules.menu.total'): {{ currency_format($variationBreakdowns[$key]['breakdown']['total_raw'] ?? 0, restaurant()->currency_id) }}
@if($variationBreakdowns[$key]['breakdown']['inclusive'] ?? false) @lang('modules.menu.taxInclusiveInfo', [ 'percent' => $variationBreakdowns[$key]['breakdown']['tax_percent'], 'tax' => currency_format($variationBreakdowns[$key]['breakdown']['tax_raw'] ?? 0, restaurant()->currency_id), 'base' => currency_format($variationBreakdowns[$key]['breakdown']['base_raw'] ?? 0, restaurant()->currency_id) ]) @else @lang('modules.menu.taxExclusiveInfo', [ 'percent' => $variationBreakdowns[$key]['breakdown']['tax_percent'], 'tax' => currency_format($variationBreakdowns[$key]['breakdown']['tax_raw'] ?? 0, restaurant()->currency_id), 'base' => currency_format($variationBreakdowns[$key]['breakdown']['base_raw'] ?? 0, restaurant()->currency_id) ]) @endif
@endif
@endforeach @lang('modules.menu.addVariations')
@endif {{--
@foreach([ ['id' => 'tax-exclusive', 'value' => 0, 'label' => __('modules.menu.taxAddedToPrice')], ['id' => 'tax-inclusive', 'value' => 1, 'label' => __('modules.menu.priceIncludesTax')] ] as $option)
@endforeach
--}} @if (!$hasVariations && $taxInclusivePrice)

@lang('modules.menu.taxBreakdown')

@php $currencySymbol = restaurant()->currency->currency_symbol; $formatPrice = function($amount) use ($currencySymbol) { return $currencySymbol . ' ' . number_format($amount ?? 0, 2); }; @endphp
@lang('modules.menu.basePrice'): {{ $formatPrice($taxInclusivePrice['base_raw']) }}
@if(!empty($taxInclusivePrice['tax_breakdown']))
@foreach($taxInclusivePrice['tax_breakdown'] as $taxName => $amount)
{{ $taxName }} {{ $formatPrice($amount) }}
@endforeach
@endif
@lang('modules.menu.tax') ({{ $taxInclusivePrice['tax_percent'] }}%): {{ $formatPrice($taxInclusivePrice['tax_raw']) }}
@lang('modules.menu.total'): {{ $formatPrice($taxInclusivePrice['total_raw']) }}
@if($taxInclusivePrice['inclusive']) @lang('modules.menu.taxInclusiveInfo', [ 'percent' => $taxInclusivePrice['tax_percent'], 'tax' => $formatPrice($taxInclusivePrice['tax_raw']), 'base' => $formatPrice($taxInclusivePrice['base_raw']) ]) @else @lang('modules.menu.taxExclusiveInfo', [ 'percent' => $taxInclusivePrice['tax_percent'], 'tax' => $formatPrice($taxInclusivePrice['tax_raw']), 'base' => $formatPrice($taxInclusivePrice['base_raw']) ]) @endif
@endif
@lang('app.save') @lang('app.cancel')