@extends('adminlte::page') @section('title', 'Dashboard') @section('content_header')
There are {{ $depreciationAlerts->count() }} assets approaching or past their next depreciation date.
@php $totalDepreciationValue = $depreciationAlerts->sum(function($asset) { return $asset->useful_life > 0 ? ($asset->purchase_cost - $asset->salvage_value) / $asset->useful_life : 0; }); @endphpEstimated Depreciation Value: ₦{{ number_format($totalDepreciationValue, 2) }}
| 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. | ||||
{{ number_format($operationalCount) }} assets in good standing
{{ number_format($underRepairCount) }} assets under repair
{{ number_format($fullyDepreciatedCount) }} fully depreciated & still active