akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -0,0 +1,30 @@
<x-form.section>
<x-slot name="head">
<x-form.section.head
title="{{ trans($textSectionAddressTitle) }}"
description="{{ trans($textSectionAddressDescription) }}"
/>
</x-slot>
<x-slot name="body">
@if (! $hideAddress)
<x-form.group.textarea name="address" label="{{ trans($textAddress) }}" not-required v-model="form.address" />
@endif
@if (! $hideCity)
<x-form.group.text name="city" label="{{ trans_choice($textCity, 1) }}" not-required />
@endif
@if (! $hideZipCode)
<x-form.group.text name="zip_code" label="{{ trans($textZipCode) }}" not-required />
@endif
@if (! $hideState)
<x-form.group.text name="state" label="{{ trans($textState) }}" not-required />
@endif
@if (! $hideCountry)
<x-form.group.country form-group-class="sm:col-span-3 el-select-tags-pl-38" />
@endif
</x-slot>
</x-form.section>

View File

@ -0,0 +1,18 @@
<x-form.section>
<x-slot name="head">
<x-form.section.head
title="{{ trans($textSectionBillingTitle) }}"
description="{{ trans($textSectionBillingDescription) }}"
/>
</x-slot>
<x-slot name="body">
@if (! $hideTaxNumber)
<x-form.group.text name="tax_number" label="{{ trans($textTaxNumber) }}" not-required />
@endif
@if (! $hideCurrency)
<x-form.group.currency />
@endif
</x-slot>
</x-form.section>

View File

@ -0,0 +1,5 @@
<x-form.section>
<x-slot name="foot">
<x-form.buttons cancel-route="{{ $cancelRoute }}" />
</x-slot>
</x-form.section>

View File

@ -0,0 +1,28 @@
<x-form.container>
<x-form
id="{{ $formId }}"
:route="$formRoute"
method="{{ $formMethod }}"
:model="$contact"
>
@if (! $hideSectionGeneral)
<x-contacts.form.general type="{{ $type }}" />
@endif
@if (! $hideSectionBilling)
<x-contacts.form.billing type="{{ $type }}" />
@endif
@if (! $hideSectionAddress)
<x-contacts.form.address type="{{ $type }}" />
@endif
<x-form.input.hidden name="type" value="{{ $type }}" />
@if (! empty($contact))
<x-form.group.switch name="enabled" label="{{ trans('general.enabled') }}" />
@endif
<x-contacts.form.buttons type="{{ $type }}" />
</x-form>
</x-form.container>

View File

@ -0,0 +1,70 @@
<x-form.section>
<x-slot name="head">
<x-form.section.head
title="{{ trans($textSectionGeneralTitle) }}"
description="{{ trans($textSectionGeneralDescription) }}"
/>
</x-slot>
<x-slot name="body">
@if (! $hideName)
<x-form.group.text name="name" label="{{ trans($textName) }}" form-group-class="{{ $classNameFromGroupClass }}" />
@endif
<div class="sm:col-span-3 grid gap-x-8 gap-y-6">
@if (! $hideEmail)
<x-form.group.text name="email" label="{{ trans($textEmail) }}" not-required />
@endif
@if (! $hidePhone)
<x-form.group.text name="phone" label="{{ trans($textPhone) }}" not-required />
@endif
@if (! $hideWebsite)
<x-form.group.text name="website" label="{{ trans($textWebsite) }}" not-required />
@endif
@if (! $hideReference)
<x-form.group.text name="reference" label="{{ trans($textReference) }}" not-required />
@endif
</div>
<div class="sm:col-span-3">
@if (! $hideCanLogin)
<div class="mt-5.5">
@if (empty($contact))
<x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}">
<x-form.group.checkbox
name="create_user"
:options="['1' => trans('customers.can_login')]"
@input="onCanLogin($event)"
checkbox-class="sm:col-span-6" />
</x-tooltip>
@else
@if ($contact->user_id)
<x-form.group.checkbox
name="create_user"
:options="['1' => trans('customers.user_created')]"
checkbox-class="sm:col-span-6"
checked
/>
@else
<x-tooltip id="tooltip-client_portal-text" placement="bottom" message="{{ trans('customers.can_login_description') }}">
<x-form.group.checkbox
name="create_user"
:options="['1' => trans('customers.can_login')]"
checkbox-class="sm:col-span-6"
@input="onCanLogin($event)"
/>
</x-tooltip>
@endif
@endif
</div>
@endif
@if (! $hideLogo)
<x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" not-required />
@endif
</div>
</x-slot>
</x-form.section>