@extends('layouts.app') @section('title', 'Staff Performance Report') @section('page-title', 'Staff Performance Report') @section('content') {{-- Date Range Filter --}}
No active staff found.
| Staff Member | Active Leads | Leads Won | Leads Lost | Site Visits | Clients Assigned |
|---|---|---|---|---|---|
|
{{ $user->name }}
{{ ucfirst($user->role) }}
|
{{ $row['active_leads'] }} | @if($row['leads_won'] > 0) {{ $row['leads_won'] }} @else 0 @endif | @if($row['leads_lost'] > 0) {{ $row['leads_lost'] }} @else 0 @endif | {{ $row['site_visits'] }} | {{ $row['clients_assigned'] }} |
| Total | {{ $rows->sum('active_leads') }} | {{ $rows->sum('leads_won') }} | {{ $rows->sum('leads_lost') }} | {{ $rows->sum('site_visits') }} | {{ $rows->sum('clients_assigned') }} |