@extends('layouts.admin.master') @section('title', 'Dine-In') @section('content')
Food Items
@if (count($menuCategories) != 0) @foreach ($menuCategories as $menuCategory) @endforeach @endif
@if (count($items) != 0) @foreach ($items as $item) @if ($item['store_qty'] <= 0) @php $disabled = ''; $textColor = 'red'; @endphp @else @php $disabled = ''; $textColor = 'green'; @endphp @endif @endforeach @endif
@if (count($mainCategories) != 0) @foreach ($mainCategories as $mainCategory) @if ($mainCategory['main_category_id'] == 1) @else @endif @endforeach @endif
id }} hidden> {{-- --}}
{{-- + Add Order
--}}
@php $orderTotalAmount = 0; @endphp @if (count($orderDetails) != 0) @for ($i = 0; $i < count($orderDetails); $i++)
@if ($orderDetails[$i]['is_foc'] == 1 || $orderDetails[$i]['is_foc'] == '1') @else @endif
@if ($orderDetails[$i]['is_foc'] == 1 || $orderDetails[$i]['is_foc'] == '1') @else @endif

@php if ( $orderDetails[$i]['is_foc'] != 1 || $orderDetails[$i]['is_foc'] != '1' ) { $orderTotalAmount += $orderDetails[$i]['item_price'] * $orderDetails[$i]['quantity']; } @endphp @endfor @php $orderTotalAmount = number_format($orderTotalAmount); @endphp @endif {{-- @for ($i = 0; $i < 8; $i++)

@endfor --}}

Total
{{ $orderTotalAmount }} MMK
@csrf
@csrf
@endsection