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

All Assets

All fixed assets — projects, warehouse, and repair shop

arrow_back Back to Overview
@endsection @section('content') {{-- Summary Cards --}}

{{ $totalCount }}

Total Assets

{{ $atProjectCount }}

At Projects

{{ $inWarehouseCount }}

In Warehouse

{{ $repairShopCount }}

Repair Shop
{{-- Filters --}}
clear
{{-- Table --}}
devices All Fixed Assets @if(request()->hasAny(['location_type', 'category_id', 'condition', 'project_id', 'search'])) Filtered @endif
@php $condColors = ['new'=>'success','good'=>'info','fair'=>'warning','poor'=>'danger','damaged'=>'danger','written_off'=>'secondary']; $lcColors = ['in_use'=>'success','in_warehouse'=>'info','returned'=>'secondary','under_maintenance'=>'warning','acquired'=>'light','disposed'=>'dark','retired'=>'dark']; $lcLabels = ['in_use'=>'At Project','in_warehouse'=>'In Warehouse','returned'=>'In Warehouse','under_maintenance'=>'Repair Shop','acquired'=>'In Warehouse','disposed'=>'Disposed','retired'=>'Retired']; @endphp @forelse($assets as $i => $asset) @empty @endforelse
# Asset Code Asset Name Category Current Location Serial Number Condition Status Book Value
{{ $assets->firstItem() + $i }} {{ $asset->asset_code }} {{ $asset->asset_name }} {{ $asset->category ? $asset->category->category_name : '-' }} @if($asset->lifecycle_status === 'in_use' && $asset->currentProject) {{ $asset->currentProject->project_number }}
{{ $asset->currentProject->project_name }} @elseif($asset->lifecycle_status === 'under_maintenance') build Repair Shop @else store Warehouse @endif
{{ $asset->serial_number ?? '-' }} {{ ucfirst($asset->condition) }} {{ $lcLabels[$asset->lifecycle_status] ?? ucfirst(str_replace('_', ' ', $asset->lifecycle_status)) }} AED {{ number_format($asset->current_book_value ?? $asset->purchase_price, 2) }} visibility
devices

No assets found matching your filters.

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