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">
|
|
|
|
{{ Form::textGroup('name', trans('general.name'), 'building') }}
|
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, $company->currency) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ Form::textGroup('domain', trans('companies.domain'), 'globe', []) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ Form::textareaGroup('address', trans('general.address')) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ Form::fileGroup('logo', trans('companies.logo')) }}
|
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>
|
|
|
|
|
2018-06-10 02:48:51 +03:00
|
|
|
@permission('update-common-companies')
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-footer">
|
|
|
|
<div class="row float-right">
|
|
|
|
{{ Form::saveButtons('common/companies') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
@endpermission
|
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
|