<div class="modal fade" id="topUpMerchantModal" tabindex="-1" role="dialog"  aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h4 class="modal-title titleHead" ></h4>
                <small class="font-bold">Merchant Top Up</small>
            </div>
            <div class="modal-body">
                <div class="alert alert-danger hidden" id="topupError"></div>
                <div class="alert alert-success hidden" id="topupSuccess"></div>
                    <form action="{{ url('organisation/topup') }}" method="POST" class="form-horizontal" id="dealerTopForm">
                        {{csrf_field()}}
                        <div class="col-md-12" style="padding-bottom: 10px;">
                            @include('commons.notifications')
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">Select Merchant</label>
                            <div class="col-md-7">
                                <!-- <input type="text" class="form-control" name="phone_number" placeholder="phone number" required> -->
                                <select required class="form-control" name="merchant" id="merchant" placeholder="Merchant" >
                                    <option>-- Select Account --</option>
                                    <?php foreach ($merchants_list as $row): ?>
                                        <option value="{{ $row->id }}">{{ $row->fullname }} ({{ $row->phone }}) </option>      
                                    <?php endforeach ?>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">Amount (MWK)</label>
                            <div class="col-md-7">
                                <input type="number"  name="amount" class="form-control" id="amount" placeholder="Top Up Amount" required>
                            </div>
                        </div>
                        <div class="form-group hidden" id="otpDivArea">
                            <label class="col-md-3 control-label">OTP</label>
                            <div class="col-md-7">
                                <input type="number"  name="otp" class="form-control" id="otp" placeholder="One Time Password(OTP)" required>
                            </div>
                        </div>
                
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-12 ">
                                <button class="btn btn-success btn-block btn-lg" id="otpButton" type="submit"><i class="fa fa-send"></i> Submit</button>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12 ">
                                <button class="btn btn-info btn-block btn-lg hidden" id="topFormBtn" type="submit"><i class="fa fa-money"></i> Top Up Merchant</button>
                            </div>
                        </div>
                    </form>
            </div>
            
        </div>
    </div>
</div>