@php $isAddType = $data['type'] == 'Edit'; @endphp
{!! Form::label('first_name', __('labels.user.form.first_name')) !!} * {!! Form::text('first_name', old('first_name', $data['user']->first_name ?? ''), ['class' => 'form-control', 'required']) !!} @if ($errors->has('first_name'))
{{ $errors->first('first_name') }}
@endif
{!! Form::label('last_name', __('labels.user.form.last_name')) !!} * {!! Form::text('last_name', old('last_name', $data['user']->last_name ?? ''), ['class' => 'form-control', 'required']) !!} @if ($errors->has('last_name'))
{{ $errors->first('last_name') }}
@endif
{!! Form::label('email', __('labels.user.form.email')) !!} * {!! Form::email('email', old('last_name', $data['user']->email ?? ''), ['class' => 'form-control', 'required', 'disabled' => $isAddType ? 'disabled' : null]) !!} @if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{!! Form::label('dob', __('labels.user.form.dob')) !!} * {!! Form::text('dob', old('last_name', $data['user']->dob ?? ''), ['class' => 'form-control', 'required']) !!} @if ($errors->has('dob'))
{{ $errors->first('dob') }}
@endif