@push('header') @endpush
{{-- Date --}}
{{-- Supplier --}}
{{-- Designation --}}
{{-- Salesman --}}

Moon Traders
Custom Settlement Report
Date: {{ \Carbon\Carbon::parse($date)->format('d-M-Y') }}

@foreach($settlements as $item) @endforeach
Sr.# Salesman Name Sale %age Scheme Total Discount Expiry Liquid Expiry Powder Today Cash Total Credit
{{ $loop->iteration }} {{ $item->salesman_name }} {{ $item->sale > 0 ? number_format($item->sale, 2) : '-' }} {{ $item->percentage_expense > 0 ? number_format($item->percentage_expense, 2) : '-' }} {{ $item->scheme_discount > 0 ? number_format($item->scheme_discount, 2) : '-' }} {{ $item->total_discount > 0 ? number_format($item->total_discount, 2) : '-' }} {{ $item->amr_liquid > 0 ? number_format($item->amr_liquid, 2) : '-' }} {{ $item->amr_powder > 0 ? number_format($item->amr_powder, 2) : '-' }} {{ $item->today_cash_amount > 0 ? number_format($item->today_cash_amount, 2) : '-' }} {{ $item->total_credit > 0 ? number_format($item->total_credit, 2) : '-' }}
Total: {{ number_format($totals['sale'], 2) }} {{ number_format($totals['percentage_expense'], 2) }} {{ number_format($totals['scheme_discount'], 2) }} {{ number_format($totals['total_discount'], 2) }} {{ number_format($totals['amr_liquid'], 2) }} {{ number_format($totals['amr_powder'], 2) }} {{ number_format($totals['today_cash_amount'], 2) }} {{ number_format($totals['total_credit'], 2) }}