Update sequences column logic in guard patrol entry table for accurate display

This commit is contained in:
dhanabalan
2025-08-07 10:50:00 +05:30
parent e58dbfbebd
commit dc9f929fa2

View File

@@ -9,7 +9,10 @@
<th rowspan="2" class="border px-4 py-2" style="width: 60px;">Patrol Round</th>
<th rowspan="2" class="border px-4 py-2">Guard Name</th>
<th colspan="3" class="border px-4 py-2">Patrol</th>
<th colspan="{{ $seqNoCnt }}" class="border px-4 py-2">Sequences</th>
@php
$newSeqNoCnt = $seqNoCnt+1;
@endphp
<th colspan="{{ $newSeqNoCnt }}" class="border px-4 py-2">Sequences</th>
</tr>
<tr>
<th class="border px-4 py-2">Start Time</th>
@@ -23,7 +26,10 @@
$seqTitle = $checkpoint->checkPointNames1->name . " - " . $checkpoint->checkPointNames2->name;
}
@endphp
<th class="border px-4 py-2" title="{{ $seqTitle }}">{{ $seq }}</th>
@if ($seq == 1)
<th class="border px-4 py-2" style="" title="">1</th>
@endif
<th class="border px-4 py-2" title="{{ $seqTitle }}">{{ $seq + 1 }}</th>
@empty
<th class="border px-4 py-2" title="Sequences not found!">0</th>
@endforelse
@@ -38,6 +44,7 @@
<td class="border px-4 py-2" title="Start Time">{{ $record['start_time'] ?? '' }}</td>
<td class="border px-4 py-2" title="End Time">{{ $record['end_time'] ?? '' }}</td>
<td class="border px-4 py-2" title="Lap Time">{{ $record['lap_time'] ?? '' }}</td>
<td class="border px-4 py-2" title="">0</td>
{{-- <td class="border px-4 py-2" style="{{ $bgStyle1 }}" title="<?php echo htmlspecialchars($seqTitle1); ?>">{{ $actualVal1 }}</td> --}}
@foreach($startSeqCheckPoints as $seq => $checkpoint)
@php