@extends('employee.layouts.app') @section('title', 'My Dashboard') @section('page-title', 'My Dashboard') @section('content') @if(($panelUnreadNotificationCount ?? 0) > 0)

You have {{ $panelUnreadNotificationCount }} unread notification{{ $panelUnreadNotificationCount > 1 ? 's' : '' }}

Check lead assignments, blog feedback, and new updates from the team.

View All Notifications
@endif

Hello, {{ auth()->user()->name }}

Here's an overview of your assigned leads and recent updates.

@php $statCards = [ ['Total Assigned', $stats['total'], 'bg-blue-50 text-blue-700 border-blue-100'], ['New', $stats['new'], 'bg-indigo-50 text-indigo-700 border-indigo-100'], ['Contacted', $stats['contacted'], 'bg-yellow-50 text-yellow-700 border-yellow-100'], ['Enrolled', $stats['enrolled'], 'bg-green-50 text-green-700 border-green-100'], ]; @endphp @foreach($statCards as [$label, $val, $classes])

{{ $val }}

{{ $label }}

@endforeach

Recent Leads

View all
@if($recentLeads->isEmpty())
No leads assigned to you yet.
@else @foreach($recentLeads as $lead) @endforeach
Contact Status Action

{{ $lead->name ?: '—' }}

{{ $lead->phone }}

{{ $lead->statusLabel() }} View
@endif

Recent Notifications

Assignments, blog review updates, and admin responses.

View all
@if($recentNotifications->isEmpty())
No notifications yet.
@else
@foreach($recentNotifications as $notification)

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }}

@endforeach
@endif
@endsection