@use('Illuminate\Support\Number')

Assets

{{ config('app.name', 'Asset Management') }} / Asset Management
@can('import assets') Bulk Asset Upload @endcan @can('create assets') + Add New Asset @endcan

{{ number_format($totalAssets) }}

Total Assets

₦{{ Number::abbreviate($totalAssetValue) }}

Total Asset Value

₦{{ Number::abbreviate($currentAssetValue) }}

Current Value Of Assets

Assets By Categories

@if ($assetsByCategory->count() > 0)
@else
No data
@endif

Assets By MDAs

@if (auth()->user()?->ministry_id === null) View All @endif
@if ($assetsByMinistry->count() > 0)
@php $max = $assetsByMinistry->max('assets_count'); @endphp @foreach ($assetsByMinistry as $ministry)
{{ $ministry->name }} {{ $ministry->assets_count }}
@php $width = $max > 0 ? ($ministry->assets_count / $max) * 100 : 0; $colors = [ 'bg-green-500', 'bg-yellow-400', 'bg-green-600', 'bg-blue-500', 'bg-red-400', ]; $color = $colors[$loop->index % count($colors)]; @endphp
@endforeach
@else
No data
@endif

Search Assets

Find assets by asset ID, serial number, category, MDA, or date.

Search Assets @can('export reports') Export @endcan @if (request()->hasAny([ 'asset_tag', 'serial_number', 'asset_category_id', 'ministry_id', 'purchase_date', 'date_from', 'date_to', ])) Clear Search @endif

Asset Register

@can('create assets') + Add New Assets @endcan
{{-- Mobile Cards --}}
@forelse($assets as $asset)
Asset Tag #{{ $asset->asset_tag }}
{{ $asset->category->name }}

{{ $asset->name }}

{{ $asset->ministry->name ?? 'Unassigned' }}

Purchase Date {{ $asset->purchase_date?->format('d M Y') ?? '—' }}
View
@empty
@endforelse
{{-- Desktop Table --}}
{{ $assets->links() }}