You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
47 lines
1.6 KiB
@use(App\Domains\Finance\Enums\AccountClassification)
|
|
@use(App\Domains\System\Enums\LifecycleStatus)
|
|
<x-modal id="chartofaccount-form-modal" :title="$this->title" wire:submit="save" wire:loading form livewire>
|
|
<div class="d-flex flex-column gap-3">
|
|
<x-form.select
|
|
name="form.parent"
|
|
:label="__('domains/finance/field.coa.parent')"
|
|
wire:model.live="form.parent_id"
|
|
:options="$this->chartOfAccounts->pluck('name', 'ulid')"
|
|
/>
|
|
|
|
<x-form.input
|
|
name="form.code"
|
|
wire:model="form.code"
|
|
:disabled="$mode == 'update'"
|
|
:label="__('domains/finance/field.coa.code')"
|
|
/>
|
|
|
|
<x-form.input
|
|
name="form.name"
|
|
wire:model="form.name"
|
|
:disabled="$mode == 'update'"
|
|
:label="__('domains/finance/field.coa.name')"
|
|
/>
|
|
|
|
<x-form.select
|
|
name="form.classification"
|
|
:label="__('domains/finance/field.coa.classification')"
|
|
wire:model="form.classification"
|
|
:disabled="$form->parent_id != null"
|
|
:options="AccountClassification::options()"
|
|
/>
|
|
|
|
<x-form.select
|
|
name="form.status"
|
|
:label="__('domains/finance/field.coa.status')"
|
|
wire:model="form.status"
|
|
:disabled="$mode == 'update'"
|
|
:options="LifecycleStatus::options()"
|
|
/>
|
|
</div>
|
|
|
|
<x-slot:footer>
|
|
<x-button type="button" theme="secondary" :label="__('ui/button.cancel')" data-bs-dismiss="modal"/>
|
|
<x-button type="submit" theme="primary" :label="__('ui/button.save')"/>
|
|
</x-slot:footer>
|
|
</x-modal>
|
|
|