@if ($setting->capture_delivery_staff == 1) @endif @foreach($sales as $sale) @php $itemCount = count($sale->items); @endphp @foreach($sale->items as $index => $items) @if($index == 0) @if ($setting->capture_delivery_staff == 1) @endif @endif @endforeach @endforeach
SALES REPORT
TOTAL PAID DISCOUNT BALANCE CUSTOMER USERDELIVERED BYDATE RECEIPT PRODUCT QTY PRICE
{{ number_format($sale->total ?? 0) }} {{ number_format($sale->paid ?? 0) }} {{ number_format($sale->discount ?? 0) }} {{ number_format($sale->total-($sale->paid+$sale->discount) ?? 0) }} {{ $sale->customer->name ?? '' }} {{ $sale->user->name ?? '' }}{{ $sale->staff->name ?? '' }}{{ $sale->sale_date ?? '----' }} {{ $sale->receipt ?? '----' }}{{ $items->product->product_name }} {{ $items->quantity }} {{ number_format($items->selling_price) }}
Total Amount: {{ number_format($total + $discount) }} Total Paid: {{ number_format($paid) }} Total Discount: {{ number_format($discount) }} Total Balance: {{ number_format($total - $paid) }}