51 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('layouts.admin')
 | |
| 
 | |
| @section('title', trans('general.title.edit', ['type' => trans_choice('general.companies', 1)]))
 | |
| 
 | |
| @section('content')
 | |
|     <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
 | |
|         ]) !!}
 | |
| 
 | |
|             <div class="card-body">
 | |
|                 <div class="row">
 | |
|                     {{ Form::textGroup('name', trans('general.name'), 'building') }}
 | |
| 
 | |
|                     {{ Form::emailGroup('email', trans('general.email'), 'envelope') }}
 | |
| 
 | |
|                     {{ Form::selectGroup('currency', trans_choice('general.currencies', 1), 'exchange-alt', $currencies, $company->currency) }}
 | |
| 
 | |
|                     {{ Form::textGroup('domain', trans('companies.domain'), 'globe', []) }}
 | |
| 
 | |
|                     {{ Form::textareaGroup('address', trans('general.address')) }}
 | |
| 
 | |
|                     {{ Form::fileGroup('logo', trans('companies.logo')) }}
 | |
| 
 | |
|                     {{ Form::radioGroup('enabled', trans('general.enabled')) }}
 | |
|                 </div>
 | |
|             </div>
 | |
| 
 | |
|             @permission('update-common-companies')
 | |
|                 <div class="card-footer">
 | |
|                     <div class="row float-right">
 | |
|                         {{ Form::saveButtons('common/companies') }}
 | |
|                     </div>
 | |
|                 </div>
 | |
|             @endpermission
 | |
|         {!! Form::close() !!}
 | |
|     </div>
 | |
| @endsection
 | |
| 
 | |
| @push('scripts_start')
 | |
|     <script src="{{ asset('public/js/common/companies.js?v=' . version('short')) }}"></script>
 | |
| @endpush
 |