@extends('layouts.app') @section('title', 'Machines') @section('content')

Machines

{{ $stats['operational'] ?? 0 }}

Operational

{{ $stats['maintenance'] ?? 0 }}

In Maintenance

{{ $stats['breakdown'] ?? 0 }}

Breakdown

{{ $stats['total'] ?? 0 }}

Total Machines

Machine Management
Manage production equipment
Add Machine
@forelse($data as $machine) @empty @endforelse
Code Name Type Model Status Availability OEE Next Maintenance Actions
{{ $machine->machine_code }} {{ $machine->name }} {{ $machine->type }} {{ $machine->model }} @include('manufacturing.partials.status-badge', ['status' => $machine->status]) {{ round($machine->getAvailability()) }}% {{ round($machine->getOEE()) }}% @if($machine->next_maintenance_date) @if($machine->next_maintenance_date < now()) Overdue @elseif($machine->next_maintenance_date <= now()->addDays(7)) Soon @else {{ $machine->next_maintenance_date->format('Y-m-d') }} @endif @else N/A @endif
No machines found
{{ $data->appends(request()->query())->links() }}
@push('scripts') @endpush @endsection