@php $formatAmount = static function ( mixed $value, bool $blankZero = false ): string { $amount = round((float) $value, 2); if ($blankZero && abs($amount) < 0.00001) { return ''; } if (abs($amount - round($amount)) < 0.00001) { return number_format($amount, 0); } return number_format($amount, 2); }; @endphp
OUTDOOR DAILY SALES REPORT
{{ $report['month_label'] }} Salesman {{ $report['salesman']['name'] }} Area : {{ $report['area'] }}
@foreach($report['rows'] as $row) @if($row['type'] === 'off') @elseif($row['type'] === 'week_total') @else @endif @endforeach
Date WIWU Sales Sales Return Cash Collection Bank Transfer Cheque Total Collection
{{ $row['label'] }}
{{ $row['label'] }} {{ $formatAmount($row['wiwu_sales']) }} {{ $formatAmount($row['sales_return']) }} {{ $formatAmount($row['cash_collection']) }} {{ $formatAmount($row['bank_transfer']) }} {{ $formatAmount($row['cheque']) }} {{ $formatAmount($row['total_collection']) }}
{{ $row['date_label'] }} {{ $formatAmount($row['wiwu_sales'], true) }} {{ $formatAmount($row['sales_return'], true) }} {{ $formatAmount($row['cash_collection'], true) }} {{ $formatAmount($row['bank_transfer'], true) }} {{ $formatAmount($row['cheque'], true) }} {{ $formatAmount($row['total_collection']) }}
GRAND TOTAL {{ $formatAmount($report['totals']['wiwu_sales']) }} {{ $formatAmount($report['totals']['sales_return']) }} {{ $formatAmount($report['totals']['cash_collection']) }} {{ $formatAmount($report['totals']['bank_transfer']) }} {{ $formatAmount($report['totals']['cheque']) }} {{ $formatAmount($report['totals']['total_collection']) }}