Files
pds/resources/views/livewire/production-target-plan.blade.php
dhanabalan 77df792dec
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 22s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 3m30s
Laravel Larastan / larastan (pull_request) Failing after 6m39s
removed temporary table in target table
2026-09-30 16:56:47 +05:30

82 lines
2.7 KiB
PHP

<div class="p-4">
<div class="p-4 mt-6">
<h2 class="text-lg font-bold mb-4 text-gray-700 uppercase tracking-wider">
MONTHLY PRODUCTION PLAN:
</h2>
<div class="overflow-x-auto rounded-lg shadow">
<table class="w-full divide-y divide-gray-200 text-sm text-center">
<thead class="bg-gray-100 text-sm font-semibold uppercase text-gray-700">
<tr>
<th class="border px-4 py-2">No</th>
<th class="border px-4 py-2 whitespace-nowrap">Plant</th>
<th class="border px-4 py-2 whitespace-nowrap">Line</th>
<th class="border px-4 py-2 whitespace-nowrap">
Monthly Plan Quantity
</th>
<th class="border px-4 py-2 whitespace-nowrap">
Monthly Actual Quantity
</th>
<th class="border px-4 py-2 whitespace-nowrap">
Monthly Efficiency(%)
</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-100">
@if (!empty($records))
<tr class="hover:bg-gray-50">
<td class="border px-4 py-2">
1
</td>
<td class="border px-4 py-2 whitespace-nowrap">
{{ $records[0]['plant_name'] ?? '-' }}
</td>
<td class="border px-4 py-2 whitespace-nowrap">
{{ $records[0]['line_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 font-semibold">
{{ $monthlyRecords ?? 0 }}
</td>
<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>
<div>
<h2>Test</h2>
<p>Records: {{ count($records) }}</p>
<p>Dates: {{ count($dates) }}</p>
</div>
{{-- //.. --}}
</div>