@csrf

@lang('modules.menu.productInformation')

@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 ((module_enabled('Inventory') && in_array('Inventory', restaurant_modules())))
@else
@endif @if (in_array('Kitchen', restaurant_modules()))
@foreach($kitchenTypes as $type) @endforeach
@endif

@lang('modules.menu.itemImageUploadHelp')

@if ($menuItem->image && !$itemImageTemp)

Current image:

{{ $menuItem->item_name }}
@endif @if($itemImageTemp)
Preview

{{ $itemImageTemp->getClientOriginalName() }}

{{ $this->formatFileSize($itemImageTemp->getSize()) }}

@php $imageInfo = getimagesize($itemImageTemp->getRealPath()); if ($imageInfo) { echo '

' . $imageInfo[0] . ' × ' . $imageInfo[1] . ' pixels

'; } @endphp
@endif
@lang('app.save') Saving... @lang('app.cancel')
@if ($isTaxModeItem)

@lang('modules.menu.taxSettings')

@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.pricingDetails')

@lang('modules.menu.hasVariationsHelp')

@if(!$showItemPrice)
@foreach($inputs as $key => $value)
'openVariation === ' . $key ])>

{{ !empty($variationName[$key]) ? $variationName[$key] : 'Variation ' . ($key + 1) }}

@lang('modules.menu.setPrice'): {{ restaurant()->currency->currency_symbol }}{{ !empty($variationPrice[$key]) ? $variationPrice[$key] : '0.00' }}

@if(count($inputs) > 1) @endif
{{ restaurant()->currency->currency_symbol }}
@if($orderTypes->isNotEmpty())
@foreach($orderTypes->reject(fn($type) => strtolower($type->slug ?? $type->name) === 'delivery') as $orderType)
orderTypeColor($orderType->id)])>
{{ $orderType->order_type_name }}
{{ restaurant()->currency->currency_symbol }}
@endforeach
@endif @if($deliveryApps->isNotEmpty())
Base Delivery Price
{{ restaurant()->currency->currency_symbol }}
@foreach($deliveryApps as $app)
@if($app->logo) {{ $app->name }} @else
@endif
{{ $app->name }}
Commission: {{ $app->commission_value ?? 0 }}%
{{ restaurant()->currency->currency_symbol }}{{ $variationDeliveryPrices[$key][$app->id] ?? '0.00' }}
Final
@endforeach
@endif @if($isTaxModeItem && !empty($variationBreakdowns[$key]['breakdown']))
@lang('modules.menu.taxBreakdown')
@lang('modules.menu.basePrice'): {{ restaurant()->currency->currency_symbol }}{{ $variationBreakdowns[$key]['breakdown']['base_price'] ?? '0.00' }}
@if(!empty($variationBreakdowns[$key]['breakdown']['tax_breakdown'])) @foreach($variationBreakdowns[$key]['breakdown']['tax_breakdown'] as $tax)
{{ $tax['name'] }} ({{ $tax['rate'] }}%): {{ restaurant()->currency->currency_symbol }}{{ $tax['amount'] }}
@endforeach @endif
@lang('modules.menu.total'): {{ restaurant()->currency->currency_symbol }}{{ $variationBreakdowns[$key]['breakdown']['final_price'] ?? '0.00' }}
@endif
@endforeach @if ($hasVariations) @lang('modules.menu.addVariations') @endif
@endif @if ($showItemPrice)
{{ restaurant()->currency->currency_symbol }}

This will be used as the default price if order type specific prices are not set.

@foreach($orderTypes->reject(fn($type) => strtolower($type->slug ?? $type->name) === 'delivery') as $orderType)
orderTypeColor($orderType->id)])>
{{ $orderType->order_type_name }}
{{ restaurant()->currency->currency_symbol }}
@endforeach
@foreach($orderTypes->reject(fn($type) => strtolower($type->slug ?? $type->name) === 'delivery') as $orderType) @endforeach
Delivery
Default delivery price
{{ restaurant()->currency->currency_symbol }}
@forelse($deliveryApps as $app)
@if($app->logo) {{ $app->name }} @else
@endif
{{ $app->name }}
Commission: @if($app->commission_type === 'percent') {{ $app->commission_value ?? 0 }}% @else {{ restaurant()->currency->currency_symbol }}{{ $app->commission_value ?? 0 }} @endif
{{ restaurant()->currency->currency_symbol }}{{ $deliveryPrices[$app->id] ?? '0.00' }}
Final Price
@empty

@lang("messages.noDeliveryAppFound")

@endforelse
@endif @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 $tax)
{{ $tax['name'] }} ({{ $tax['rate'] }}%) {{ currency_format($tax['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('modules.menu.itemCategory') @livewire('forms.addItemCategory') @lang('app.cancel') @push('scripts') @endpush