<div class="modal fade" id="show_comment_reminder" role="dialog" style="z-index: 1051;">
    <div class="modal-dialog modal-sm" style="max-width: 418px;padding-top: 150px;">
        <div class="modal-content">
            <div class="modal-body" style="padding: 17px;">
                <div class="col-md-12 row">
                    <div class="col-md-6">
                        <label>Date of Reminder</label>
                        <input name="date_reminder" id="fl_date_time_p" class="form-control" placeholder="Date of Reminder"/>
                    </div>
                    @if(isset($advisors))
                        <div class="col-md-6">
                            <label>Whom to remind</label>
                            <select name="whom_to" class="form-control selectpicker" multiple data-live-search="true">
                                @foreach($advisors as $advisor)
                                    <option value="{!! $advisor->id !!}">{!! $advisor->name !!}</option>
                                @endforeach
                            </select>
                        </div>
                    @endif
                </div>
                <div style="padding-top: 14px;padding-left: 15px;">
                    {{-- <label>WhatsApp</label>
                    <input type="checkbox" name="whatsapp"/>
                    <label>SMS</label>
                    <input type="checkbox" name="sms"/> --}}
                    <label>Email</label>
                    <input type="checkbox" name="email"/>
                    <label>Slack</label>
                    <input type="checkbox" name="slack"/>
                </div>
            </div>
            <div class="modal-footer" style="margin: 0;padding: 5px;">
                <button type="button" class="btn btn-default save_reminder_no" data-dismiss="modal">No</button>
                <button type="button" class="btn btn-primary save_reminder">Set Reminder</button>
            </div>
        </div>
    </div>
</div>
@if(isset($upa))
<div class="modal fade" id="approved_pincode_modal" role="dialog">
    <div class="modal-dialog">

        <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title" style="position: absolute">PinCode Approval </h4>
            </div>
            <div class="modal-body">
                <p>Are you sure you want to approve the pincode(s) for the following address ?</p>
                <table class="table">
                    <tr>
                        <th>Address Type</th>
                        <th>Address</th>
                    </tr>
                        @foreach($upa as $a)
                        <tr>
                            <td>{!! $a['address_type'] !!}</td>
                            <td>{!! $a['address'] !!}</td>
                        </tr>
                        @endforeach
                </table>
                <div>
                    <select class="form-control selectpicker" name="approval_reason_pincode" multiple data-max-options="10">
                        <option>Select Reason</option>
                        <option value="Good Credit Score">Good Credit Score</option>
                        <option value="Good Income">Good Income</option>
                        <option value="Good Work Stability">Good Work Stability</option>
                        <option value="FLDG/Liability Merchant">FLDG/Liability Merchant</option>
                        <option value="Job Offer Letter Received">Job Offer Letter Received</option>
                        <option value="Guarantor Based Approval">Guarantor Based Approval</option>
                        <option value="Other">Other</option>
                    </select>
                </div>
                <div class="other-approval-reason-pincode" style="display: none;margin-top: 8px;">
                    <textarea placeholder="Why are you approving this address?" class="form-control" name="comments" id="reason_to_approve" style="font-family:sans-serif;font-size:1.2em;"></textarea>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" id="save-manager-data">Yes</button>

                <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
            </div>
        </div>

    </div>
</div>
@endif
@if(isset($processingFeeData) && $processingFeeData)
    <div class="modal fade" id="viewProcessingFee" tabindex="-1" role="dialog" aria-labelledby="viewProcessingFeeLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="viewProcessingFeeLabel">Processing Fee Details</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <table class="table">
                        <tr>
                            <th>Amount</th>
                            <th>Mode</th>
                            <th>Tran ID</th>
                            <th>Tran Date</th>
                            <th>Paid by</th>
                            <th>Status</th>
                            <th>Acknowledgment Receipt</th>
                            <th>Wallet Name</th>
                            <th>Payment For</th>
                        </tr>
                        @foreach($processingFeeData as $processingFeeDataItem)
                            <tr>
                                <td style="word-break: break-word;">₹{!!str_replace('.00','',money_format('%!i',$processingFeeDataItem['amount']))!!}</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['mode'] !!}</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['transaction_id'] !!}</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['transaction_date'] !!}</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['paid_by'] !!}</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['transaction_status'] !!}</td>
                                <td style="word-break: break-word;">@if($processingFeeDataItem['acknowledgment_receipt'])<img style="width: 130px;" src="{!! $processingFeeDataItem['acknowledgment_receipt'] !!}"/>@else No Receipt @endif</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['wallet_name'] !!}</td>
                                <td style="word-break: break-word;">{!! $processingFeeDataItem['payment_for'] !!}</td>
                            </tr>
                        @endforeach
                    </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                </div>
            </div>
        </div>
    </div>
@endif