ExactAsset - Asset Inventory Report

Total Assets: {{ $assets->count() }}

Generated on: {{ $generatedAt }}

@forelse($assets as $asset) @php $currentAssignment = $asset->currentAssignment(); $currentUser = $currentAssignment && $currentAssignment->user ? $currentAssignment->user->fullName : 'With IT'; // Determine status display $hasPendingDisposal = $asset->disposals()->where('dispStatus', 'Pending')->exists(); $hasDisposed = $asset->disposals()->where('dispStatus', 'Disposed')->exists(); if ($hasDisposed || $asset->status === 'Disposed') { $statusDisplay = 'Disposed'; $statusClass = 'status-disposed'; } elseif ($hasPendingDisposal) { $statusDisplay = 'Pending Dispose'; $statusClass = 'status-disposed'; } elseif ($asset->status === 'Checked Out' || $currentAssignment) { $statusDisplay = 'Checked Out'; $statusClass = 'status-checked-out'; } else { $statusDisplay = 'Available'; $statusClass = 'status-available'; } @endphp @empty @endforelse
Asset ID Serial Number Model RAM Storage Processor OS Version Purchase Date Status Current User
{{ $asset->assetID }} {{ $asset->serialNum ?? '-' }} {{ $asset->model ?? '-' }} {{ $asset->ram ?? '-' }} {{ $asset->storage ?? '-' }} {{ $asset->processor ?? '-' }} {{ $asset->osVer ?? '-' }} {{ $asset->purchaseDate ? $asset->purchaseDate->format('d/m/Y') : '-' }} {{ $statusDisplay }} {{ $currentUser }}
No assets found matching the selected filters.