48 lines
1.6 KiB
PHP
Raw Normal View History

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
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-10-07 23:52:34 +03:00
2019-11-16 10:21:14 +03:00
{{ Form::fileGroup('logo', trans('companies.logo')) }}
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">
<div class="row float-right">
{{ Form::saveButtons('common/companies') }}
</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