@extends('layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content') {{-- Period --}}
Team Overview 📊

Monitoring performance across your sales team

@foreach(['today'=>'Today','week'=>'This Week','month'=>'This Month','year'=>'This Year'] as $k => $lbl) {{ $lbl }} @endforeach
{{-- Stats --}}
{{ $totalLeads }}
Team Leads
{{ $soldLeads }}
Deals Closed
{{ $totalLeads > 0 ? round(($soldLeads/$totalLeads)*100,1) : 0 }}%
Conversion Rate
{{ $repPerformance->count() }}
Sales Reps
Team Lead Trend
Pipeline
@foreach($pipeline as $p) @php $opt = $statuses->firstWhere('value', $p->status); @endphp
{{ $opt?->label ?? $p->status }} {{ $p->total }}
@endforeach
{{-- Rep Performance --}}
Rep Performance Full Report
@forelse($repPerformance as $rep) @empty @endforelse
RepLeadsSoldConv %
{{ $rep->name }}
{{ $rep->leads_count }} {{ $rep->sold_count }} @php $cr = $rep->leads_count > 0 ? round(($rep->sold_count/$rep->leads_count)*100,1) : 0; @endphp
{{ $cr }}%
No reps assigned.
{{-- Team Activity --}}
Team Activity All
@forelse($recentActivity as $log)
{{ $log->user_name }} {{ $log->action_label }}
{{ $log->created_at->diffForHumans() }}
@empty

No activity yet.

@endforelse
@endsection @push('scripts') @endpush