@extends('backend.layout.template') @section('title') Admin Dashboard | {{ $app_setting->meta_title ?? 'Ambulist' }} @endsection @section('css') @endsection @section('content')

Admin Overview Dashboard

Welcome back, {{ Auth::user()->name }}! Platform metrics, recent listings and updates.

Total Providers
{{ number_format($stats['total_users']) }}
{{ $stats['active_users'] }} Active {{ $stats['pending_users'] }} Pending
Blog Articles
{{ number_format($stats['total_posts']) }}
{{ $stats['active_posts'] }} Published Live
Platform Views
{{ number_format($stats['total_views']) }}
All-time Impressions
Directory Coverage
{{ $stats['total_categories'] }} Categories
{{ $stats['total_districts'] }} Districts Active
@forelse($recentUsers as $user) @empty @endforelse
Provider Category & District Contact Status Action
@if(!empty($user->profile_photo)) {{ $user->name }} @else
{{ substr($user->name, 0, 2) }}
@endif
{{ $user->name }} {{ $user->created_at ? $user->created_at->diffForHumans() : 'Recently' }}
{{ optional($user->primarycategory)->name ?? 'General' }} {{ optional($user->district)->name ?? 'All' }}
{{ $user->phone ?? 'N/A' }} {{ $user->email }} @if($user->status == 1) Active @else Inactive @endif
No providers registered yet.
Top Service Categories
Manage
@php $maxCount = $topCategories->max('users_count') ?: 1; @endphp @foreach($topCategories as $cat) @php $percent = round(($cat->users_count / $maxCount) * 100); @endphp
{{ $cat->name }} {{ $cat->users_count }} listings
@endforeach
Platform Information
System Name: {{ $app_setting->meta_title ?? 'Ambulist Platform' }}
Laravel Framework: {{ app()->version() }}
PHP Engine: {{ PHP_VERSION }}
24/7 Helpline Status: Active ({{ $app_setting->phone ?? '01627-669222' }})
@forelse($recentPosts as $post) @empty @endforelse
Article Details Category Views Published Date Status Actions
@if(!empty($post->image)) {{ $post->name }} @else
@endif
{{ $post->name }} /views/{{ Str::limit($post->slug, 25) }}
{{ optional($post->categoryFunction)->name ?? 'General' }} {{ number_format($post->views) }} {{ $post->created_at ? $post->created_at->format('d M, Y') : 'N/A' }} @if($post->status == 1) Published @else Draft @endif
No blog posts available yet.
@endsection