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

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