@php($productCount = 1) @php($productStatus = 0) @if ($customerProducts) @if ($customerProducts->status) @php($productStatus = 1) @endif @endif @if ($productStatus == 0)
No product found
@elseif($productStatus == 1) {{-- {{dd($customerProducts)}} --}}
{{-- --}} @foreach ($customerProducts->products as $customerProduct) {{-- --}} @endforeach
# Type Brand ID ProductQtyBill No Bill Date
{{ $customerProduct->item_type_name }} {{ $customerProduct->brand_name }} {{ $customerProduct->inv_code }} {{ $customerProduct->item_name }}
({{ $customerProduct->ser_no }})
{{ $customerProduct->qty }} @if(isset($customerProduct->doc_no_enc) && $customerProduct->doc_no_enc)   {{ $customerProduct->bill_no }} @else   {{ $customerProduct->bill_no }} @endif {{ $customerProduct->bill_date }}
@endif {{--
--}}