close #2600 Enhancement: Company create/edit form fields changed
This commit is contained in:
parent
2eaff8fcc0
commit
3845dce5db
@ -1,5 +1,7 @@
|
|||||||
<x-layouts.admin>
|
<x-layouts.admin>
|
||||||
<x-slot name="title">{{ trans('general.title.new', ['type' => trans_choice('general.companies', 1)]) }}</x-slot>
|
<x-slot name="title">
|
||||||
|
{{ trans('general.title.new', ['type' => trans_choice('general.companies', 1)]) }}
|
||||||
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="content">
|
<x-slot name="content">
|
||||||
<x-form.container>
|
<x-form.container>
|
||||||
@ -10,48 +12,12 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="body">
|
<x-slot name="body">
|
||||||
<div class="sm:col-span-3 grid gap-x-8 gap-y-6 grid-rows-3">
|
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
|
||||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
|
|
||||||
|
|
||||||
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
|
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
|
||||||
|
|
||||||
<x-form.group.text name="phone" label="{{ trans('settings.company.phone') }}" value="{{ setting('company.phone') }}" not-required />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="sm:col-span-3">
|
|
||||||
<x-form.group.file name="logo" label="{{ trans('companies.logo') }}" not-required />
|
|
||||||
</div>
|
|
||||||
</x-slot>
|
|
||||||
</x-form.section>
|
|
||||||
|
|
||||||
<x-form.section>
|
|
||||||
<x-slot name="head">
|
|
||||||
<x-form.section.head title="{{ trans('items.billing') }}" description="{{ trans('companies.form_description.billing') }}" />
|
|
||||||
</x-slot>
|
|
||||||
|
|
||||||
<x-slot name="body">
|
|
||||||
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.currency name="currency" />
|
<x-form.group.currency name="currency" />
|
||||||
|
|
||||||
<x-form.group.locale not-required />
|
|
||||||
</x-slot>
|
|
||||||
</x-form.section>
|
|
||||||
|
|
||||||
<x-form.section>
|
|
||||||
<x-slot name="head">
|
|
||||||
<x-form.section.head title="{{ trans('general.address') }}" description="{{ trans('companies.form_description.address') }}" />
|
|
||||||
</x-slot>
|
|
||||||
|
|
||||||
<x-slot name="body">
|
|
||||||
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" v-model="form.address" not-required />
|
|
||||||
|
|
||||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" value="{{ setting('company.city') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" value="{{ setting('company.zip_code') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.text name="state" label="{{ trans('general.state') }}" value="{{ setting('company.state') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.country />
|
<x-form.group.country />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</x-form.section>
|
</x-form.section>
|
||||||
|
@ -10,48 +10,12 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="body">
|
<x-slot name="body">
|
||||||
<div class="sm:col-span-3 grid gap-x-8 gap-y-6 grid-rows-3">
|
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
|
||||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
|
|
||||||
|
|
||||||
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
|
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
|
||||||
|
|
||||||
<x-form.group.text name="phone" label="{{ trans('settings.company.phone') }}" not-required />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="sm:col-span-3">
|
|
||||||
<x-form.group.file name="logo" label="{{ trans('companies.logo') }}" :value="$company->company_logo" not-required />
|
|
||||||
</div>
|
|
||||||
</x-slot>
|
|
||||||
</x-form.section>
|
|
||||||
|
|
||||||
<x-form.section>
|
|
||||||
<x-slot name="head">
|
|
||||||
<x-form.section.head title="{{ trans('items.billing') }}" description="{{ trans('companies.form_description.billing') }}" />
|
|
||||||
</x-slot>
|
|
||||||
|
|
||||||
<x-slot name="body">
|
|
||||||
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.currency name="currency" selected="{{ ! empty($company->currency) ? $company->currency : config('setting.fallback.default.currency') }}" />
|
<x-form.group.currency name="currency" selected="{{ ! empty($company->currency) ? $company->currency : config('setting.fallback.default.currency') }}" />
|
||||||
|
|
||||||
<x-form.group.locale not-required />
|
|
||||||
</x-slot>
|
|
||||||
</x-form.section>
|
|
||||||
|
|
||||||
<x-form.section>
|
|
||||||
<x-slot name="head">
|
|
||||||
<x-form.section.head title="{{ trans('general.address') }}" description="{{ trans('companies.form_description.address') }}" />
|
|
||||||
</x-slot>
|
|
||||||
|
|
||||||
<x-slot name="body">
|
|
||||||
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" not-required v-model="form.address" />
|
|
||||||
|
|
||||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.text name="state" label="{{ trans('general.state') }}" not-required />
|
|
||||||
|
|
||||||
<x-form.group.country />
|
<x-form.group.country />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</x-form.section>
|
</x-form.section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user