42 lines
1.5 KiB
PHP
42 lines
1.5 KiB
PHP
<x-layouts.admin>
|
|
<x-slot name="title">
|
|
{{ trans('general.title.new', ['type' => trans_choice('general.companies', 1)]) }}
|
|
</x-slot>
|
|
|
|
<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>
|
|
|
|
<x-slot name="body">
|
|
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
|
|
|
|
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
|
|
|
|
<x-form.group.currency name="currency" :options="$currencies" without-add-new />
|
|
|
|
<x-form.group.country />
|
|
</x-slot>
|
|
</x-form.section>
|
|
|
|
<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>
|
|
|
|
@push('scripts_end')
|
|
<script type="text/javascript">
|
|
var country_validation_required_message = "{{ trans('validation.required', ['attribute' => trans_choice('general.countries', 1)]) }}";
|
|
</script>
|
|
@endpush
|
|
|
|
<x-script folder="common" file="companies" />
|
|
</x-layouts.admin>
|