@extends('adminlte::page') @section('title', 'Show Asset') @section('content_header')

Asset Details: {{ $asset->asset_tag }}

Back to List @can('edit assets') Edit Asset @endcan
@stop @section('content')

{{ $asset->name }}

{{ $asset->asset_tag }}

Current Value

₦{{ number_format($asset->current_value, 2) }}

General Information
Status @php $statusColors = [ 'active' => 'success', 'disposed' => 'danger', 'under_maintenance' => 'warning', 'transferred' => 'info', 'missing' => 'secondary', 'condemned' => 'dark' ]; $statusColor = $statusColors[$asset->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $asset->status)) }}
Category {{ $asset->category->name ?? 'N/A' }}
Category Code {{ $asset->category_code ?? 'N/A' }}
Internal Serial No {{ $asset->serial_no ?? 'N/A' }}
Mfr Serial No {{ $asset->manufacturer_serial_no ?? 'N/A' }}
Model {{ $asset->model ?? 'N/A' }}
Location {{ $asset->location->name ?? 'N/A' }}
Department {{ $asset->department->name ?? 'N/A' }}
Vendor {{ $asset->vendor->name ?? 'N/A' }}
Manufacturer {{ $asset->manufacturer ?? 'N/A' }}
Year of Manufacture {{ $asset->year_of_manufacture ?? 'N/A' }}
Quantity {{ $asset->quantity ?? 1 }}
Ownership Sign {{ $asset->ownership_sign ?? 'N/A' }}
Improvement Notes

{{ $asset->improvement_notes ?: 'N/A' }}

Description

{{ $asset->description ?: 'No description provided.' }}

Financial Details
Purchase Cost ₦{{ number_format($asset->purchase_cost, 2) }}
Current Value ₦{{ number_format($asset->current_value, 2) }}
Salvage Value ₦{{ number_format($asset->salvage_value, 2) }}
Purchase Date {{ $asset->purchase_date ? $asset->purchase_date->format('M d, Y') : 'N/A' }}
Depreciation
Is Depreciable? {{ $asset->is_depreciable ? 'Yes' : 'No' }}
@if($asset->is_depreciable)
Method {{ $asset->depreciationMethod->name ?? 'N/A' }}
Frequency {{ ucfirst(str_replace('_', '-', $asset->depreciation_frequency)) }}
Useful Life {{ $asset->useful_life }} {{ $asset->depreciation_frequency == 'monthly' ? 'Months' : ($asset->depreciation_frequency == 'quarterly' ? 'Quarters' : ($asset->depreciation_frequency == 'bi_annually' ? 'Half-Years' : ($asset->depreciation_frequency == 'annually' ? 'Years' : 'Periods'))) }}
Start Date {{ $asset->start_depreciation_date ? $asset->start_depreciation_date->format('M d, Y') : 'N/A' }}
Last Run {{ $asset->last_depreciation_date ? $asset->last_depreciation_date->format('M d, Y') : 'Never' }}
Next Run {{ $asset->next_depreciation_date ? $asset->next_depreciation_date->format('M d, Y') : 'N/A' }}
@endif
System Info
Created At {{ $asset->created_at->format('M d, Y H:i A') }}
Last Updated {{ $asset->updated_at->format('M d, Y H:i A') }}
Activity Log
No recent activity recorded.
@stop @section('css') @stop @section('js') @stop