Terminal Sales Invoice {{ $business_name }}
{{-- --}}
Invoice: {{ $order->invoice_no }} {{ date("d M Y", strtotime($order->invoice_date)) }}, {{ $order->order_time }}
Bill to: General CustomerTRN: , 12346756567676


@php $sl =0; $total = 0; $tax_amt = 0; $discount_amt = 0; $total_quantitny=0; @endphp @foreach ($order_items as $order_item) @php $total+= $order_item->quantity * $order_item->price; $tax_amt+= $order_item->tax_amount; $discount_amt+=$order_item->discount; $total_quantitny+=$order_item->quantity @endphp @endforeach
Item Description Unit Price Quantity Total
{{ ($order_item->product_name) ? $order_item->product_name : '' }} {{number_format($order_item->price ,$decimal_point)}} {{ $order_item->quantity }} {{ number_format($order_item->quantity * $order_item->price,$decimal_point) }}
    {{ $total_quantitny }} {{ $total }}


    Gross Amount {{ number_format($total,$decimal_point) }}
    Discount {{ number_format($order['discount_amount'],$decimal_point) }}
    Tax {{ number_format($order['tax_amount'],$decimal_point) }}
       
Total Amount     {{ number_format(($total - $order['discount_amount']) + $order['tax_amount'],$decimal_point) }}
@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) @endif @if($other_amount > 0) @endif @endif
    Cash {{ number_format($cash_amount,$decimal_point) }}
    {{ $other_name }} {{ number_format($other_amount,$decimal_point) }}