Added save button in invoice pending reason page #201

Merged
jothi merged 1 commits from ranjith-dev into master 2026-01-20 05:22:18 +00:00
2 changed files with 12 additions and 2 deletions

View File

@@ -146,12 +146,13 @@ class InvoicePendingReason extends Page
->columns(3);
}
public function addRemark($value){
public function addRemark(){
$plantId = $this->filters['plant_id'] ?? null;
$documentNumber = $this->filters['document_number'] ?? null;
$remark = $value;
$remark = $this->filters['remark'] ?? null;
if (! $plantId || ! $documentNumber || $remark == '') {
return;
}

View File

@@ -3,4 +3,13 @@
{{-- {{ $this->filtersForm($this->form) }} --}}
{{ $this->filtersForm($this->form) }}
</div>
<div class="flex-row gap-2 mt-4">
<button
type="button"
wire:click="addRemark"
class="px-3 py-1 border border-primary-500 text-primary-600 rounded hover:bg-primary-50 hover:border-primary-700 transition text-sm"
>
Save
</button>
</div>
</x-filament-panels::page>