From 4301b4b19a8404c2fd8107bd60c8ec7ff1a1c86d Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 18 Jun 2026 16:00:13 +0530 Subject: [PATCH] Added logic in panel check list livewire page --- .../views/livewire/panel-check-list.blade.php | 56 ++++++++++++++++++- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire/panel-check-list.blade.php b/resources/views/livewire/panel-check-list.blade.php index f67388b..4099007 100644 --- a/resources/views/livewire/panel-check-list.blade.php +++ b/resources/views/livewire/panel-check-list.blade.php @@ -36,7 +36,7 @@ > --}} - + {{-- @php $status = $this->getCharacteristicStatus($record['id']); @endphp @@ -58,7 +58,57 @@ " placeholder="Enter value" > - + --}} + + + @php + $status = $this->getCharacteristicStatus($record['id']); + @endphp + + @if(($record['inspection_type'] ?? null) === 'Visual') + +
+ + + +
+ + @else + + + + @endif + @endforeach @@ -81,7 +131,7 @@ type="button" wire:click="saveChecklist" style="background-color:#16a34a; color:white;" - @disabled(!$this->canSaveChecklist()) + {{-- @disabled(!$this->canSaveChecklist()) --}} class="px-6 py-2 rounded-lg shadow-md disabled:opacity-50 disabled:cursor-not-allowed" > Save