@extends('layouts.dashboard.managerapp') @section('title','Machine Dashboard') @section('content')

UEPL / Machine Dashboard

day, 00 month 0000

Machine Dashboard



Total Machines
{{ $totalMachines }}
{{ $totalMachines > 0 ? ($totalMachines - 5) . ' more than last month' : '' }}
Running Now
{{ $runningNow }}
@php $capacity = $totalMachines > 0 ? round(($runningNow / $totalMachines) * 100) : 0; @endphp {{ $capacity }}% of total capacity
Under Maintenance
{{ $underMaintenance }}
{{ $underMaintenance }} scheduled, 0 emergency {{-- Adjust if you have emergency/scheduled split --}}
Issues Today
{{ $issuesToday }}
{{ $issuesToday }} critical, 0 minor {{-- Adjust split if you have --}}
Production Output (Last 7 Days)
Machine Status

Current Shift Operators

@forelse($currentOperators as $operator)
Operator
{{ $operator['name'] }}
{{ $operator['role'] }}
{{ $operator['status'] }}
@empty
No operators on shift.
@endforelse
{{-- Pass PHP data to JS --}} @endsection