1
0
forked from poc/pds

designed production quantity reports table

This commit is contained in:
dhanabalan
2025-05-12 20:10:58 +05:30
parent 74ef122ee9
commit 5718db1399

View File

@@ -114,57 +114,5 @@
</div> </div>
{{-- //..perfect logic --}}
{{-- <div class="flex space-x-4 w-full">
<!-- First Table: 08:00 AM to 07:00 PM -->
<div class="w-full px-2">
<table class="w-full divide-y divide-gray-200 border-1 rounded-lg border-black overflow-hidden">
<thead class="bg-gray-100">
<tr>
<th class="px-3 py-3 border text-center text-xs font-bold text-gray-700 uppercase tracking-wider">No</th>
<th class="px-3 py-3 border text-center text-xs font-bold text-gray-700 uppercase tracking-wider">Time Range</th>
<th class="px-3 py-3 border text-center text-xs font-bold text-gray-700 uppercase tracking-wider">Production Quantity</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
@foreach ($hourlyData as $index => $data)
@if ($index < 12) <!-- First 12 time ranges (AM) -->
<tr>
<td class="px-3 py-2 border text-center text-xs whitespace-nowrap">{{ $index + 1 }}</td>
<td class="px-3 py-2 border text-center text-xs whitespace-nowrap">{{ $data['time'] }}</td>
<td class="px-3 py-2 border text-center text-xs whitespace-nowrap">{{ $data['quantity'] ?: '0' }}</td> <!-- Show 0 if no data -->
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
<!-- Second Table: 08:00 PM to 08:00 AM -->
<div class="w-full px-2">
<table class="w-full divide-y divide-gray-200 border-1 rounded-lg overflow-hidden">
<thead class="bg-gray-100">
<tr>
<th class="px-3 py-3 border text-center text-xs font-bold text-gray-700 uppercase tracking-wider">No</th>
<th class="px-3 py-3 border text-center text-xs font-bold text-gray-700 uppercase tracking-wider">Time Range</th>
<th class="px-3 py-3 border text-center text-xs font-bold text-gray-700 uppercase tracking-wider">Production Quantity</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
@foreach ($hourlyData as $index => $data)
@if ($index >= 12) <!-- Last 12 time ranges (PM to AM) -->
<tr>
<td class="px-3 py-2 border text-center text-xs whitespace-nowrap">{{ $index + 1 }}</td>
<td class="px-3 py-2 border text-center text-xs whitespace-nowrap">{{ $data['time'] }}</td>
<td class="px-3 py-2 border text-center text-xs whitespace-nowrap">{{ $data['quantity'] ?: '0' }}</td> <!-- Show 0 if no data -->
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
</div> --}}