{{ Form::label('name', trans('admins.legend.name'), ['class' => 'col-sm-2 col-form-label required']) }}
{{ Form::text('name', null, ['class' => 'form-control']) }}
{{ Form::label('email', trans('global.legend.email'), ['class' => 'col-sm-2 col-form-label required']) }}
{{ Form::text('email', null, ['class' => 'form-control']) }}
@if (isset($admin))
@else {{ Form::hidden('password_change', 1) }} @endif
{{ Form::label('password', trans('global.legend.password'), ['class' => 'col-sm-2 col-form-label required']) }}
{{ Form::password('password', ['class' => 'form-control', 'disabled' => (isset($admin) && !old('password_change'))]) }}
{{ Form::label('password_confirmation', trans('global.legend.passwordConfirmation'), ['class' => 'col-sm-2 col-form-label required']) }}
{{ Form::password('password_confirmation', ['class' => 'form-control', 'disabled' => (isset($admin) && !old('password_change'))]) }}

{{ Form::label('avatar', trans('global.legend.avatar'), ['class' => 'col-sm-2 col-form-label']) }}
@if (!old('avatar') && isset($admin) && $admin->existsAvatar()) @lang('global.tip.avatar')
@endif @if (!!old() && old('avatar'))
@endif

@lang('global.legend.active')

{{ Form::submit($submitButtonText, ['class' => 'btn btn-primary']) }}
@push('styles') @endpush @push('scripts') @endpush