@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Reset

Asset Register

Showing {{ $assets->count() }} of {{ $assets->total() }} asset(s).

+ Add Asset
@forelse($assets as $asset) @php $conditionClass = match ($asset->condition) { 'Excellent' => 'bg-green-100 text-green-700', 'Good' => 'bg-blue-100 text-blue-700', 'Fair' => 'bg-yellow-100 text-yellow-700', 'Poor' => 'bg-orange-100 text-orange-700', default => 'bg-red-100 text-red-700', }; $statusClass = match ($asset->status) { 'Active' => 'bg-green-100 text-green-700', 'Maintenance' => 'bg-yellow-100 text-yellow-700', 'Disposed' => 'bg-slate-100 text-slate-600', default => 'bg-red-100 text-red-700', }; $warrantyClass = match ($asset->warranty_status) { 'Active' => 'text-green-700', 'Expiring Soon' => 'text-orange-700', 'Expired' => 'text-red-700', default => 'text-slate-500', }; @endphp @empty @endforelse
Asset Category Identification Location / Custodian Value Condition Status Service / Warranty Actions
{{ $asset->name }}
{{ $asset->asset_code }}
{{ trim(($asset->brand ?? '') . ' ' . ($asset->model ?? '')) ?: 'No brand/model' }}
{{ $asset->category }}
Serial: {{ $asset->serial_number ?: 'N/A' }}
Purchased: {{ $asset->purchase_date?->format('d M Y') ?? 'N/A' }}
{{ $asset->location ?: 'No location' }}
{{ $asset->custodian ? trim($asset->custodian->first_name . ' ' . $asset->custodian->last_name) : 'No custodian assigned' }}
{{ number_format($asset->purchase_price, 2) }} {{ $asset->condition }} {{ $asset->status }}
Service: {{ $asset->next_service_date?->format('d M Y') ?? 'Not scheduled' }}
Warranty: {{ $asset->warranty_expiry?->format('d M Y') ?? 'Not provided' }}
View Edit
@csrf @method('DELETE')
No assets found.
@if($assets->hasPages())
{{ $assets->links() }}
@endif