@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)
@elseif($billStatus == 1)
@foreach($customerBills->bills as $customerBill)
| Date {{$customerBill->bill_date}} |
Bill No {{$customerBill->bill_no}} |
Total {{ number_format($customerBill->grand_total, 0)}} |
Location {{$customerBill->location}} |
Operator {{$customerBill->operator}} |
{{-- Change here --}}
{{-- View invoice | --}}
@if($customerBill->doc_no_enc)
View Bill/ Invoice
|
@else
View Bill/ Invoice
|
@endif
{{-- Change here --}}
| Type |
Brand |
ID |
Product |
Serial |
Qty |
Unit Price |
Total Price |
@if(isset($customerBill->items))
@foreach($customerBill->items as $item)
| {{$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)}} |
@endforeach
@else
| No bills found |
@endif
@endforeach
{{--
Grand Total Tk {{ number_format($totalAllBills, 0) }}
--}}
Grand Total Tk 0
@endif