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