@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @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' => 'bg-green-100 text-green-700', 'Expiring Soon' => 'bg-orange-100 text-orange-700', 'Expired' => 'bg-red-100 text-red-700', default => 'bg-slate-100 text-slate-600', }; @endphp
← Back to Assets
Edit Asset
@csrf @method('DELETE')

Status

{{ $asset->status }}

Condition

{{ $asset->condition }}

Purchase Value

{{ number_format($asset->purchase_price, 2) }}

Asset Code

{{ $asset->asset_code }}

@if($asset->is_service_due)

Service Overdue

This asset was due for service on {{ $asset->next_service_date?->format('d M Y') }}.

@endif

Asset Information

{{ $asset->name }}

{{ $asset->category }}

@if($asset->description)
{{ $asset->description }}
@else
No description has been provided.
@endif
Brand
{{ $asset->brand ?: 'Not provided' }}
Model
{{ $asset->model ?: 'Not provided' }}
Serial Number
{{ $asset->serial_number ?: 'Not provided' }}
Category
{{ $asset->category }}

Purchase and Warranty

Purchase Price
{{ number_format($asset->purchase_price, 2) }}
Purchase Date
{{ $asset->purchase_date?->format('d M Y') ?? 'Not provided' }}
Vendor
{{ $asset->vendor ?: 'Not provided' }}
Warranty Expiry
{{ $asset->warranty_expiry?->format('d M Y') ?? 'Not provided' }}
Warranty Status
{{ $asset->warranty_status }}

Maintenance Information

Next Service Date

{{ $asset->next_service_date?->format('d M Y') ?? 'Not scheduled' }}

Service Status

{{ $asset->is_service_due ? 'Service Due' : 'No Service Alert' }}

Location

Current Location

{{ $asset->location ?: 'Not provided' }}

Record Information

Created

{{ $asset->created_at?->format('d M Y, h:i A') }}

Last Updated

{{ $asset->updated_at?->format('d M Y, h:i A') }}

Asset Accountability

Update the asset immediately when its location, custodian, condition or service status changes.