@extends('layouts.dashboard.adminapp') @section('title', 'Machine Report') @section('styles') @endsection @section('content')

UEPL | Machine Report

Filters
Reset
{{ $machines->count() }}
Total Machines
{{ $machines->sum(fn($m) => $m->routeProcesses->count()) }}
Total Processes
{{ $machineLogs->count() }}
Log Entries
Machine Utilization
@forelse($machines as $machine) @empty @endforelse
Machine ID Machine Name Process Count Status
{{ $machine->machine_id }} {{ $machine->machine_name }} {{ $machine->routeProcesses->count() }} {{ ucfirst($machine->status ?? 'Active') }}
No machines found
Machine Logs
@forelse($machineLogs as $log) @empty @endforelse
Date Machine Log Type Description Reported By
{{ $log->created_at ? $log->created_at->format('d-m-Y H:i') : '-' }} {{ $log->machine->machine_name ?? '-' }} {{ ucfirst($log->log_type ?? 'Info') }} {{ Str::limit($log->description, 50) }} {{ $log->reporter->name ?? '-' }}
No logs found
@endsection @section('scripts') @endsection