@extends('layouts.master_backend') @section('content') @php $i=1; $reservationId = Request::route('reservation_id'); $settings = getSettings(); $gstPercFood = $settings['food_gst']; $cgstPercFood = $settings['food_cgst']; $itemsQty = []; if($order_row->orders_items){ foreach($order_row->orders_items as $k=>$val){ $jsonData = json_decode($val->json_data); $itemId = $jsonData->item_id; if(isset($itemsQty[$itemId])){ $itemsQty[$itemId] = $itemsQty[$itemId]+$val->item_qty; } else { $itemsQty[$itemId] = $val->item_qty; } } } @endphp
{{ 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"=>lang_trans('ph_any_discount'),"min"=>0])}} |
{{lang_trans('txt_total_amount')}} {{Form::hidden('final_amount',null,['id'=>'final_amount'])}} | {{getCurrencySymbol()}} 0.00 |
{{lang_trans('txt_payment_mode')}} | {{Form::select('payment_mode',config('constants.PAYMENT_MODES'),null,['class'=>"form-control col-md-6 col-xs-12", "placeholder"=>lang_trans('ph_select')])}} |
{{$val->name}} | |||
---|---|---|---|
{{$i++}}. | {{$value->name}} | {{getCurrencySymbol()}} {{$value->price}} |
{{Form::number('item_qty['.$value->id.']',$iQty,['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", "placeholder"=>lang_trans('ph_qty'),"min"=>0])}}
|