@extends('layouts.cleaning') @section('content')
TANRAIL ONE | Cleaning Operations

Daily Control History

@forelse($history as $record) @empty @endforelse
Date Station Shift Operations Status Action
{{ \Carbon\Carbon::parse($record->date)->format('M d, Y') }} @if($record->date === today()->format('Y-m-d')) Today @endif {{ $record->branch ? $record->branch->name : 'Unknown Station' }} {{ $record->shift }} {{ $record->workActivities->count() }} recorded @if($record->status === 'Submitted') Submitted @elseif($record->status === 'Approved') Approved @elseif($record->status === 'Returned') Returned @else In Progress @endif @if($record->date === today()->format('Y-m-d') && $record->status !== 'Submitted') Resume Shift @else View Report @endif
No shift history found.
@if($history->hasPages())
{{ $history->links() }}
@endif
@endsection