{{ __('Admin Dashboard') }}

{{ now()->format('l, F j, Y') }}
{{-- Flash Messages --}} @if (session('success'))

{{ session('success') }}

@endif @if (session('error'))

{{ session('error') }}

@endif {{-- ============================================================ --}} {{-- Stats Cards Grid --}} {{-- ============================================================ --}}
{{-- Total Projects --}}

Total Projects

{{ $stats['total_projects'] ?? 0 }}

{{-- Active Projects --}}

Active Projects

{{ $stats['active_projects'] ?? 0 }}

{{-- Pending Projects --}}

Pending Projects

{{ $stats['pending_projects'] ?? 0 }}

{{-- Total Revenue --}}

Total Revenue

Rs{{ number_format($stats['total_revenue'] ?? 0, 2) }}

{{-- Total Expenses --}}

Total Expenses

Rs{{ number_format($stats['total_expenses'] ?? 0, 2) }}

{{-- Total Leads --}}

Total Leads

{{ $stats['total_leads'] ?? 0 }}

{{-- Contacted Leads --}}

Contacted Leads

{{ $stats['contacted_leads'] ?? 0 }}

{{-- Total Domains --}}

Total Domains

{{ $stats['total_domains'] ?? 0 }}

{{-- Expiring Domains --}}

Expiring Domains

{{ $stats['expiring_domains'] ?? 0 }}

{{-- ============================================================ --}} {{-- Quick Navigation --}} {{-- ============================================================ --}} {{-- ============================================================ --}} {{-- Pending Requirements Banner --}} {{-- ============================================================ --}} @if(($pendingRequirements ?? 0) > 0)

You have {{ $pendingRequirements }} pending requirement{{ $pendingRequirements > 1 ? 's' : '' }} awaiting review.

@endif {{-- ============================================================ --}} {{-- Two-Column: Recent Projects + Recent Leads --}} {{-- ============================================================ --}}
{{-- Recent Projects --}}

Recent Projects

View All →
@if($recentProjects->count() > 0) @foreach($recentProjects as $project) @endforeach
Project Client Tech Lead Status
{{ $project->name }} {{ $project->client->name ?? '—' }} {{ $project->techLead->name ?? '—' }} @php $statusColors = [ 'active' => 'bg-green-100 text-green-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'completed' => 'bg-blue-100 text-blue-800', 'on_hold' => 'bg-gray-100 text-gray-800', ]; $color = $statusColors[$project->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst(str_replace('_', ' ', $project->status)) }}
@else

No recent projects found.

@endif
{{-- Recent Leads --}}

Recent Leads

View All →
@if($recentLeads->count() > 0) @foreach($recentLeads as $lead) @endforeach
Name Salesperson Status Priority
{{ $lead->name }}
{{ $lead->email }}
{{ $lead->salesPerson->name ?? '—' }} @if($lead->status === 'contacted') Contacted @else Not Contacted @endif @php $priorityColors = [ 'urgent' => 'bg-red-100 text-red-800', 'high' => 'bg-orange-100 text-orange-800', 'medium' => 'bg-blue-100 text-blue-800', 'low' => 'bg-gray-100 text-gray-800', ]; $pColor = $priorityColors[$lead->priority] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst($lead->priority) }}
@else

No recent leads found.

@endif