@extends('layouts.admin-simple') @section('title', 'Fixed Assets - Condition Report') @section('breadcrumb') @endsection @section('page-title')

Asset Condition Report

Assets grouped by condition with detailed breakdown

arrow_back Back to Overview
@endsection @section('content')
@php $conditionMeta = [ 'new' => ['color' => 'success', 'icon' => 'fiber_new', 'label' => 'New'], 'good' => ['color' => 'info', 'icon' => 'thumb_up', 'label' => 'Good'], 'fair' => ['color' => 'warning', 'icon' => 'thumbs_up_down', 'label' => 'Fair'], 'poor' => ['color' => 'danger', 'icon' => 'thumb_down', 'label' => 'Poor'], 'damaged' => ['color' => 'danger', 'icon' => 'broken_image', 'label' => 'Damaged'], 'non_functional' => ['color' => 'dark', 'icon' => 'block', 'label' => 'Non-Functional'], ]; @endphp @foreach($conditionSummary ?? [] as $condition => $data) @php $meta = $conditionMeta[$condition] ?? ['color' => 'secondary', 'icon' => 'help', 'label' => ucfirst($condition)]; @endphp
{{ $meta['icon'] }}

{{ $data['count'] ?? 0 }}

{{ $meta['label'] }}
@endforeach
assessmentAll Assets by Condition
@php $condColors = ['new'=>'success','good'=>'info','fair'=>'warning','poor'=>'danger','damaged'=>'danger','non_functional'=>'dark']; @endphp @forelse($assets as $i => $asset) @empty @endforelse
# Asset Code Asset Name Category Condition Location Project Book Value Last Inspection
{{ $assets->firstItem() + $i }} {{ $asset->asset_code }} {{ $asset->asset_name }} {{ $asset->category ? $asset->category->category_name : '-' }} {{ ucfirst(str_replace('_', ' ', $asset->condition)) }} {{ $asset->current_location ?? '-' }} {{ $asset->currentProject ? $asset->currentProject->project_name : '-' }} AED {{ number_format($asset->current_book_value ?? $asset->purchase_price, 2) }} {{ $asset->last_inspection_date ? \Carbon\Carbon::parse($asset->last_inspection_date)->format('M d, Y') : '-' }}
visibility @if(in_array($asset->condition, ['poor', 'damaged', 'non_functional'])) @can('warehouse.fixed-assets.maintenance.create') build @endcan @endif
assessment

No asset condition data available.

@if($assets->hasPages()) @endif
@endsection @push('styles') @endpush