@use('Illuminate\Support\Number')

Dashboard

{{ config('app.name', 'Asset Management') }} - Overview

{{ number_format($stats['total_assets']) }}

Total Assets

{{ number_format($stats['ministries_count']) }}

MDAs

₦{{ Number::abbreviate($stats['total_asset_value']) }}

Total Asset Value

{{ number_format($stats['total_requests']) }}

Total Requests

Total Requests

{{ number_format(array_sum($chartDataYear)) }}

Recently Added Assets

+ Add Asset View All
@forelse($recentAssets as $asset)
Asset ID #{{ $asset->asset_tag }}
View

{{ $asset->name }}

{{ $asset->category->name }}

Location {{ $asset->ministry->name ?? 'Unassigned' }}
Allocated {{ $asset->created_at->format('d M Y') }}
@empty
@endforelse

Assets By Suppliers

@if ($ministryStats->sum('count') > 0)
@else @endif

Assets By MDAs

View All MDAs
@foreach ($ministryStats as $stat)
{{ $stat['name'] }} {{ $stat['count'] }}
@php $max = $ministryStats->max('count'); $width = $max > 0 ? ($stat['count'] / $max) * 100 : 0; $colors = [ 'bg-blue-500', 'bg-yellow-400', 'bg-blue-600', 'bg-indigo-500', 'bg-red-400', ]; $color = $colors[$loop->index % count($colors)]; @endphp
@endforeach

Recent Asset Requests

Track new requests, approvals, and fulfillment

View All Requests
{{-- Content Area --}}
@forelse($recentRequests as $request)
Request ID #{{ $request->request_code }}
{{ $request->status->label() }}

{{ $request->category->name }}

Requested by: {{ $request->creator->name ?? '—' }}

Date {{ $request->created_at->format('d M Y') }}
View Details
@empty
@endforelse