<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h4 class="modal-title">ملازم کی تبدیلی</h4>
</div>

<form id="update_emp_form">
    <div class="modal-body">
        <div class="row">
            <div class="col-md-4">
                <div class="form-group">
                    <label for="name">نام <span class="text-danger">*</span></label>
                    <input type="text" id="name" autofocus class="form-control" name="name" value="{{ $employee->name }}">
                    <span class="text-danger u_error" id="u_name_error"></span>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label for="cnic">شناختی کارڈ نمبر <span class="text-danger">*</span></label>
                    <input type="text" id="cnic" class="form-control" name="cnic" value="{{ $employee->cnic }}">
                    <span class="text-danger u_error" id="u_cnic_error"></span>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label for="mobile_number">موبائل نمبر: <span class="text-danger">*</span></label>
                    <input type="text" id="mobile_number" class="form-control" name="mobile_number" value="{{ $employee->mobile }}">
                    <span class="text-danger u_error" id="u_mobile_number_error"></span>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label for="salary">تنخواہ: <span class="text-danger">*</span></label>
                    <input type="text" id="salary" class="form-control" name="salary" value="{{ $employee->salary }}">
                    <span class="text-danger u_error" id="u_salary_error"></span>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label for="commission">کمیشن: <span class="text-danger">*</span></label>
                    <input type="text" id="commission" class="form-control" name="commission" value="{{ $employee->commission }}">
                    <span class="text-danger u_error" id="u_commission_error"></span>
                </div>
            </div>

        </div>
    </div>
    <div class="modal-footer">
        @csrf
        <input type="hidden" name="update_id" value="{{ $employee->id }}">
        <button id="update_btn" class="btn btn-sm btn-info" type="submit">
            اپڈیٹ
        </button>
    </div>
</form>
