@foreach($sales as $sale) @php $itemCount = count($sale->items); @endphp @foreach($sale->items as $index => $items) @if($index == 0) @endif @endforeach @endforeach
SALES REPORT BY CURRENCY
CURRENCY TOTAL TOTAL IN DEFAULT CURRENCY PAID DISCOUNT BALANCE USER DATE RECEIPT PRODUCTS QUANTITY PRICE
{{ $sale->countrycurrency->currency_code??$sale->business->currency_code }} {{ $sale->total ?? 0 }} {{ $sale->total*$sale->conversion_rate ?? 0 }} {{ $sale->paid ?? 0 }} {{ $sale->discount ?? 0 }} {{ $sale->total-($sale->paid+$sale->discount) ?? 0 }} {{ $sale->user->name ?? 0 }} {{ $sale->sale_date ?? '----' }} {{ $sale->receipt ?? '----' }}{{$items->product->product_name}} {{$items->quantity}}{{$items->punit->unit->symbol}} {{$items->selling_price}}
Total Amount: {{ number_format($total) }} Total Amount in Default Currency: {{ number_format($default_total) }} Total Paid: {{ number_format($paid) }} Total Discount: {{ number_format($discount) }} Total Balance: {{ number_format($total-($paid+$discount)) }}