2017-09-14 22:21:00 +03:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title', trans('general.title.new', ['type' => trans_choice('general.companies', 1)]))
|
|
|
|
|
|
|
|
@section('content')
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card">
|
|
|
|
{!! Form::open([
|
|
|
|
'id' => 'company',
|
|
|
|
'route' => 'companies.store',
|
|
|
|
'@submit.prevent' => 'onSubmit',
|
|
|
|
'@keydown' => 'form.errors.clear($event.target.name)',
|
|
|
|
'files' => true,
|
|
|
|
'role' => 'form',
|
|
|
|
'class' => 'form-loading-button',
|
|
|
|
'novalidate' => true
|
|
|
|
]) !!}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
2020-01-21 18:13:29 +03:00
|
|
|
{{ Form::textGroup('name', trans('general.name'), 'font') }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ Form::emailGroup('email', trans('general.email'), 'envelope') }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ Form::selectGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', $currencies) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2020-02-27 11:32:44 +03:00
|
|
|
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('default.locale', config('app.locale', 'en-GB')), []) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2021-01-11 15:52:27 +03:00
|
|
|
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], setting('company.tax_number')) }}
|
|
|
|
|
|
|
|
{{ Form::textGroup('phone', trans('settings.company.phone'), 'phone', [], setting('company.phone')) }}
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ Form::textareaGroup('address', trans('general.address')) }}
|
2017-10-07 23:52:34 +03:00
|
|
|
|
2020-12-30 23:17:49 +03:00
|
|
|
{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-12-14 10:03:41 +03:00
|
|
|
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }}
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-footer">
|
2020-02-15 13:04:37 +03:00
|
|
|
<div class="row save-buttons">
|
2020-02-03 14:09:52 +03:00
|
|
|
{{ Form::saveButtons('companies.index') }}
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@push('scripts_start')
|
|
|
|
<script src="{{ asset('public/js/common/companies.js?v=' . version('short')) }}"></script>
|
2017-11-13 21:55:15 +03:00
|
|
|
@endpush
|