From 8ed04a83adb32a5223054b8e1a2ce3a6a28a7c93 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 30 Sep 2026 14:31:18 +0530 Subject: [PATCH] changed logic production target blade file --- .../livewire/production-target-plan.blade.php | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/resources/views/livewire/production-target-plan.blade.php b/resources/views/livewire/production-target-plan.blade.php index 586ecc79..d949ecf8 100644 --- a/resources/views/livewire/production-target-plan.blade.php +++ b/resources/views/livewire/production-target-plan.blade.php @@ -18,35 +18,37 @@ - - @forelse ($monthlyRecords as $index => $record) - + - - {{ $index + 1 }} - + @if (!empty($records)) + - - {{ $record['plant_name'] }} - + + 1 + - - {{ $record['line_name'] }} - + + {{ $records[0]['plant_name'] ?? '-' }} + - - {{ $monthlyRecords ?? 0 }} - + + {{ $records[0]['line_name'] ?? '-' }} + - - @empty - - - No monthly production plan data found. - - - @endforelse - + + {{ $monthlyRecords ?? 0 }} + + + + @else + + + No monthly production plan data found. + + + @endif + +