<div class="modal-header">
    <h5 class="modal-title"> تعديل {{$user->name}} </h5>
    <button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
    <form class="userEditForm" data-id="{{$user->id}}" enctype="multipart/form-data">
        @csrf
        <div class="row">
            <x-input-field label="{{ __('dash.Name') }}" name="name" value="{{ old('name', $user->name ) }}" required="true"
                maxLength="250" />
            <x-input-field label="{{ __('dash.phone') }}" name="phone" value="{{ old('phone', $user->phone ) }}"
                maxLength="11" type="number" />
                <x-input-field label="{{ __('dash.Email') }}" name="email" value="{{ old('email', $user->email) }}" required="true"
                maxLength="250" type="email" />
        </div>


        <div class="row">
            <div class="col-12">
                <button class="btn btn-primary">{{ __('dash.Save') }}</button>
            </div>
        </div>
    </form>
</div>
