changed logic production target blade file #1136

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-30 09:01:48 +00:00

View File

@@ -18,35 +18,37 @@
</tr>
</thead>
<tbody class="divide-y divide-gray-100">
@forelse ($monthlyRecords as $index => $record)
<tr class="hover:bg-gray-50">
<tbody class="divide-y divide-gray-100">
<td class="border px-4 py-2">
{{ $index + 1 }}
</td>
@if (!empty($records))
<tr class="hover:bg-gray-50">
<td class="border px-4 py-2 whitespace-nowrap">
{{ $record['plant_name'] }}
</td>
<td class="border px-4 py-2">
1
</td>
<td class="border px-4 py-2 whitespace-nowrap">
{{ $record['line_name'] }}
</td>
<td class="border px-4 py-2 whitespace-nowrap">
{{ $records[0]['plant_name'] ?? '-' }}
</td>
<td class="border px-4 py-2 whitespace-nowrap font-semibold">
{{ $monthlyRecords ?? 0 }}
</td>
<td class="border px-4 py-2 whitespace-nowrap">
{{ $records[0]['line_name'] ?? '-' }}
</td>
</tr>
@empty
<tr>
<td colspan="4" class="px-4 py-4 text-center text-gray-500">
No monthly production plan data found.
</td>
</tr>
@endforelse
</tbody>
<td class="border px-4 py-2 whitespace-nowrap font-semibold">
{{ $monthlyRecords ?? 0 }}
</td>
</tr>
@else
<tr>
<td colspan="4" class="px-4 py-4 text-center text-gray-500">
No monthly production plan data found.
</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>