SALES INVOICE {{ $order->invoice_no }}

 
 
Bill To
Invoice Type:
@foreach ($invoice_types as $key => $value) @if($key == $order->invoice_type) {{ $value }} @endif @endforeach
Invoice Date:
{{ date("d M Y", strtotime($order->invoice_date)) }}
Invoice Number:
{{ $order->invoice_no }}
@if(!empty($order->table_area_name))
Table Name:
{{$order->table_area_name}}
@endif @if(!empty($order->pax_count))
Pax Count:
{{$order->pax_count}}
@endif
General Customer
@php $sl =0; $total = 0; $tax_amt = 0; $discount_amt = 0; @endphp @foreach ($order_items as $order_item) @php $sl++; $total+= $order_item->quantity * $order_item->price; $tax_amt+= $order_item->tax_amount; $discount_amt+=$order_item->discount; @endphp @endforeach
# Item & Description Qty Rate Amount
{{ $sl }} {{ ($order_item->product_name) ? $order_item->product_name : '' }} @if(count($order_item->getProductModifiers)>0) ( @php $modifiers = ''; @endphp @foreach($order_item->getProductModifiers as $product_modifier) @php $modifiers.= $product_modifier['modifier_name'].','; @endphp @endforeach {{ rtrim($modifiers, ',') }} ) @endif {{ $order_item->quantity }} {{number_format($order_item->price ,$decimal_point)}} {{ number_format($order_item->quantity * $order_item->price,$decimal_point) }}
Gross Amount {{ number_format($total,$decimal_point) }}
Discount Amount {{ number_format($order['discount_amount'],$decimal_point) }}
Tax Amount {{ number_format($order['tax_amount'],$decimal_point) }}
 
Payment Mode: @if(!empty($order->paymentMethod)) @php $other_name = "Other"; $cash_amount = $other_amount = 0; @endphp @foreach($order->paymentMethod as $payment_method) @if($payment_method->paymentMethodName->title == "Cash" || $payment_method->paymentMethodName->title == "cash") @php $cash_amount+= $payment_method->amount; @endphp @else @php $other_name = $payment_method->paymentMethodName->title; $other_amount+= $payment_method->amount; @endphp @endif @endforeach @if($cash_amount > 0) Cash: {{ number_format($cash_amount,$decimal_point) }} @endif @if($other_amount > 0) {{ $other_name }}: {{ number_format($other_amount,$decimal_point) }} @endif @else Cash: 0.0000 @endif
{{ number_format(($total - $order['discount_amount']) + $order['tax_amount'],$decimal_point) }}
There are errors on page
{{-- --}}