@extends('layouts.dashboard.superadminapp') @section('title', 'Machine Dashboard') @section('styles') @endsection @section('content')

UEPL | Machine Dashboard

day, 00 month 0000
@php $capacityRate = $totalMachines > 0 ? round(($runningNow / $totalMachines) * 100, 1) : 0; $maintenanceRate = $totalMachines > 0 ? round(($underMaintenance / $totalMachines) * 100, 1) : 0; $idleMachines = max($totalMachines - $runningNow - $underMaintenance, 0); $idleRate = $totalMachines > 0 ? round(($idleMachines / $totalMachines) * 100, 1) : 0; @endphp
{{ $totalMachines }}
Total Machines
All registered machines
{{ $runningNow }}
Running Now
{{ $capacityRate }}% capacity utilization
{{ $underMaintenance }}
Under Maintenance
{{ $maintenanceRate }}% of total machines
{{ $issuesToday }}
Issues Today
Requires attention
Machine Status Overview
Running {{ $runningNow }} ({{ $capacityRate }}%)
Maintenance {{ $underMaintenance }} ({{ $maintenanceRate }}%)
Idle {{ $idleMachines }} ({{ $idleRate }}%)
{{ $capacityRate }}%

Overall Capacity Utilization

Production Output (Last 7 Days)
Status Distribution
Quick Actions
Current Shift Operators
@forelse($currentOperators as $operator)
{{ $operator['name'] }}
{{ $operator['name'] }}
{{ $operator['role'] }}
{{ $operator['status'] }}
@empty

No operators currently on shift

@endforelse
Running Machines Summary
Status Count Percentage
Running {{ $runningNow }} {{ $capacityRate }}%
Maintenance {{ $underMaintenance }} {{ $maintenanceRate }}%
Idle {{ $idleMachines }} {{ $idleRate }}%
Total {{ $totalMachines }} 100%
Issues & Alerts
@if($issuesToday > 0)
{{ $issuesToday }} issue(s) reported today requiring attention.
@else
No issues reported today. All systems operational.
@endif @if($underMaintenance > 0)
{{ $underMaintenance }} machine(s) currently under maintenance.
@endif @if($idleMachines > ($totalMachines * 0.3))
{{ $idleMachines }} machine(s) are idle. Consider optimizing production schedule.
@endif
@endsection @section('scripts') @endsection