@extends('layouts.master_backend') @section('content') @php $exp = explode('/', Request::server('HTTP_REFERER')); $reservationId = Request::route('reservation_id'); if($exp[count($exp)-1]=='dashboard'){ $reservationId = 0; } $i=1; $settings = getSettings(); $gstPercFood = $settings['food_gst']; $cgstPercFood = $settings['food_cgst']; @endphp
{{ Form::open(array('url'=>route('save-food-order'),'id'=>"food-order-form", 'class'=>"form-horizontal form-label-left",'files'=>true)) }} {{Form::hidden('gst_perc',$gstPercFood)}} {{Form::hidden('cgst_perc',$cgstPercFood)}} {{Form::hidden('order_id',$order_row->id)}} {{Form::hidden('table_num',$order_row->table_num)}} @if($reservationId==null)

{{lang_trans('heading_customer_info')}}

{{Form::text('name',$order_row->name,['class'=>"form-control col-md-6 col-xs-12", "id"=>"name", "placeholder"=>"Enter Fullname"])}}
{{Form::email('email',$order_row->email,['class'=>"form-control col-md-6 col-xs-12", "id"=>"email", "placeholder"=>"Enter Email Address"])}}
{{Form::text('mobile',$order_row->mobile,['class'=>"form-control col-md-6 col-xs-12", "id"=>"mobile", "placeholder"=>"Enter Mobile Number"])}}
{{Form::textarea('address',$order_row->address,['class'=>"form-control col-md-6 col-xs-12", "id"=>"address", "placeholder"=>"Enter Address","rows"=>1])}}
{{Form::select('table_num',getTableNums($order_row->id),$order_row->table_num,['class'=>"form-control col-md-6 col-xs-12", "id"=>"table_num", "placeholder"=>"--Select--", "required"=>true,'readonly'=>true,'disabled'=>true])}}
{{Form::text('num_of_person',$order_row->num_of_person,['class'=>"form-control col-md-6 col-xs-12", "id"=>"table_num", "placeholder"=>"Enter No. of Persons"])}}
{{Form::text('waiter_name',$order_row->waiter_name,['class'=>"form-control col-md-6 col-xs-12", "id"=>"table_num", "placeholder"=>"Enter Waiter Name"])}}
@endif

{{lang_trans('heading_food_item')}}




{{ Form::hidden('reservation_id',$reservationId) }} @foreach($categories_list as $k=>$val) @foreach($val->food_items as $key=>$value) @endforeach @endforeach
{{$val->name}}
{{$i++}}. {{$value->name}} {{getCurrencySymbol()}} {{$value->price}}
{{Form::number('item_qty['.$value->id.']',0,['data-price'=>$value->price,'class'=>"form-control input-number text-center", "placeholder"=>lang_trans('ph_qty'),"min"=>0, 'max'=>100, 'readonly'=>true,'style'=>'height: 33px;'])}}
{{Form::hidden('items['.$value->id.']',$val->id.'~'.$val->name.'~'.$value->name.'~'.$value->price,['data-price'=>$value->price,'class'=>"form-control col-md-6 col-xs-12 item_qty","min"=>0])}}
{{lang_trans('txt_inv_applicable')}} {{ Form::checkbox('food_invoice_apply',null,false ,['id'=>'apply_invoice']) }}
{{lang_trans('txt_gst_apply')}} {{ Form::checkbox('food_gst_apply',0,false ,['id'=>'apply_gst']) }}
{{lang_trans('txt_subtotal')}} {{Form::hidden('subtotal_amount',null,['id'=>'subtotal_amount'])}} {{getCurrencySymbol()}} 0.00
{{lang_trans('txt_sgst')}}SGST ({{$gstPercFood}}%) {{Form::hidden('gst_amount',null,['id'=>'gst_amount'])}} {{getCurrencySymbol()}} 0.00
{{lang_trans('txt_cgst')}} ({{$cgstPercFood}}%) {{Form::hidden('cgst_amount',null,['id'=>'cgst_amount'])}} {{getCurrencySymbol()}} 0.00
{{lang_trans('txt_discount')}} {{Form::number('discount_amount',null,['class'=>"form-control col-md-7 col-xs-12", "id"=>"discount_amount", "placeholder"=>lang_trans('ph_any_discount'),"min"=>0])}}
{{lang_trans('txt_total_amount')}} {{Form::hidden('final_amount',null,['id'=>'final_amount'])}} {{getCurrencySymbol()}} 0.00
{{ Form::close() }}
{{-- require set var in js var --}} @endsection