<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h4 class="modal-title">دیگر اکاؤنٹس </h4>
</div>



<form id="update_otherAccount_form">
    <div class="modal-body">
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="city_name">نام <span class="text-danger">*</span></label>
                    <input type="text" id="name" autofocus class="form-control" value="{{ $otherAccount->name }}"
                           name="name">
                    <span class="text-danger u_error" id="name_error"></span>
                </div>
            </div>

        </div>
        <div class="row">
            <div class="col-md-12">
                <label for="">شناختی کارڈ نمبر</label>
                <input type="text" class="form-control" name="cnic" id="u_cnic" value="{{ $otherAccount->cnic }}"
                       data-inputmask="'mask': '99999-9999999-9'">
                <span class="text-danger u_error" id="u_cnic_error"></span>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <label for="">فون</label>

                <input type="text" class="form-control" name="phone" id="u_phone" value="{{ $otherAccount->mobile }}"
                       data-inputmask="'mask': '9999-9999999'">
                <span class="text-danger u_error" id="u_phone_error"></span>
            </div>
        </div>
        <div class="row mt-2">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="city_name">شہر <span class="text-danger">*</span></label>
                    <select name="city" id="u_city" class="form-control">
                        <option value="">----منتخب شہر---</option>
                        @forelse ($cities as $city)
                            <option value="{{ $city->id }}" {{ $otherAccount->city_id == $city->id ? 'selected' : '' }}>
                                {{ $city->name }}</option>
                        @empty
                            <option value="">No City Available</option>
                        @endforelse
                    </select> <span class="text-danger u_error" id="u_city_error"></span>
                </div>
            </div>

        </div>
    </div>
    <div class="modal-footer">
        @csrf
        <button id="update_btn" class="btn btn-sm btn-info" type="submit">
            Update
        </button>
        <input type="hidden" name="update_id" value="{{ $otherAccount->id }}">
    </div>
</form>
