GUARD PATROL ENTRY STATUS TABLE :

@php $newSeqNoCnt = $seqNoCnt+1; @endphp {{-- --}} @forelse($startSeqCheckPoints as $seq => $checkpoint) @php $seqTitle = ''; if ($checkpoint && $checkpoint->checkPointNames1 && $checkpoint->checkPointNames2) { $seqTitle = $checkpoint->checkPointNames1->name . " - " . $checkpoint->checkPointNames2->name; } @endphp @if ($seq == 1) @endif @empty @endforelse @forelse ($records as $index => $record) {{-- --}} {{-- --}} @foreach($startSeqCheckPoints as $seq => $checkpoint) @php $seqTitle = ''; if ($checkpoint && $checkpoint->checkPointNames1 && $checkpoint->checkPointNames2) { $seqTitle = $checkpoint->checkPointNames1->name . " - " . $checkpoint->checkPointNames2->name; } $actualVal = $record["Sequence_$seq"] ?? 'X'; $minVal = $checkpoint->min_cushioning; $maxVal = $checkpoint->max_cushioning;// . "\n" $seqTitTime = $seqTitle . "\n". $record["Sequence_Time_$seq"] ?? ''; if ($actualVal == 'X') { $bgStyle = 'background-color: #f87171;';// 'bg-red-500'; // Tailwind red } elseif (is_numeric($actualVal) && is_numeric($minVal) && is_numeric($maxVal)) { if ($actualVal < $minVal) { $bgStyle = 'background-color: #fde68a;';// 'bg-yellow-300'; // Tailwind yellow } elseif ($actualVal > $maxVal) { $bgStyle = 'background-color: #f87171;';// 'bg-red-500'; // Tailwind red } else { $bgStyle = 'background-color: #4ade80;';// 'bg-green-400'; // Tailwind green } } else { $bgStyle = ''; } @endphp @endforeach @empty @endforelse
Patrol Round Guard Name PatrolSequences
Start Time End Time Lap Time11{{ $seq + 1 }}0
{{ $index + 1 }}{{ $record['created_at'] ?? '' }}{{ $record['guard_name'] ?? '' }} {{ $record['start_time'] ?? '' }} {{ $record['end_time'] ?? '' }} {{ $record['lap_time'] ?? '' }} 0{{ $actualVal1 }}{{ $actualVal }}
No records found.