76 lines
3.4 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<x-layouts.admin>
<x-slot name="title">{{ trans('general.title.new', ['type' => trans_choice('general.companies', 1)]) }}</x-slot>
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-slot name="content">
<x-form.container>
<x-form id="company" route="companies.store">
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('general.general') }}" description="{{ trans('companies.form_description.general') }}" />
</x-slot>
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<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') }}" />
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-form.group.text name="phone" label="{{ trans('settings.company.phone') }}" value="{{ setting('company.phone') }}" not-required />
</div>
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<div class="sm:col-span-3">
<x-form.group.file name="logo" label="{{ trans('companies.logo') }}" not-required />
</div>
</x-slot>
</x-form.section>
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('items.billing') }}" description="{{ trans('companies.form_description.billing') }}" />
</x-slot>
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-slot name="body">
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" not-required />
2022-06-01 10:15:55 +03:00
<x-form.group.currency name="currency" />
2022-06-01 10:15:55 +03:00
<x-form.group.locale not-required />
</x-slot>
</x-form.section>
2017-10-07 23:52:34 +03:00
2022-06-01 10:15:55 +03:00
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('general.address') }}" description="{{ trans('companies.form_description.address') }}" />
</x-slot>
2022-06-01 10:15:55 +03:00
<x-slot name="body">
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" v-model="form.address" not-required />
2022-06-01 10:15:55 +03:00
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" value="{{ setting('company.city') }}" not-required />
2022-06-01 10:15:55 +03:00
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" value="{{ setting('company.zip_code') }}" not-required />
2022-06-01 10:15:55 +03:00
<x-form.group.text name="state" label="{{ trans('general.state') }}" value="{{ setting('company.state') }}" not-required />
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-form.group.country />
</x-slot>
</x-form.section>
2017-09-14 22:21:00 +03:00
2022-06-01 10:15:55 +03:00
<x-form.section>
<x-slot name="foot">
<x-form.buttons cancel-route="companies.index" />
</x-slot>
</x-form.section>
</x-form>
</x-form.container>
</x-slot>
2017-09-14 22:21:00 +03:00
2022-07-01 00:04:04 +03:00
@push('scripts_end')
<script type="text/javascript">
var country_validation_required_message = "{{ trans('validation.required', ['attribute' => trans_choice('general.countries', 1)]) }}";
</script>
@endpush
2022-06-01 10:15:55 +03:00
<x-script folder="common" file="companies" />
</x-layouts.admin>