@extends('layouts.cleaning') @section('content')
Back to Workspace | SGR Module

Train Operations

{{ today()->format('l, F j, Y') }} — Shift: {{ $dailyControl->shift }}
@if(session('success'))
{{ session('success') }}
@endif

Start New Train

Enter the Train Number to begin a new coach cleaning operation.

@csrf
@error('train_number')

{{ $message }}

@enderror

Today's Trains

@forelse($trainOperations as $train) @php $summary = $progressSummaries[$train->id] ?? null; @endphp

Train {{ $train->train_number }}

{{ $train->status }}
@if($summary)
Total Coaches {{ $summary['total_coaches'] }}
Passed {{ $summary['passed'] }}
Failed {{ $summary['failed'] }}
@endif
@empty

No Trains Started

Use the form to start a new train operation for this shift.

@endforelse
@endsection