@extends('layouts.master_backend') @section('content') @php $reservationId = Request::route('reservation_id'); $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)}} @if($reservationId==null)

{{lang_trans('heading_customer_info')}}

{{Form::text('name',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"name", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_fullname')])}}
{{Form::email('email',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"email", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_email')])}}
{{Form::text('mobile',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"mobile", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_mobile_num')])}}
{{Form::textarea('address',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"address", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_address'),"rows"=>1])}}
{{Form::select('table_num',getTableNums(),null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"table_num", "placeholder"=>lang_trans('ph_select'), "required"=>true])}}
{{Form::text('num_of_person',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"num_of_person", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_num_of_persons')])}}
{{Form::text('waiter_name',null,['class'=>"form-control col-md-6 col-xs-12", "id"=>"waiter_name", "placeholder"=>lang_trans('ph_enter').lang_trans('txt_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') }}
{{ lang_trans('txt_gst_apply') }}
{{lang_trans('txt_subtotal')}} {{Form::hidden('subtotal_amount',null,['id'=>'subtotal_amount'])}} {{getCurrencySymbol()}} 0.00
{{lang_trans('txt_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"=>"Enter 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