akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -1,82 +1,73 @@
@extends('layouts.admin')
<x-layouts.admin>
<x-slot name="title">{{ trans('general.title.invite', ['type' => trans_choice('general.users', 1)]) }}</x-slot>
@section('title', trans('general.title.new', ['type' => trans_choice('general.users', 1)]))
<x-slot name="favorite"
title="{{ trans('general.title.invite', ['type' => trans_choice('general.users', 1)]) }}"
icon="people"
route="users.create"
></x-slot>
@section('content')
<div class="card">
{!! Form::open([
'route' => 'users.store',
'id' => 'user',
'@submit.prevent' => 'onSubmit',
'@keydown' => 'form.errors.clear($event.target.name)',
'files' => true,
'role' => 'form',
'class' => 'form-loading-button',
'novalidate' => true
]) !!}
<x-slot name="content">
<x-form.container>
<x-form id="user" route="users.store">
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('auth.personal_information') }}" description="{{ trans('auth.form_description.personal') }}" />
</x-slot>
<div class="card-body">
<div class="row">
{{ Form::textGroup('name', trans('general.name'), 'font') }}
<x-slot name="body">
<div class="sm:col-span-3 grid gap-x-8 gap-y-6 grid-rows-2">
<x-form.group.text name="name" label="{{ trans('general.name') }}" />
{{ Form::emailGroup('email', trans('general.email'), 'envelope') }}
<x-form.group.email name="email" label="{{ trans('general.email') }}" />
</div>
{{ Form::passwordGroup('password', trans('auth.password.current'), 'key') }}
<div class="sm:col-span-3">
@if (setting('default.use_gravatar', '0') == '1')
<x-form.group.text name="fake_picture" label="{{ trans_choice('general.pictures', 1) }}" disabled placeholder="{{ trans('settings.default.use_gravatar') }}" />
@else
<x-form.group.file name="picture" label="{{ trans_choice('general.pictures', 1) }}" not-required />
@endif
</div>
</x-slot>
</x-form.section>
{{ Form::passwordGroup('password_confirmation', trans('auth.password.current_confirm'), 'key') }}
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('general.assign') }}" description="{!! trans('auth.form_description.assign', ['url' => $roles_url]) !!}" />
</x-slot>
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('default.locale')) }}
<x-slot name="body">
@can('read-common-companies')
<x-form.group.select multiple remote name="companies" label="{{ trans_choice('general.companies', 2) }}" :options="$companies" remote_action="{{ route('companies.index') }}" form-group-class="sm:col-span-6" />
@endcan
{{ Form::selectGroup('landing_page', trans('auth.landing_page'), 'sign-in-alt', $landing_pages, 'dashboard') }}
@role('admin|manager')
<x-form.group.select name="roles" label="{{ trans_choice('general.roles', 1) }}" :options="$roles" />
@endrole
</x-slot>
</x-form.section>
@if (setting('default.use_gravatar', '0') == '1')
@stack('picture_input_start')
<div class="form-group col-md-6 disabled">
{!! Form::label('picture', trans_choice('general.pictures', 1), ['class' => 'control-label']) !!}
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fa fa-image"></i>
</span>
</div>
{!! Form::text('fake_picture', null, ['id' => 'fake_picture', 'class' => 'form-control', 'disabled' => 'disabled', 'placeholder' => trans('settings.default.use_gravatar')]) !!}
</div>
</div>
@stack('picture_input_end')
@else
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
@endif
<x-form.section>
<x-slot name="head">
<x-form.section.head title="{{ trans('general.preferences') }}" description="{{ trans('auth.form_description.preferences') }}" />
</x-slot>
@can('read-common-companies')
{{ Form::multiSelectRemoteGroup('companies', trans_choice('general.companies', 2), 'user', $companies, [], ['required' => 'required', 'remote_action' => route('companies.index')]) }}
@endcan
<x-slot name="body">
<x-form.group.select name="landing_page" label="{{ trans('auth.landing_page') }}" :options="$landing_pages" selected="dashboard" />
@can('read-auth-roles')
{{ Form::checkboxGroup('roles', trans_choice('general.roles', 2), $roles, 'display_name') }}
@endcan
<x-form.group.locale />
</x-slot>
</x-form.section>
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }}
</div>
</div>
<x-form.section>
<x-slot name="foot">
<x-form.buttons cancel-route="users.index" />
</x-slot>
</x-form.section>
</x-form>
</x-form.container>
</x-slot>
<div class="card-footer">
<div class="row save-buttons">
{{ Form::saveButtons('users.index') }}
</div>
</div>
{!! Form::close() !!}
</div>
@endsection
@push('stylesheet')
<style type="text/css">
.el-select .el-select__tags > span {
display: flex;
margin-bottom: -75px;
}
</style>
@endpush
@push('scripts_start')
<script src="{{ asset('public/js/auth/users.js?v=' . version('short')) }}"></script>
@endpush
<x-script folder="auth" file="users" />
</x-layouts.admin>