2024-09-12 12:26:19 -07:00
|
|
|
<!-- partials/forms/edit/name-first.blade.php -->
|
2024-09-25 11:42:16 -07:00
|
|
|
@php
|
|
|
|
$class = $class ?? 'col-md-6';
|
|
|
|
$style = $style ?? '';
|
2024-09-25 15:47:57 -07:00
|
|
|
$required = $required ?? '';
|
2024-09-25 11:42:16 -07:00
|
|
|
@endphp
|
2024-09-12 12:26:19 -07:00
|
|
|
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
|
|
|
<label class="col-md-3 control-label" for="first_name">{{ trans('general.first_name') }}</label>
|
2024-09-28 07:28:06 -07:00
|
|
|
<div class="{{$class ? $class : 'col-md-6'}}" style= "{{$style}}">
|
|
|
|
<input class="form-control" type="text" name="first_name" id="first_name" value="{{ old('first_name', $user->first_name) }}" {{$required ? 'required' : ''}} maxlength="191" {{ (Helper::checkIfRequired($user, 'first_name')) ? ' required' : '' }}/>
|
2024-09-12 12:26:19 -07:00
|
|
|
{!! $errors->first('first_name', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- partials/forms/edit/name-first.blade.php -->
|