@php $settings = getSettings(); $totalOrdersAmount = 0; @endphp {{$settings['site_page_title']}}: {{lang_trans('txt_invoice')}}
{{lang_trans('txt_gstin')}}: {{$settings['gst_num']}}
{{lang_trans('txt_ph')}} {{$settings['hotel_phone']}}
({{lang_trans('txt_mob')}}) {{$settings['hotel_mobile']}}
{{$settings['hotel_name']}}
{{$settings['hotel_tagline']}}
{{$settings['hotel_address']}}
{{$settings['hotel_website']}}  |  {{lang_trans('txt_email')}}:-  {{$settings['hotel_email']}}
{{lang_trans('txt_num')}}.: {{$data_row->invoice_num}}

{{lang_trans('txt_dated')}} : {{dateConvert($data_row->invoice_date,'d-m-Y')}}
{{lang_trans('txt_cust_name')}}:
{{$data_row->name}}
{{lang_trans('txt_address')}}:
{{$data_row->address}}
@forelse($data_row->orders_items as $k=>$val) @php $totalOrdersAmount = $totalOrdersAmount + ($val->item_qty*$val->item_price); @endphp @empty @endforelse @php $gstPerc = $cgstPerc = $discount = 0; if($data_row->gst_apply==1){ $gstPerc = $data_row->gst_perc; $cgstPerc = $data_row->cgst_perc; $discount = ($data_row->discount>0) ? $data_row->discount : 0; } $gst = gstCalc($totalOrdersAmount,'food_amount',$gstPerc,$cgstPerc); $foodAmountGst = $gst['gst']; $foodAmountCGst = $gst['cgst']; @endphp @if($foodAmountGst>0) @endif @if($foodAmountCGst>0) @endif @if($discount>0) @endif @php $finalFoodAmount = numberFormat($totalOrdersAmount+$foodAmountGst+$foodAmountCGst-$discount); @endphp
{{lang_trans('txt_sno')}} {{lang_trans('txt_item_details')}} {{lang_trans('txt_date')}} {{lang_trans('txt_item_qty')}} {{lang_trans('txt_item_price')}} ({{getCurrencySymbol()}}) {{lang_trans('txt_amount')}} ({{getCurrencySymbol()}})
{{$k+1}} {{$val->item_name}} {{dateConvert($val->created_at,'d-m-Y')}} {{$val->item_qty}} {{$val->item_price}} {{$val->item_qty*$val->item_price}}
{{lang_trans('txt_no_orders')}}
{{lang_trans('txt_total')}} {{ numberFormat($totalOrdersAmount) }}
{{lang_trans('txt_gst')}} ({{$gstPerc}} %) {{ numberFormat($foodAmountGst) }}
{{lang_trans('txt_cgst')}} ({{$cgstPerc}} %) {{ numberFormat($foodAmountCGst) }}
{{lang_trans('txt_discount')}} {{ numberFormat($discount) }}
{{lang_trans('txt_grand_total')}} {{ numberFormat($finalFoodAmount) }}
{{lang_trans('txt_amount_words')}}:- {{ getIndianCurrency(numberFormat($finalFoodAmount)) }}
{{lang_trans('txt_customer_sign')}}
{{lang_trans('txt_manager_sign')}}