Subversion Repositories SmartDukaan

Rev

Rev 34238 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>Approvals Payment Pending</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_document_alt"></i>Payment Pending</li>
            </ol>
        </div>
    </div>

    #if(!$oldApproved.isEmpty())
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$oldMonth Refferals</h4>
        #foreach($oApproved in $oldApproved.keySet())
            <div class="row">

                <div class="col-lg-2 form-group">
                    <input placeholder="month" id="oldMonth" name="oldMonth" type="text" value="$oldMonth"
                           class="form-control input-sm" readonly>
                </div>

                <div class="col-lg-2 form-group">
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
                           value="$oApproved" class="form-control input-sm" readonly>
                </div>
                <div class="col-lg-2 form-group">
                    <input placeholder="Count" id="oldMonthCount" name="oldMonthCount" type="text"
                           value="$oldApproved.get($oApproved)" class="form-control input-sm" readonly>
                </div>
                #set($mul=0)
                #if($oldApproved.get($oApproved)==1)
                    #set($mul =3000)
                #elseif($oldApproved.get($oApproved)==2)
                    #set($mul =$oldApproved.get($oApproved) * 4000)
                #elseif($oldApproved.get($oApproved)>=3)
                    #set($mul =$oldApproved.get($oApproved) * 5000)
                #end
                <div class="col-lg-2 form-group">
                    <input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text"
                           value="$mul" class="form-control input-sm" readonly>
                </div>

                <div class="col-lg-2 form-group">
                    <button class="btn btn-primary"
                            onclick="oldRefferalAmountSubmit(`$oApproved`,$oldApproved.get($oApproved),`$oldMonth`)"
                            type="button">Add Money to Wallet
                    </button>
                </div>

            </div>
        #end
        <div id="refferal-table">
            <div class="row">
                <div class="col-lg-12">
                    <table class="table table-striped table-advance table-hover">
                        <tbody>
                        <tr>
                            <th>Referee Id</th>
                            <th>Referee Name</th>
                            <th>Referee Email</th>
                            <th>Business Name</th>
                            <th>Referee Mobile</th>
                            <th>Referal Name</th>
                            <th>Mobile</th>
                            <th>city</th>
                            <th>state</th>
                            <th>Created On</th>
                            <th>Updated On</th>
                            <th>Approved Timestamp</th>

                        </tr>
                            #if(!$oldPreMonthapproved.isEmpty())
                                #foreach( $oldPreMonthapprovedModel in $oldPreMonthapproved )
                                <tr class="refferal-table" data="$oldPreMonthapprovedModel.getId()">
                                    <td>$oldPreMonthapprovedModel.getId()</td>
                                    <td>$oldPreMonthapprovedModel.getRefereeName()</td>
                                    <td>$oldPreMonthapprovedModel.getRefereeEmail()</td>
                                    #if($customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName())
                                        <td>$customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
                                    #else
                                        <td></td>
                                    #end
                                    <td>$oldPreMonthapprovedModel.getRefereeMobile()</td>
                                    <td>$oldPreMonthapprovedModel.getFirstName() $oldPreMonthapprovedModel.getLastName()</td>
                                    <td>$oldPreMonthapprovedModel.getMobile()</td>
                                    <td>$oldPreMonthapprovedModel.getCity()</td>
                                    <td>$oldPreMonthapprovedModel.getState()</td>
                                    <td>$oldPreMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                    <td>$oldPreMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                    #if($oldPreMonthapprovedModel.getApprovedTimestamp())
                                        <td>$oldPreMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                    #else
                                        <td></td>
                                    #end

                                </tr>
                                #end
                            #else
                            <tr>
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                            </tr>
                            #end
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    #end

    #if(!$preApproved.isEmpty())
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$previousMonth Refferals</h4>
        #foreach($pApproved in $preApproved.keySet())
            <div class="row">

                <div class="col-lg-2 form-group">
                    <input placeholder="month" id="previousMonth" name="previousMonth" type="text"
                           value="$previousMonth" class="form-control input-sm" readonly>
                </div>

                <div class="col-lg-2 form-group">
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
                           value="$pApproved" class="form-control input-sm" readonly>
                </div>

                <div class="col-lg-2 form-group">
                    <input placeholder="Count" id="count" name="count" type="text" value="$preApproved.get($pApproved)"
                           class="form-control input-sm" readonly>
                </div>
                #set($mul=0)
                #if($preApproved.get($pApproved)==1)
                    #set($mul =3000)
                #elseif($preApproved.get($pApproved)==2)
                    #set($mul =$preApproved.get($pApproved) * 4000)
                #elseif($preApproved.get($pApproved)>=3)
                    #set($mul =$preApproved.get($pApproved) * 5000)
                #end
                <div class="col-lg-2 form-group">
                    <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul"
                           class="form-control input-sm" readonly>
                </div>


                <div class="col-lg-2 form-group">
                    <button class="btn btn-primary" type="button"
                            onclick="refferalAmountSubmit(`$pApproved`,$preApproved.get($pApproved),`$previousMonth`)">
                        Add Money to wallet
                    </button>
                </div>

            </div>
        #end
        <div id="refferal-table">
            <div class="row">
                <div class="col-lg-12">
                    <table class="table table-striped table-advance table-hover">
                        <tbody>
                        <tr>
                            <th>Referee Id</th>
                            <th>Referee Name</th>
                            <th>Referee Email</th>
                            <th>Business Name</th>
                            <th>Referee Mobile</th>
                            <th>Referal Name</th>
                            <th>Mobile</th>
                            <th>city</th>
                            <th>state</th>
                            <th>Created On</th>
                            <th>Updated On</th>
                            <th>Approved Timestamp</th>

                        </tr>
                            #if(!$preCurrMonthapproved.isEmpty())
                                #foreach( $preCurrMonthapprovedModel in $preCurrMonthapproved )
                                <tr class="refferal-table" data="$preCurrMonthapprovedModel.getId()">
                                    <td>$preCurrMonthapprovedModel.getId()</td>
                                    <td>$preCurrMonthapprovedModel.getRefereeName()</td>
                                    <td>$preCurrMonthapprovedModel.getRefereeEmail()</td>
                                    #if($customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName())
                                        <td>$customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
                                    #else
                                        <td></td>
                                    #end
                                    <td>$preCurrMonthapprovedModel.getRefereeMobile()</td>
                                    <td>$preCurrMonthapprovedModel.getFirstName() $preCurrMonthapprovedModel.getLastName()</td>
                                    <td>$preCurrMonthapprovedModel.getMobile()</td>
                                    <td>$preCurrMonthapprovedModel.getCity()</td>
                                    <td>$preCurrMonthapprovedModel.getState()</td>
                                    <td>$preCurrMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                    <td>$preCurrMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                    #if($preCurrMonthapprovedModel.getApprovedTimestamp())
                                        <td>$preCurrMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                    #else
                                        <td></td>
                                    #end

                                </tr>
                                #end
                            #else
                            <tr>
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                            </tr>
                            #end
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    #end


    #if($pastApproved)
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;"> Refferals</h4>
        #foreach($pstApproved in $pastApproved.keySet())
            <div class="row">

                <div class="col-lg-2 form-group">
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
                           value="$pstApproved" class="form-control input-sm" readonly>
                </div>

                <div class="col-lg-2 form-group">
                    <input placeholder="Count" id="count" name="count" type="text"
                           value="$pastApproved.get($pstApproved)" class="form-control input-sm" readonly>
                </div>

                #set($mul=0)
                #if($pastApproved.get($pstApproved)==1)
                    #set($mul =3000)
                #elseif($pastApproved.get($pstApproved)==2)
                    #set($mul =$pastApproved.get($pstApproved) * 4000)
                #elseif($pastApproved.get($pstApproved)>=3)
                    #set($mul =$pastApproved.get($pstApproved) * 5000)
                #end
                <div class="col-lg-2 form-group">
                    <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul"
                           class="form-control input-sm" readonly>
                </div>


                <div class="col-lg-2 form-group">
                    <button class="btn btn-primary" type="button"
                            onclick="refferalAmountSubmit(`$pstApproved`,$pastApproved.get($pstApproved),`$previousMonth`)">
                        Add Money to wallet
                    </button>
                </div>

            </div>
        #end
        <div id="refferal-table">
            <div class="row">
                <div class="col-lg-12">
                    <table class="table table-striped table-advance table-hover">
                        <tbody>
                        <tr>
                            <th>Referee Id</th>
                            <th>Referee Name</th>
                            <th>Referee Email</th>
                            <th>Business Name</th>
                            <th>Referee Mobile</th>
                            <th>Referal Name</th>
                            <th>Mobile</th>
                            <th>city</th>
                            <th>state</th>
                            <th>Created On</th>
                            <th>Updated On</th>
                            <th>Approved Timestamp</th>

                        </tr>
                            #if(!$pastrefferal.isEmpty())
                                #foreach( $pastrefferalModel in $pastrefferal )
                                <tr class="refferal-table" data="$pastrefferalModel.getId()">
                                    <td>$pastrefferalModel.getId()</td>
                                    <td>$pastrefferalModel.getRefereeName()</td>
                                    <td>$pastrefferalModel.getRefereeEmail()</td>
                                    #if($customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName())
                                        <td>$customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName()</td>
                                    #else
                                        <td></td>
                                    #end
                                    <td>$pastrefferalModel.getRefereeMobile()</td>
                                    <td>$pastrefferalModel.getFirstName() $pastrefferalModel.getLastName()</td>
                                    <td>$pastrefferalModel.getMobile()</td>
                                    <td>$pastrefferalModel.getCity()</td>
                                    <td>$pastrefferalModel.getState()</td>
                                    <td>$pastrefferalModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                    <td>$pastrefferalModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                    #if($pastrefferalModel.getApprovedTimestamp())
                                        <td>$pastrefferalModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                    #else
                                        <td></td>
                                    #end

                                </tr>
                                #end
                            #else
                            <tr>
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                            </tr>
                            #end
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    #end


</section>