@extends('tenant.layouts.master') @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.point_of_sale') => '#', __('breadcrumb.menus') => route('tenant.pos.menus.index'), __('breadcrumb.add')=> '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'pos.menus']) @endsection @section('content')
@csrf @method('PUT')
@lang('pos/menus/create.edit_menu_data')
@if ($menu->parent)
@endif
@if ($menu->level == 1)
@php $selected_branches_ids = $menu->branches->pluck('id')->all(); @endphp @foreach ($branches as $branch)
id, $selected_branches_ids) ? 'checked' : '' }}>
@endforeach
@endif
@lang('pos/menus/create.link_menu_to_items')
@php $selected_items_ids = $menu->barcodes->pluck('item_id')->all(); $selected_barcodes_ids = $menu->barcodes->pluck('id')->all(); @endphp
@endsection @push('script') @endpush