<?php

session_name('mini_admin_session');

session_start();

error_reporting(0);

include('includes/dbconnection.php');
require_once 'includes/session_term_helper.php';
$stResult = resolveCurrentSessionTerm($con);
$currentSessionName = $stResult['session_name'];
$currentTermName    = $stResult['term_name'];


if (strlen($_SESSION['sid']==0)) {

header('location:logoutmini.php');

} 

?>

<!DOCTYPE html>

<html>

<?php @include("includes/head.php"); ?>

<body class="hold-transition sidebar-mini layout-fixed">

    <div class="wrapper">

        <!-- Navbar -->

        <?php @include("includes/header2.php"); ?>

        <!-- Main Sidebar Container -->

        <?php @include("includes/sidebar2.php"); ?>

        <!-- Content Wrapper. Contains page content -->

        <div class="content-wrapper">

            <!-- Content Header (Page header) -->

<section class="content-header premium-header">

    <div class="container-fluid">

        <div class="header-glass-card">

            <div class="row align-items-center">

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

                    <div class="title-section">

                        <div class="icon-box bg-primary-gradient shadow-sm">

                            <i class="fas fa-wallet"></i>

                        </div>

                        <div>

                            <h1 class="premium-title text-primary">

                                Fees Management

                                <span class="premium-subtitle text-secondary">Manage Fees</span>

                            </h1>
                            <div class="mt-1">
                              <?php if ($currentSessionName): ?>
                                <span class="badge badge-primary mr-1">
                                  <i class="fas fa-calendar-alt"></i>
                                  <?= htmlspecialchars($currentSessionName) ?>
                                </span>
                              <?php endif; ?>
                              <?php if ($currentTermName): ?>
                                <span class="badge badge-success">
                                  <i class="fas fa-bookmark"></i>
                                  <?= htmlspecialchars($currentTermName) ?>
                                </span>
                              <?php else: ?>
                                <span class="badge badge-warning">
                                  <i class="fas fa-exclamation-triangle"></i> No active term
                                </span>
                              <?php endif; ?>
                            </div>

                        </div>

                    </div>

                </div>

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

                    <nav aria-label="breadcrumb">

                        <ol class="breadcrumb premium-breadcrumb">

                            <li class="breadcrumb-item"><a href="dashboard.php" class="text-primary">Home</a></li>

                            <li class="breadcrumb-item active" aria-current="page">Add Fees</li>

                        </ol>

                    </nav>

                </div>

            </div>

        </div>

    </div>

</section>             

            <div class="content-header">

                <div class="container-fluid">

                    <div class="row mb-2">

                        <div class="col-sm-6">

                            <h1 class="m-0 text-dark">Payment MAnagement</h1>

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

                        <div class="col-sm-6">

                            <ol class="breadcrumb float-sm-right">

                                <li class="breadcrumb-item"><a href="dashboard1.php">Home</a></li>

                                <li class="breadcrumb-item active">Request Approval</li>

                            </ol>

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

                    </div><!-- /.row -->

                </div><!-- /.container-fluid -->

            </div>

            <!-- /.content-header -->



            <section class="content">

                <div class="container-fluid">

                    <!-- Small boxes (Stat box) -->

                    <div class="row">

                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-primary">

                                <?php $query1=mysqli_query($con,"Select * from payment where pay_for ='Tuition Fees' ");

                                $totalcust=mysqli_num_rows($query1);

                                ?>

                                <div class="inner">

                                   <p><b>Tuition Fees</b></p>

                          <!-- Main content -->

                      <p><b>Registered Student</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-money-bill-wave" aria-hidden="true"></i>

                                </div>

                                <a href="pay_tuition1.php" class="small-box-footer">Pay <i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>

                        <!-- ./col -->

                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-success">

                                <?php $query1=mysqli_query($con,"Select * from payment where pay_for ='Tuition Fees' ");

                                $totalcust=mysqli_num_rows($query1);

                                ?>

                                <div class="inner">

                                   <p><b>TUITION FEES</b></p>

                                    <p><b>New Student</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-money-bill-wave" aria-hidden="true"></i>

                                </div>

                                <a href="pay11.php" class="small-box-footer">Pay <i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>











                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-info">

                                <?php $query2=mysqli_query($con,"Select * from payment where pay_for ='Tuition Fees'");

                                $totalmale=mysqli_num_rows($query2);

                                ?>

                                <div class="inner">

                                   <p><b>ENTRANCE FORM</b></p>



                                    <p><b>Entrance Form</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-address-card" aria-hidden="true"></i>

                                </div>

                                <a href="entrancepay111.php" class="small-box-footer">Pay<i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>

                        <!-- ./col -->

                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-danger">

                                <?php $query3=mysqli_query($con,"Select * from payment where pay_for ='Tuition Fees'");

                                $totalfemale=mysqli_num_rows($query3);

                                ?>

                                <div class="inner">

                                   <p><b>LESSON FEES</b></p>



                                    <p><b>Lesson Fees</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-book" aria-hidden="true"></i>

                                </div>

                                <a href="acec1.php" class="small-box-footer">Pay<i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>

                        <!-- ./col -->

                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-secondary">

                                <?php $query1=mysqli_query($con,"Select * from payment where pay_for ='Tuition Fees' ");

                                $totalcust=mysqli_num_rows($query1);

                                ?>

                                <div class="inner">

                                   <p><b>OTHER SERVICES</b></p>

                                    <p><b>Other Services</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-briefcase" aria-hidden="true"></i>

                                </div>

                                <a href="otherpay1.php" class="small-box-footer">Pay <i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>





                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-warning">

                                <div class="inner">

                                   <p><b>EXTERNAL STUDENT</b></p>

                                    <p><b>Lesson Fees</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-user" aria-hidden="true"></i>

                                </div>

                                <a href="entrancepay11.php" class="small-box-footer">Pay <i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>

                        <div class="col-lg-4 col-6">

                            <!-- small box -->

                            <div class="small-box bg-success">

                                <div class="inner">

                                   <p><b>GRADUATED STUDENTS</b></p>

                                    <p><b>Certificate / Testimonial Fees</b></p>

                                </div>

                                <div class="icon">

                                    

                                    <i class="fas fa-graduation-cap" aria-hidden="true"></i>

                                </div>

                                <a href="entrancepay21.php" class="small-box-footer">Pay <i class="fas fa-arrow-circle-right"></i></a>

                            </div>

                        </div>











                        <!-- ./col -->

                    </div>

                </div>

                <!-- /.row (main row) -->

            </div>

            <!-- /.container-fluid -->

        </section>

    </div>

    <!-- /.content-wrapper -->

    <?php @include("includes/footer.php"); ?>



    <!-- Control Sidebar -->

    <aside class="control-sidebar control-sidebar-dark">

      <!-- Control sidebar content goes here -->

  </aside>

  <!-- /.control-sidebar -->

</div>

<!-- ./wrapper -->



<?php @include("includes/foot.php"); ?>

</body>

</html>

