Lead Performance Dashboard @php $heatClass = function (int $value, int $max): string { if ($value === 0 || $max === 0) { return 'bg-light'; } $ratio = $value / $max; return match (true) { $ratio <= .25 => 'bg-warning-subtle', $ratio <= .5 => 'bg-warning', $ratio <= .75 => 'bg-danger-subtle', default => 'bg-danger text-white', }; }; @endphp

Lead Performance Dashboard

Enquiry volume, engagement and conversion performance.

{{ $dashboard['periodLabel'] }}
@if($filterMode === 'month')
@else
@endif
Updating dashboard...
@error('month')
{{ $message }}
@enderror @error('startDate')
{{ $message }}
@enderror @error('endDate')
{{ $message }}
@enderror
New Leads Received
{{ number_format($dashboard['newLeads']) }}
Leads received in the selected period
Lead to Contact Rate
{{ $dashboard['contactRate'] === null ? '-' : number_format($dashboard['contactRate'], 1) . '%' }}
Successful two-way contact
Lead Conversion Rate
{{ $dashboard['conversionRate'] === null ? '-' : number_format($dashboard['conversionRate'], 1) . '%' }}
Signed contracts received
Speed to Conversion
{{ $dashboard['medianConversionLabel'] }}
Median lead-to-signature time
Lead Volume Over Time

Daily volume of new leads received.

Leads by Time of Day

{{ $dashboard['heatmapWeekLabel'] }} {{ $dashboard['heatmapWeekDates'] }}

@foreach(['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] as $dayIndex => $day) @endforeach @foreach($dashboard['heatmap'] as $hour => $days) @foreach($days as $dayIndex => $value) @endforeach @endforeach
Time {{ $day }} @if($dashboard['heatmapDates'][$dayIndex]) {{ $dashboard['heatmapDates'][$dayIndex] }} @endif
{{ str_pad($hour, 2, '0', STR_PAD_LEFT) }}:00 {{ $value ?: '' }}
Lead Status Breakdown

Current outcome of leads received in the selected period.

@foreach($dashboard['statuses'] as $status) @endforeach
Status Leads Percentage
{{ $status['label'] }} {{ number_format($status['count']) }} {{ number_format($status['percentage'], 1) }}%
Total {{ number_format($dashboard['statusTotal']) }} {{ $dashboard['statusTotal'] > 0 ? '100%' : '0%' }}
@script @endscript