{{ __('Users.add_user') }}
@if (count($errors) > 0)-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{!! Form::text('name', $data->name, ['class' => 'form-control', 'placeholder' =>
__('Users.name')]) !!}
{!! Form::text('email', $data->email, ['class' => 'form-control', 'placeholder' =>
__('Users.email')]) !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' =>
__('Users.password')]) !!}
{!! Form::select('role_id', $roles, $data->role_id, ['class' => 'form-control',
'placeholder' => __('Users.role_id')]) !!}
@if ($data->hasAdminAccess == 'true'){!!
Form::radio('hasAdminAccess', 'true', true) !!}@else{!! Form::radio('hasAdminAccess',
'true', false) !!}@endif
@if ($data->hasAdminAccess == 'false'){!!
Form::radio('hasAdminAccess', 'false', true) !!}@else{!! Form::radio('hasAdminAccess',
'false', false) !!}@endif
{!! Form::text('f_name', $data->f_name, ['class' => 'form-control', 'placeholder' =>
__('Users.f_name')]) !!}
{!! Form::text('l_name', $data->l_name, ['class' => 'form-control', 'placeholder' =>
__('Users.l_name')]) !!}
{!! Form::text('phone', $data->phone, ['class' => 'form-control', 'placeholder' =>
__('Users.phone')]) !!}
{!! Form::text('address', $data->address, ['class' => 'form-control', 'placeholder' =>
__('Users.address')]) !!}
{!! Form::text('zip_code', $data->zip_code, ['class' => 'form-control', 'placeholder' =>
__('Users.zip_code')]) !!}
@if ($data->type_id == 'Individual'){!! Form::radio('type_id',
'Individual', true) !!}@else {!! Form::radio('type_id', 'Individual', false) !!}
@endif
@if ($data->type_id == 'Company'){!! Form::radio('type_id',
'Company', true) !!} @else {!! Form::radio('type_id', 'Company', false) !!}
{!! Form::file('id_photo_forward', null, ['class' => 'form-control', 'placeholder' =>
__('Users.id_photo_forward')]) !!}
@if ($data->id_photo_forward)
id_photo_forward) }} />
@endif
{!! Form::file('id_photo_back', null, ['class' => 'form-control', 'placeholder' =>
__('Users.id_photo_back')]) !!}
@if ($data->id_photo_forward)
id_photo_back) }} />
@endif
{!! Form::text('company', $data->company, ['class' => 'form-control', 'placeholder' =>
__('Users.company')]) !!}
@if ($data->individual_company == 'true'){!!
Form::radio('individual_company', 'true', true) !!}@else {!!
Form::radio('individual_company', 'true', true) !!} @endif
@if ($data->individual_company == 'false'){!!
Form::radio('individual_company', 'false', true) !!}@else {!!
Form::radio('individual_company', 'true', true) !!} @endif
@if ($data->active == 'true'){!! Form::radio('active', 'true',
true) !!} @else {!! Form::radio('active', 'true', false) !!} @endif
@if ($data->active == 'false'){!! Form::radio('active',
'false', true) !!} @else {!! Form::radio('active', 'true', false) !!}
@if ($data->lang == '1'){!! Form::radio('lang', '1', true) !!}
@else {!! Form::radio('lang', '1', false) !!} @endif
@if ($data->lang == '2'){!! Form::radio('lang', '2', true) !!}
@else {!! Form::radio('lang', '2', false) !!} @endif
{!! Form::text('balance_amount', $data->balance_amount, ['class' => 'form-control',
'placeholder' => __('Users.balance_amount')]) !!}
{!! Form::submit(__('General.Save'), ['class' => 'btn btn-primary form-control']) !!}
{!! Form::Close() !!}