@php $settings = getSettings(); $totalOrdersAmount = 0; @endphp {{$settings['site_page_title']}}: {{lang_trans('txt_invoice')}}

{{lang_trans('txt_gstin')}}
{{$settings['gst_num']}}
{{lang_trans('txt_date')}}
{{ date("d M Y h:i A") }}
{{lang_trans('txt_bill_to')}}
{{ ($type=='room-order') ? $data_row->reservation_data->customer->name : $data_row->order->name }}
{{ ($data_row->table_num>0) ? lang_trans('txt_table_num') : lang_trans('txt_room_num') }}
{{ ($data_row->table_num>0) ? $data_row->table_num : ( ($data_row->reservation_data) ? $data_row->reservation_data->room_num : '') }}

{{lang_trans('txt_orderd_items')}}
@if($data_row->orders_items->count()>0) @foreach($data_row->orders_items as $val) @php $totalOrdersAmount = $totalOrdersAmount + ($val->item_qty * $val->item_price); @endphp @endforeach @endif
{{lang_trans('txt_item_name')}} {{lang_trans('txt_unit')}} {{lang_trans('txt_amount')}}
{{$val->item_name}} {{$val->item_qty}} {{getCurrencySymbol()}} {{numberFormat($val->item_qty * $val->item_price)}}
{{lang_trans('txt_total')}}  {{getCurrencySymbol()}} {{numberFormat($totalOrdersAmount)}}

{{lang_trans('txt_token_num')}} : {{$data_row->id}}

{{lang_trans('btn_go_back')}}