Added save button in invoice pending reason page #201
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user