TANRAIL ONE
|
Cleaning Operations
|
{{ $branch->name }}
Today's Workspace
{{ today()->format('l, F j, Y') }} — Shift: {{ $dailyControl->shift }}
@if($dailyControl->status === 'Submitted')
Submitted
@else
In Progress
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@php
$operationsTabs = [];
if (auth()->user()->hasCleaningServiceResponsibility($dailyControl->branch_id, 'facility_cleaning')) {
$operationsTabs[] = ['key' => 'tps', 'label' => 'Station / Facility Cleaning'];
}
if (auth()->user()->hasCleaningServiceResponsibility($dailyControl->branch_id, 'sgr_coach_cleaning')) {
$operationsTabs[] = ['key' => 'sgr', 'label' => 'SGR coaches'];
}
if (auth()->user()->hasCleaningServiceResponsibility($dailyControl->branch_id, 'fumigation')) {
$operationsTabs[] = ['key' => 'fumigation', 'label' => 'Fumigation'];
}
$workflowGroups = [
[
'number' => '01',
'title' => 'Prepare the shift',
'description' => 'Confirm the team and supplies.',
'tabs' => [
['key' => 'team', 'label' => 'Team & attendance'],
['key' => 'materials', 'label' => 'Materials'],
],
],
[
'number' => '02',
'title' => 'Run operations',
'description' => 'Record facility and train work.',
'tabs' => $operationsTabs,
],
[
'number' => '03',
'title' => 'Review & close',
'description' => 'Resolve issues and submit the shift.',
'tabs' => [
['key' => 'issues', 'label' => 'Issues'],
['key' => 'closure', 'label' => 'Shift closure'],
],
],
];
$workflowStatusClasses = [
'complete' => 'bg-emerald-50 text-emerald-700',
'attention' => 'bg-amber-50 text-amber-800',
'neutral' => 'bg-slate-100 text-slate-600',
];
@endphp
@include('cleaning.daily-control.tabs.' . $tab)
@endsection