@csrf
@lang('modules.menu.menuItemHelp') @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 ($isTaxModeItem)
@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 }}
@endif @if (!$showItemPrice)
@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
@endif @if ($hasVariations) @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 && $taxInclusivePriceDetails)

@lang('modules.menu.taxBreakdown')

@lang('modules.menu.basePrice'): {{ currency_format($taxInclusivePriceDetails['base_raw'] ?? 0, restaurant()->currency_id) }}
@if(!empty($taxInclusivePriceDetails['tax_breakdown']))
@foreach($taxInclusivePriceDetails['tax_breakdown'] as $taxName => $amount)
{{ $taxName }} {{ currency_format($amount, restaurant()->currency_id) }}
@endforeach
@endif
@lang('modules.menu.tax') ({{ $taxInclusivePriceDetails['tax_percent'] }}%): {{ currency_format($taxInclusivePriceDetails['tax_raw'] ?? 0, restaurant()->currency_id) }}
@lang('modules.menu.total'): {{ currency_format($taxInclusivePriceDetails['total_raw'] ?? 0, restaurant()->currency_id) }}
@if($taxInclusivePriceDetails['inclusive']) @lang('modules.menu.taxInclusiveInfo', [ 'percent' => $taxInclusivePriceDetails['tax_percent'], 'tax' => currency_format($taxInclusivePriceDetails['tax_raw'] ?? 0, restaurant()->currency_id), 'base' => currency_format($taxInclusivePriceDetails['base_raw'] ?? 0, restaurant()->currency_id) ]) @else @lang('modules.menu.taxExclusiveInfo', [ 'percent' => $taxInclusivePriceDetails['tax_percent'], 'tax' => currency_format($taxInclusivePriceDetails['tax_raw'] ?? 0, restaurant()->currency_id), 'base' => currency_format($taxInclusivePriceDetails['base_raw'] ?? 0, restaurant()->currency_id) ]) @endif
@endif
@lang('app.save') @lang('app.cancel')
@lang('modules.menu.itemCategory') @livewire('forms.addItemCategory') @lang('app.cancel') @push('scripts') @endpush