From 90876dda8d4be378aef3917a5b6df8141e67a58b Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 19 Jun 2026 14:55:01 +0530 Subject: [PATCH] Added na radio option in quality validation --- app/Livewire/ProductionCheckList.php | 7 ++++++- resources/views/livewire/production-check-list.blade.php | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/Livewire/ProductionCheckList.php b/app/Livewire/ProductionCheckList.php index c227c93..f439dbf 100644 --- a/app/Livewire/ProductionCheckList.php +++ b/app/Livewire/ProductionCheckList.php @@ -176,7 +176,12 @@ class ProductionCheckList extends Component 'serial_number' => $this->data['serial_number'] ?? null, 'characteristic_name' => $characteristic?->name ?? null, 'observed_value' => $this->data['observed_value'] ?? null, - 'status' => $value == 'ok' ? 'Ok' : 'NotOk', + // 'status' => $value == 'ok' ? 'Ok' : 'NotOk', + 'status' => match (strtolower($value)) { + 'ok' => 'Ok', + 'na' => 'N/A', + 'not_ok' => 'NotOk', + }, 'inspection_status' => $finalInspectionStatus ?? null, 'created_by' => $this->data['operator_id'] ?? null, ]); diff --git a/resources/views/livewire/production-check-list.blade.php b/resources/views/livewire/production-check-list.blade.php index 450763d..335e2d2 100644 --- a/resources/views/livewire/production-check-list.blade.php +++ b/resources/views/livewire/production-check-list.blade.php @@ -18,6 +18,7 @@ Characteristics OK Not OK + N/A @@ -38,6 +39,12 @@ wire:model="checklist.{{ $record['id'] }}" value="not_ok"> + + + + @endforeach