@if(isset($type))
{{isset($business_details) && isset($business_details->address) ? $business_details->address :'NO-603, HOSPITAL ROAD,'}} {{isset($business_details) && isset($business_details->city) ? $business_details->city :'JAFFNA'}}
{{isset($business_details) && isset($business_details->mobile) ? $business_details->mobile :' '}}, {{isset($business_details) && isset($business_details->phone) ? $business_details->phone :' '}}
{{isset($business_details) && isset($business_details->email) ? $business_details->email :'admin@gmail.com'}}
| IN No.: {{$transaction->invoice_no ?? ''}} | {{ date('Y-m-d H:i:s A')}} |
| OD No.: {{$transaction->lines_of_sell->first() ? $transaction->lines_of_sell->first()->order_no : ''}} | OT: {{ $order_type }} |
| Customer: {{ $transaction->customer->first_name ?? ''}} | |
| Waiter: {{ $transaction->staff->first_name ?? ''}} | |
| {{$line->product->name ?? ''}}
{{$line->quantity ?? 0}} x {{$line->unit_price ?? '0.00'}}
@if($line->discount_amount > 0)
Discount: {{number_format($line->discount_amount, 2)}} @endif |
{{$line->sub_total ?? '0.00'}} |
| Sub Total: | {{number_format($transaction->lines_of_sell->sum('sub_total'), 2)}} |
| Sevice Charge : | {{$transaction->service_charge}} |
| Tax : | {{$tax > 0 ? number_format($tax, 2) : '0.00'}} |
| Discount : | {{$transaction->discount_amount > 0 ? number_format($transaction->discount_amount, 2) : '0.00'}} |
| Total: | {{$transaction->final_total > 0 ? number_format($transaction->final_total, 2) : '0.00'}} |
| Total Items: | {{$transaction->lines_of_sell->sum('quantity')}} |
| {{$payment->method}}: | {{$payment->amount > 0 ? number_format($payment->amount, 2) : '0.00'}} |
| Balance: | {{ $due < 0 ? number_format(str_replace('-', '', $due), 2) : '0.00'}} |
Thank you come again
| IN No.: {{$transaction->invoice_no ?? ''}} | {{ date('Y-m-d H:i:s A')}} | |
| OD No.: {{$transaction->lines_of_sell->first() ? $transaction->lines_of_sell->first()->order_no : ''}} | Customer: {{ $transaction->customer->first_name ?? ''}} | |
| Waiter: {{ $transaction->staff->first_name ?? ''}} | ||
| Item | Qty |
| {{$line->product->name ?? ''}} | {{$product['quantity']}} |
Total Items:
{{$transaction->lines_of_sell->where('order_no', $orderNo)->sum('quantity')}}