Pipeline Health

Marketing funnel and deal status per team

{{-- Filters --}}
@php $teams = $this->getComputedData(); @endphp @if(empty($teams))
No data available.
@else
@foreach($teams as $t)
{{-- Team Header --}}

{{ $t['team']->name }}

{{ date('F', mktime(0,0,0,$month,1)) }} {{ $year }}

@php $winBg = $t['win_rate'] >= 50 ? 'bg-success-100 text-success-700 dark:bg-success-900 dark:text-success-300' : ($t['win_rate'] >= 25 ? 'bg-warning-100 text-warning-700 dark:bg-warning-900 dark:text-warning-300' : 'bg-danger-100 text-danger-700 dark:bg-danger-900 dark:text-danger-300'); $convBg = $t['conversion_rate'] >= 20 ? 'bg-success-100 text-success-700 dark:bg-success-900 dark:text-success-300' : ($t['conversion_rate'] >= 10 ? 'bg-warning-100 text-warning-700 dark:bg-warning-900 dark:text-warning-300' : 'bg-danger-100 text-danger-700 dark:bg-danger-900 dark:text-danger-300'); @endphp Conv. Rate: {{ $t['conversion_rate'] }}% Win Rate: {{ $t['win_rate'] }}%
{{-- Funnel Section --}}

Deal Funnel

{{-- Proposals --}}

Proposals Sent

{{ $t['total_proposals'] }}

@if($t['total_proposals'] > 0) {{ $t['conversion_rate'] }}% converted @endif
{{-- Leads Generated --}}

Leads Generated

{{ $t['converted_leads'] + $t['lead_count'] }}

{{ $t['converted_leads'] }} converted · {{ $t['lead_count'] }} direct

@if(($t['converted_leads'] + $t['lead_count']) > 0) {{ $t['win_rate'] }}% win rate @endif
{{-- Deal Outcomes --}}

Won

{{ $t['won'] }}

Pending

{{ $t['pending'] }}

Lost

{{ $t['lost'] }}

{{-- Platform Reach Section --}}

Platform Reach

@if(!$t['impressions'] && !$t['clicks'] && !$t['connects'] && !$t['profile_views'])

No marketing report data for this period.

@else
@php $metrics = [ ['label' => 'Impressions', 'value' => number_format($t['impressions']), 'icon' => 'heroicon-o-eye'], ['label' => 'Clicks', 'value' => number_format($t['clicks']), 'icon' => 'heroicon-o-cursor-arrow-rays'], ['label' => 'Connects', 'value' => number_format($t['connects']), 'icon' => 'heroicon-o-link'], ['label' => 'Profile Views', 'value' => number_format($t['profile_views']), 'icon' => 'heroicon-o-user'], ]; @endphp @foreach($metrics as $metric)
{{ $metric['label'] }}
{{ $metric['value'] }}
@endforeach
CTR
@php $ctrColor = $t['ctr'] >= 3 ? 'text-success-600 dark:text-success-400' : ($t['ctr'] >= 1 ? 'text-warning-600 dark:text-warning-400' : 'text-danger-600 dark:text-danger-400'); @endphp {{ $t['ctr'] }}%
@endif
@endforeach
@endif