@extends('layouts.app') @section('content') @php $todayTasks = \App\Models\Task::where('due_date', now()->toDateString())->where('status', 'pending')->get(); @endphp @if($todayTasks->count())

Task Reminders

    @foreach($todayTasks as $task)
  • {{ $task->title }} (Priority: {{ ucfirst($task->priority) }}) - Assigned to: {{ $task->user ? $task->user->name : 'Unassigned' }} View
  • @endforeach
@endif @php $todayLeads = \App\Models\Lead::where('next_follow_up_date', now()->toDateString())->get(); @endphp @if($todayLeads->count())

Follow-Up Reminders

    @foreach($todayLeads as $lead)
  • {{ $lead->name }} ({{ $lead->email }}) - Assigned to: {{ $lead->assignedTo ? $lead->assignedTo->name : 'Unassigned' }} View
  • @endforeach
@endif

CRM Dashboard

Welcome to your CRM overview

Total Leads

{{ $totalLeads }}

Converted Leads

{{ $convertedLeads }}

Total Customers

{{ $totalCustomers }}

Open Tasks

{{ $openTasks }}

Total Revenue

${{ number_format($revenue, 2) }}

Leads by Status

Monthly Conversions

Sales Performance by User

@endsection