@foreach($sales as $sale) @php $itemCount = count($sale->items); @endphp @foreach($sale->items as $index => $items) @if($index == 0) @endif @endforeach @endforeach
UNTAKEN ORDERS
CUSTOMER TOTAL PAID USER DATE RECEIPT PRODUCTS QUANTITY QUANTITY REMAINING
{{ $sale->customer->name ?? '' }} {{ number_format($sale->total ?? 0) }} {{ number_format($sale->paid ?? 0) }} {{ $sale->user->name ?? 0 }} {{ $sale->sale_date ?? '----' }} {{ $sale->receipt ?? '----' }}{{$items->product->product_name}} {{$items->quantity}} {{$items->punit->unit->symbol}} {{$items->quantity_remaining}} {{$items->punit->unit->symbol}}
Total Amount: {{ number_format($total) }} Total Paid: {{ number_format($paid) }}