@csrf
Bill & Invoice

Content for Bill & Invoice.

@if( isset($customerBills) ) @if(count($customerBills->bills) == 0) @endif @endif @php($billCount = 1) @php($billStatus = 0) @php($totalAllBills = 0) @if($customerBills) @if($customerBills->status OR isset($customerBill->bills)) @php($billStatus = 1) @endif @endif @if($billStatus == 0)
No Bill found
@elseif($billStatus == 1) @foreach($customerBills->bills as $customerBill)
{{-- Change here --}} {{-- --}} @if($customerBill->doc_no_enc) @else @endif {{-- Change here --}}
Date {{$customerBill->bill_date}} Bill No {{$customerBill->bill_no}} Total {{ number_format($customerBill->grand_total, 0)}} Location {{$customerBill->location}} Operator {{$customerBill->operator}}View invoice
@if(isset($customerBill->items)) @foreach($customerBill->items as $item) @endforeach @else @endif
Type Brand ID Product Serial Qty Unit Price Total Price
{{$item->item_type_name}} {{$item->brand_name}} {{$item->inv_code}} {{$item->item_name}} {{$item->ser_no}} {{$item->qty}} {{number_format($item->unit_price, 0)}} {{number_format($item->total_price, 0)}}
No bills found
@endforeach {{--
Grand Total Tk {{ number_format($totalAllBills, 0) }}
--}}
Grand Total Tk 0
@endif