55 lines
2.1 KiB
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
@extends('layouts.admin')
@section('title', trans('general.title.edit', ['type' => trans_choice('general.companies', 1)]))
@section('content')
2019-11-16 10:21:14 +03:00
<div class="card">
{!! Form::model($company, [
'id' => 'company',
'method' => 'PATCH',
'route' => ['companies.update', $company->id],
'@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
2020-02-27 11:32:44 +03:00
{{ Form::selectGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', $currencies, $company->currency ?? 'USD') }}
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(), $company->locale ?? config('app.locale', 'en-GB'), []) }}
2017-09-14 22:21:00 +03:00
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], $company->tax_number) }}
{{ Form::textGroup('phone', trans('settings.company.phone'), 'phone', [], $company->phone) }}
2019-11-16 10:21:14 +03:00
{{ Form::textareaGroup('address', trans('general.address')) }}
2017-09-14 22:21:00 +03:00
2020-12-30 23:17:49 +03:00
{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
2017-10-07 23:52:34 +03:00
2019-12-14 10:03:41 +03:00
{{ Form::radioGroup('enabled', trans('general.enabled'), $company->enabled) }}
2019-11-16 10:21:14 +03:00
</div>
2017-09-14 22:21:00 +03:00
</div>
2020-10-14 17:07:59 +03:00
@can('update-common-companies')
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">
{{ Form::saveButtons('companies.index') }}
2019-11-16 10:21:14 +03:00
</div>
</div>
2020-10-14 17:07:59 +03:00
@endcan
2019-11-16 10:21:14 +03:00
{!! Form::close() !!}
</div>
2017-09-14 22:21:00 +03:00
@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