@extends('crm.layouts.app') @section('title', 'Equipment Maintenance') @section('content')

Equipment Maintenance

Manage equipment maintenance and scheduling

@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif
Total Equipment
{{ $stats['total'] }}
Active Equipment
{{ $stats['active'] }}
In Maintenance
{{ $stats['maintenance'] }}
Overdue
{{ $stats['overdue'] }}
@forelse($equipment as $item) @empty @endforelse
Equipment Category Status Assigned To Next Maintenance Interval Actions
{{ $item->equipment_name }}
@if($item->manufacturer || $item->model)
{{ $item->manufacturer }} {{ $item->model }}
@endif
{{ ucfirst(str_replace('_', ' ', $item->equipment_type)) }} @php $statusColor = match($item->status) { 'active' => 'bg-green-50 text-green-700 ring-green-600/20', 'maintenance' => 'bg-yellow-50 text-yellow-800 ring-yellow-600/20', 'broken' => 'bg-red-50 text-red-700 ring-red-600/20', 'retired' => 'bg-gray-50 text-gray-600 ring-gray-500/10', default => 'bg-gray-50 text-gray-600 ring-gray-500/10' }; @endphp {{ ucfirst($item->status) }} Not assigned See maintenance logs Manual scheduling
@csrf @method('DELETE')

No equipment found

Add your first equipment to get started

@if($equipment->hasPages())
{{ $equipment->links() }}
@endif
@endsection @push('scripts') @endpush