@extends('adminlte::page') @section('title', 'Dashboard') @section('content_header')

Dashboard

@stop @section('content')
{{-- Depreciation Alerts --}} @if($depreciationAlerts->isNotEmpty()) @endif {{-- Financial Summary Cards --}}
Total Asset Value (Current) ₦{{ number_format($totalCurrentValue, 2) }}
Total Depreciation loss ₦{{ number_format($totalDepreciation, 2) }}
Total Acquisition Cost ₦{{ number_format($totalPurchaseCost, 2) }}
{{-- Stats Widgets --}}
{{-- Total Assets --}}

{{ number_format($totalAssets) }}

Total Assets

More info
{{-- Active --}}

{{ number_format($activeCount) }}

Active

More info
{{-- Under Repair --}}

{{ number_format($maintenanceCount) }}

Under Repair

More info
{{-- Disposed --}}

{{ number_format($disposedCount) }}

Disposed

More info
{{-- Left Col: Recent Activity --}}

Recent Activity

@forelse($recentAssets as $asset) @empty @endforelse
Asset Tag Item Name Category Status Last Updated
{{ $asset->asset_tag }} {{ $asset->name }} {{ optional($asset->category)->name ?? 'N/A' }} @php $badgeClass = match($asset->status) { 'active' => 'badge-success', 'under_repair' => 'badge-warning', 'disposed' => 'badge-secondary', 'lost' => 'badge-danger', default => 'badge-secondary', }; @endphp {{ ucfirst(str_replace('_', ' ', $asset->status)) }} {{ $asset->updated_at->diffForHumans() }}
No recent activity found.
{{-- Right Col: Quick Actions & Health --}}
{{-- Status Distribution --}}

Asset Health

{{ $operationalPercent }}%
Active
{{ $maintenancePercent }}%
Under Repair
{{ $retiredPercent }}%
Disposed
@stop @section('css') {{-- Add any extra CSS here if not already in master --}} @stop @section('js') @stop