{{ __('project_short_report.title') }}

@foreach ([__('project_short_report.pcp'), __('common.project'), __('common.type'), __('common.status'), __('project_short_report.client'), __('project_short_report.cash_paid'), __('project_short_report.pending'), __('project_short_report.duration'), __('project_short_report.actual_cost'), __('project_short_report.profit')] as $h) @endforeach @forelse ($rows as $p) @php $profit = (float) ($p['profit'] ?? 0); $fmt = fn ($v) => number_format((float) ($v ?? 0), 2, '.', ','); @endphp @empty @endforelse
{{ $h }}
{{ $p['pcp_number'] ?: ($p['project_code'] ?: '-') }} {{ $p['project_name'] ?: '-' }} {{ $p['project_type'] ?: '-' }} {{ $p['status'] ?: '-' }} {{ $p['client_name'] ?: '-' }} {{ $fmt($p['cash_paid']) }} {{ $fmt($p['pending_amount']) }} {{ $p['duration_days'] !== null ? $p['duration_days'].'d' : '-' }} {{ $fmt($p['actual_cost']) }} {{ $fmt($profit) }}
{{ __('common.no_records') }}