{{-- resources/views/filament/pages/profit-report.blade.php --}}
| {{ __('profit_report.start') }} | {{ __('profit_report.end') }} | {{ __('profit_report.period_profit') }} | {{ __('profit_report.shares_by_partner') }} |
|---|---|---|---|
| {{ $chunk['start'] }} | {{ $chunk['end'] }} | {{ number_format($chunk['profit'], 2) }} |
@foreach ($chunk['shares'] ?? [] as $pid => $val)
{{ $partnersNames[$pid] ?? '#' . $pid }}
{{ number_format($val, 2) }}
@endforeach
|
| {{ __('profit_report.no_records') }} | |||
| {{ __('profit_report.date') }} | {{ __('profit_report.customer') }} | {{ __('profit_report.product') }} | {{ __('profit_report.brand') }} | {{ __('profit_report.category') }} | {{ __('profit_report.buy_price') }} | {{ __('profit_report.installment_price') }} | {{ __('profit_report.profit') }} |
|---|---|---|---|---|---|---|---|
| {{ \Illuminate\Support\Carbon::parse($row['contract_date'])->toDateString() }} | {{ $row['customer'] }} | {{ $row['device'] }} | {{ $row['brand'] }} | {{ $row['category'] }} | {{ number_format($row['buy_price'], 2) }} | {{ number_format($row['installment_price'], 2) }} | {{ number_format($row['profit'], 2) }} |
| {{ __('profit_report.totals') }} | {{ number_format($total_buy, 2) }} | {{ number_format($total_installment, 2) }} | {{ number_format($total_profit, 2) }} | ||||
| {{ __('profit_report.no_records') }} | |||||||