WuYongJie 9595267ee7
Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
chore: 导入 Akaunting 初始源码与团队协作规则
2026-07-20 18:20:25 +08:00

33 lines
964 B
PHP

<x-loading.content />
<div class="relative mt-4">
<x-form
id="{{ $formId }}"
:route="$formRoute"
method="{{ $formMethod }}"
:model="$document"
>
@if (! $hideCompany)
<x-documents.form.company :type="$type" />
@endif
<x-documents.form.main type="{{ $type }}" />
@if ($showRecurring)
<x-documents.form.recurring type="{{ $type }}" />
@endif
@if (! $hideAdvanced)
<x-documents.form.advanced type="{{ $type }}" />
@endif
<x-form.input.hidden name="type" :value="old('type', $type)" v-model="form.type" />
<x-form.input.hidden name="status" :value="old('status', $status)" v-model="form.status" />
<x-form.input.hidden name="amount" :value="old('amount', '0')" v-model="form.amount" />
@if (! $hideButtons)
<x-documents.form.buttons :type="$type" />
@endif
</x-form>
</div>