@foreach([
['Pipeline Summary', 'Complete jobs list with stage, status, and value', 'fa-chart-bar', 'text-blue-400', ['export'=>'csv']],
['Revenue by Month', 'Monthly revenue totals for the selected period', 'fa-coins', 'text-green-400', ['export'=>'csv','group_by'=>'stage']],
['Lead Source Report', 'Lead counts and conversion by source channel', 'fa-funnel-dollar','text-purple-400', ['export'=>'csv','group_by'=>'source']],
['Project Type Report', 'Job breakdown by kitchen, laundry, wardrobe etc.', 'fa-layer-group', 'text-amber-400', ['export'=>'csv','group_by'=>'project_type']],
['PM Performance', 'Jobs and revenue per project manager', 'fa-user-tie', 'text-pink-400', ['export'=>'csv','group_by'=>'status']],
['Consultant Activity', 'Lead and job counts per sales consultant', 'fa-handshake', 'text-teal-400', ['export'=>'csv','group_by'=>'stage']],
] as [$rptName, $rptDesc, $rptIcon, $rptColor, $rptParams])
@php
$rptUrl = route('reports.index', array_merge(
['from' => $from->format('Y-m-d'), 'to' => $to->format('Y-m-d')],
$stageFilter ? ['stage_filter' => $stageFilter] : [],
$pmFilter ? ['pm_filter' => $pmFilter] : [],
$rptParams
));
@endphp
@endforeach