Added monthly logic in paroduction target plan
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 2m39s
Laravel Larastan / larastan (pull_request) Failing after 7m14s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 2m39s
Laravel Larastan / larastan (pull_request) Failing after 7m14s
This commit is contained in:
@@ -1,4 +1,63 @@
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody class="divide-y divide-gray-100">
|
||||
@forelse ($records as $index => $record)
|
||||
<tr class="hover:bg-gray-50">
|
||||
|
||||
<td class="border px-4 py-2">
|
||||
{{ $index + 1 }}
|
||||
</td>
|
||||
|
||||
<td class="border px-4 py-2 whitespace-nowrap">
|
||||
{{ $record['plant_name'] }}
|
||||
</td>
|
||||
|
||||
<td class="border px-4 py-2 whitespace-nowrap">
|
||||
{{ $record['line_name'] }}
|
||||
</td>
|
||||
|
||||
<td class="border px-4 py-2 whitespace-nowrap font-semibold">
|
||||
{{ $this->loadMonthlyPlan(
|
||||
$year,
|
||||
$month,
|
||||
$record['plant_id'],
|
||||
$record['line_id']
|
||||
) }}
|
||||
</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>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- //.. --}}
|
||||
<h2 class="text-lg font-bold mb-4 text-gray-700 uppercase tracking-wider">
|
||||
PRODUCTION PLAN TABLE:
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user