32 lines
963 B
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<x-loading.content />
<div class="relative mt-4">
<x-form
id="{{ $formId }}"
:route="$formRoute"
method="{{ $formMethod }}"
2022-10-10 13:48:02 +03:00
:model="$document"
2022-06-01 10:15:55 +03:00
>
@if (! $hideCompany)
<x-documents.form.company :type="$type" />
2020-12-24 01:28:38 +03:00
@endif
2022-06-01 10:15:55 +03:00
<x-documents.form.main type="{{ $type }}" />
2020-12-24 01:28:38 +03:00
2022-06-01 10:15:55 +03:00
@if ($showRecurring)
<x-documents.form.recurring type="{{ $type }}" />
2020-12-24 01:28:38 +03:00
@endif
2022-06-01 10:15:55 +03:00
@if (! $hideAdvanced)
<x-documents.form.advanced type="{{ $type }}" />
2020-12-24 01:28:38 +03:00
@endif
2022-06-01 10:15:55 +03:00
<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" />
2020-12-24 01:28:38 +03:00
2022-06-01 10:15:55 +03:00
@if (! $hideButtons)
<x-documents.form.buttons :type="$type" />
@endif
</x-form>
</div>