@foreach($creditors as $creditor) @php $itemCount = count($creditor->items); @endphp @foreach($creditor->items as $index => $items) @if($index == 0) @endif @endforeach @endforeach
CREDITORS REPORT
SUPPLIER TOTAL PAID DISCOUNT BALANCE DATE PRODUCT NAME QUANTITY PRICE
{{ $creditor->supplier->name ?? 0 }} {{ number_format($creditor->total ?? 0) }} {{ number_format($creditor->paid ?? 0) }} {{ number_format($creditor->discount ?? 0) }} {{ number_format($creditor->total-$creditor->paid ?? 0) }} {{ $creditor->date ?? '----' }}{{$items->product->product_name}} {{$items->quantity}}{{$items->punit->unit->symbol}} {{$items->buying_price}}
Total Amount: {{ number_format($total) }} Total Paid: {{ number_format($paid) }} Total Discount: {{ number_format($discount) }} Total Balance: {{ number_format($total-($paid)) }}