@forelse ($linkedAssets as $asset) @php $assetStatusLabel = match ($asset->is_currently_in_use) { 'in_use' => 'In Use', 'in_store' => 'In Store', 'in_repair' => 'In Repair', default => $asset->is_currently_in_use ?: '-', }; $assetStatusClass = match ($asset->is_currently_in_use) { 'in_use' => 'ui-pill--success', 'in_store' => 'ui-pill--neutral', 'in_repair' => 'ui-pill--warn', default => 'ui-pill--neutral', }; @endphp @empty @endforelse
Asset Name Product Model Serial Number Status Acquisition Date
{{ $asset->name ?? '-' }} {{ $asset->product?->name ?? '-' }} {{ $asset->model ?? '-' }} {{ $asset->serial_number ?? '-' }} {{ $assetStatusLabel }} {{ $asset->acquisition_date ? \Carbon\Carbon::parse($asset->acquisition_date)->format('Y-m-d') : '-' }}
No linked assets found