@extends('admin.layouts.app') @section('title', 'Dashboard') @section('breadcrumb') Dashboard @endsection @section('content') {{-- Page Header --}} {{-- Stats Grid --}}
Total Users
{{ $stats['total_users'] ?? 0 }}
+3 this week
States Covered
{{ $stats['total_states'] ?? 0 }}
India wide
Cities
{{ $stats['total_cities'] ?? 0 }}
Planning areas
Regulations
{{ $stats['total_regulations'] ?? 0 }}
Active rules
Feasibility Reports
{{ $stats['total_reports'] ?? 0 }}
Today: {{ $stats['reports_today'] ?? 0 }}
Zoning Rules
{{ $stats['total_zones'] ?? 0 }}
Avg Score: {{ $stats['avg_score'] ?? 0 }}
Active Roles
{{ $stats['total_roles'] ?? 0 }}
Permission groups
{{-- Bottom grid: Recent Users + Quick Links --}}
{{-- Recent Reports Table --}}
Recent Feasibility Reports
View All
@forelse($recent_reports ?? [] as $rep) @empty @endforelse
# Address State Zone Score Status Date
{{ str_pad($rep->id, 5, '0', STR_PAD_LEFT) }} {{ $rep->address ?? '—' }} {{ $rep->state?->name ?? '—' }} {{ $rep->zone?->name ?? '—' }} @if($rep->feasibility_score !== null) {{ $rep->feasibility_score }} @else @endif {{ ucfirst($rep->status ?? 'pending') }} {{ $rep->created_at->format('d M, H:i') }} View
No reports yet
{{-- Recent Users Table --}}
Recent Users
View All
@forelse($recent_users ?? [] as $user) @empty @endforelse
User Role Status Joined
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }}
{{ $user->role ?? 'user' }} Active {{ $user->created_at->format('d M Y') }}
No users found
{{-- Quick Links --}}
System Status
Database Online
Laravel {{ app()->version() }}
PHP {{ PHP_VERSION }}
Environment {{ ucfirst(app()->environment()) }}
Debug Mode {{ config('app.debug') ? 'ON' : 'OFF' }}
@endsection