<?php

//echo $entry_mode = get_user_mode_of_entry($user_id);

//get current session
 $session = get_current_session($id =1);

 //echo $session;
 ?>
    <div style="height:20px; displat:block;"></div>

    <ul class="breadcrumb">

        <li><a href="dashboard.php?act=payments&qlk=<?php echo md5(8); ?>">Payments</a> <span class="divider"></span> </li>
        <li class="active" >Application fee payments<span class="divider"></span> </li>
    </ul>

<div class="well">

    <!-- in the future version check if the current invoice has expired den show but if nt exired dont show -->
    <?php
  if(!has_paid_applicant_fee($user_id))
  { ?>
      <a href="dashboard.php?act=generate_invoice&for=af&invoice_to=<?php echo md5(get_user_id());?>&qlk=<?php echo md5(8); ?>"  class="pull-right"><img src="images/add_icon.png" data-toggle="tooltip" data-placement="top"  title="Click here to generate invoice to PAY" />   </a> <br/><br/>


<!-- <a href="#"  class="btn btn-danger pull-right" data-toggle="tooltip" data-placement="top"  title="New Application Entry Closed" > Closed  </a> <br/><br/> -->


    <?php
  }// for now its just user id for the payments issues
  else
  {
  ?>
    <a target="_blank" href="create_app_payment_slip.php?qlk=<?php echo md5(8);?>&me=<?php echo $user_id; ?>" class="btn btn-info" data-toggle="tooltip" data-placement="top" title="Click here to Print / Download Payment Receipt"><i class="glyphicon glyphicon-print"> </i> Print / Download Receipt</a>


    <?php

  }
  ?>

     <div style="height:20px; displat:block;"></div>




     <!--First accordion panel container tat accomodates all other payments -->

    <div class="panel panel-success">
        <div class="panel-heading">
            <p class="panel-title">
                <a id="Me" data-toggle="collapse" data-parent="#accordion" href="#collapseMe"> <span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;PAYMENT HISTORY </a>
                 <span class="label label-primary" style="font-size:15px;float:right;"></span>
            </p>
        </div>
                <div id="collapseMe" class="panel-collapse collapse in ">
                    <div class="panel-body">
                        <ul class="list-group">


                                 <div class="alert alert-danger in" >
                                         <button class="close" data-dismiss="alert" type="button">
                                            X

                                         </button>
                                            <i class="glyphicon glyphicon-danger-sign"></i>&nbsp;&nbsp;Click on the green-plus-sign above to generate new invoice for APPLICATION FEE payment, but if you have generated an invoice before, check your invoice history to PAY with most recent.

                                            <br/> &nbsp;&nbsp; - <strong>To avoid payment conflict, PLEASE PROCESS ONE PAYMENT PER PERSON at a time </strong>

                                            <br/> &nbsp;&nbsp; - <strong>Kindly note that ALL PAYMENTS can be processed ONLINE / BANK BRANCHES using 'PAY VIA REMITA'. GoodLuck! </strong>
                                    </div>




                                      <div class="col-lg-12 col-xs-6">

                                        <h3 class="help-block">My Invoices <a class="btn btn-danger btn-sm" href="#" data-toggle="modal" data-target="#myModallTLOG"> Re-query Transaction Status</a> </h3>
                                        <p class="help-block">Your invoice history with us </p>


                                        <?php echo view_invoices($user_id, $invoice_type = 0,$invoice_for = 0,  $session); //invoice type = 0 is for application fee ?>

                                    </div><!-- /.col lg 12 -->






                    </ul><!-- end of list group --->
                </div><!-- end o panel body -->
    </div>
    <!--First accordion panel container Ends here -->


    </div>
    <!-- payment history -->




</div><!-- /well -->


<div class="col-md-12">

       <br/><br/><br/>

        <hr>

       </div>


        <div class="col-md-12">
              <div class="col-sm-6  help-block">



<!--                     <img src="images/secured pay opt.png" class="img-responsive" />
-->

                     <img src="images/remita-payment-logo-horizonal-opt.png" class="img-responsive" />

                  </div>

                <div class="col-sm-6  help-block">
                    <h4>For Support, Email or Call : </h4>
                    <h5><span class="glyphicon glyphicon-envelope"></span> eportals@coeminna-edu.ng </h5>
                     <h5><span class="glyphicon glyphicon-phone"></span> +234- 08142411717 </h5>


                     <img src="images/support.png" class="pull-right" />

                  </div>
         </div>
