<?php
session_start();
if($_SESSION["username"]=="")
{
 	echo "You are not Logged in Please <a href='index.html'>Sign in </a> First ";
}
else
{
include 'dbc.php';

$userid=$_SESSION["userid"];
include 'dbc.php';

$username=$_SESSION["username"];
$current_file_name = basename($_SERVER['PHP_SELF']);
$sql = "SELECT * FROM adduser where feedisc2 = '$current_file_name' and uname = '$username'";
$result=$conn->query($sql);
$row = $result->fetch_assoc();
$status=$row['feedisc3'] ;

if ($status =="")
{
echo "You are not Authorized This Page <a href='maindashboard.php'>Back </a> ";
}
else
{
date_default_timezone_set("Asia/Karachi");
$today=date("Y-m-d");
$month = date("m",strtotime($today));
		$year = date("Y",strtotime($today));
		 $month_name = date("F", mktime(0, 0, 0, $month, 10));
		 $my=$month_name . " " . $year;
$userid=$_SESSION["userid"];
include 'dbc.php';
$sql3="Select * from addclass where user_id='$userid'";
$result1 = $conn->query($sql3);
$sql4="Select * from addclass where user_id='$userid'";
$result4 = $conn->query($sql4);
$sql6="Select * from chartofaccounts where user_id='$userid'";
$result6 = $conn->query($sql6);

$sql10="Select * from chartofaccounts where user_id='$userid'";
$result10 = $conn->query($sql10);
	 $sql31="SELECT * FROM chartofaccounts where acc_type='Cash' or acc_type='Bank' and user_id='$userid'";
$result11 = $conn->query($sql31);

$sql31="Select * from addclass where user_id='$userid'";
$result31 = $conn->query($sql31);
$sql91="Select * from addsection where user_id='$userid'";
$result91 = $conn->query($sql91);
$sql9="Select * from addsection where user_id='$userid'";
$result9 = $conn->query($sql9);
$sql11 = "SELECT * FROM addclass where user_id = '$userid'";
$result11=$conn->query($sql11);
$row1 = $result11->fetch_assoc();
$feedisc1=$row1['feedisc1'] ;
$feedisc2=$row1['feedisc2'] ;
$feedisc3=$row1['feedisc3'] ;
$feedisc4=$row1['feedisc4'] ;
$feedisc5=$row1['feedisc5'] ;
$feedisc6=$row1['feedisc6'] ;
$sql91="Select * from items where user_id='$userid' order by item_name";
$result91 = $conn->query($sql91);
?>


<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

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

<body>


    <!-- Left Panel -->

    <?php include("includes/menu.php") ?><!-- /#left-panel -->

    <!-- Left Panel -->

    <!-- Right Panel -->

    <div id="right-panel" class="right-panel">

        <!-- Header-->
        <header id="header" class="header">

             <?php include("includes/headermenu.php") ?>

        </header><!-- /header -->
        <!-- Header-->

        <div class="breadcrumbs">
            <div class="col-sm-6">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><? echo "" . $_SESSION["userid"]; ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li class="active"><? echo "" . $_SESSION["username"]; ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <div class="content mt-3">
            <div class="animated fadeIn">
                <div class="row">
				<!--<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Sale invoice </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report1.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="text" id="from_date" name="from_date" class="form-control" value="<? echo $today ?>"></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="text" id="to_date" name="to_date" class="form-control" value="<? echo $today ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">											
												<div class="card">
                            <div class="card-header"><strong>Stock Report  </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Stock_Report_lessthen.php" method="post" enctype="multipart/form-data" class="form-group">
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>
--><div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Sale invoice </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report1.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="text" id="from_date" name="from_date" class="form-control" value="<? echo $today ?>"></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="text" id="to_date" name="to_date" class="form-control" value="<? echo $today ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											<div class="col-lg-4">											
												<div class="card">
                            <div class="card-header"><strong>Stock Report  </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Stock_Report_lessthen.php" method="post" enctype="multipart/form-data" class="form-group">
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>
												
												<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Product Sale </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Inventory_Ledger_Report_All.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" value="<? echo $today ?>"></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control" value="<? echo $today ?>"></div>
							
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Inventory Ledger </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Inventory_Ledger_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="col-12 col-md-12">
                                                                        <select name="item_name" id="item_name" class="form-control">
                                                                            <?php
  while($user_data91=$result91->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data91['item_name']; ?>"><? echo $user_data91["item_name"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
							
							
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Product Sale History  </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Product_History_Detail_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" value="<? echo $today ?>"></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control" value="<? echo $today ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
												<div class="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Total Receivable Both Active/InActive all Heads</strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Total_Receivable_Details_all.php" method="post" enctype="multipart/form-data" class="form-group">
							<input type="checkbox" name="mfee" value="Tution Fee"> Tution Fee Bal
								<input type="checkbox" name="feedisc1" value="<? echo $feedisc1 ?>"> <? echo $feedisc1 ?>
<input type="checkbox" name="feedisc2" value="<? echo $feedisc2 ?>"> <? echo $feedisc2 ?>
<input type="checkbox" name="feedisc3" value="<? echo $feedisc3 ?>"> <? echo $feedisc3 ?>
<input type="checkbox" name="feedisc4" value="<? echo $feedisc4 ?>"> <? echo $feedisc4 ?>
<input type="checkbox" name="feedisc5" value="<? echo $feedisc5 ?>"> <? echo $feedisc5 ?>
<input type="checkbox" name="feedisc6" value="<? echo $feedisc6 ?>"> <? echo $feedisc6 ?>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>
												<!--<div class="col-lg-4">
                        <div class="card">
                            <div class="card-header"><strong>Total Receivable Both Active/InActive fee and annual bal</strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Total_Receivable_Details_all1.php" method="post" enctype="multipart/form-data" class="form-group">
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>-->
	<div class="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Total Receivable  Active</strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Total_Receivable_Active_Details.php" method="post" enctype="multipart/form-data" class="form-group">
							<input type="checkbox" name="mfee" value="Tution Fee"> Tution Fee Bal
								<input type="checkbox" name="feedisc1" value="<? echo $feedisc1 ?>"> <? echo $feedisc1 ?>
<input type="checkbox" name="feedisc2" value="<? echo $feedisc2 ?>"> <? echo $feedisc2 ?>
<input type="checkbox" name="feedisc3" value="<? echo $feedisc3 ?>"> <? echo $feedisc3 ?>
<input type="checkbox" name="feedisc4" value="<? echo $feedisc4 ?>"> <? echo $feedisc4 ?>
<input type="checkbox" name="feedisc5" value="<? echo $feedisc5 ?>"> <? echo $feedisc5 ?>
<input type="checkbox" name="feedisc6" value="<? echo $feedisc6 ?>"> <? echo $feedisc6 ?>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>
	<div class="col-lg-12">
                        <div class="card">
                            <div class="card-header"><strong>Total Receivable InActive</strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Total_Receivable_InActive_Details.php" method="post" enctype="multipart/form-data" class="form-group">
							<input type="checkbox" name="mfee" value="Tution Fee"> Tution Fee Bal
								<input type="checkbox" name="feedisc1" value="<? echo $feedisc1 ?>"> <? echo $feedisc1 ?>
<input type="checkbox" name="feedisc2" value="<? echo $feedisc2 ?>"> <? echo $feedisc2 ?>
<input type="checkbox" name="feedisc3" value="<? echo $feedisc3 ?>"> <? echo $feedisc3 ?>
<input type="checkbox" name="feedisc4" value="<? echo $feedisc4 ?>"> <? echo $feedisc4 ?>
<input type="checkbox" name="feedisc5" value="<? echo $feedisc5 ?>"> <? echo $feedisc5 ?>
<input type="checkbox" name="feedisc6" value="<? echo $feedisc6 ?>"> <? echo $feedisc6 ?>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>
											
											
					
					
					<div class="col-lg-4">
                        <div class="card">
                            <div class="card-header"><strong>Total Receivable </strong><small> Summary Report</small></div>
                            <div class="card-body card-block">
							<form action="Total_Receivable_Summary.php" method="post" enctype="multipart/form-data" class="form-group">
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												</div>
	
	
											
											
						
										
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Monthly Receivable Statement </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Monthly_Finance_Report_Details.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" placeholder="Month Name" class="form-control" value="<? echo $my ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Monthly Breakup Statement (Fee + Received + Balance ) Amount </strong><small>  Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Monthly_Finance_Report_Details1.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" placeholder="Month Name" class="form-control" value="<? echo $my ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Monthly Revenue Statement (Fee + Received + Balance ) Amount </strong><small> Summary Report</small></div>
                            <div class="card-body card-block">
							<form action="Monthly_Finance_Report_Summary.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" placeholder="Month Name" class="form-control" value="<? echo $my ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											
											
			
											
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Monthly Receivable Statement by Class </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Monthly_Finance_Class_Report_Details.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Class</label></div>
                                                                    <div class="col-12 col-md-8">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data3=$result1->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data3['cname']; ?>"><? echo $user_data3["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" placeholder="Month Name" class="form-control" value="<? echo $my ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Fee Collection </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
					
					<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Fee Collection Account Heads all(G/L)</strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report2.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">G/L Account</label></div>
                                                                    <div class="col-12 col-md-4">
                                                                        <select name="acc_name_dr" id="acc_name_dr" class="form-control">
                                                                            <?php
  while($user_data31=$result11->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data31['acc_name']; ?>"><? echo $user_data31["acc_name"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Discount </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report_dis.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Monthly fee Collection Statement </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Monthly_Collection_Details_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">Month Name</label><input type="text" id="month" name="month" placeholder="Month Name" class="form-control" value="<? echo $my ?>"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Class Wise Daily Fee Collection </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report_Class.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="col-12 col-md-12">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data4=$result4->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data4['cname']; ?>"><? echo $user_data4["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control"></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Expense </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Exp_Detail_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control" ></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											
											
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Accounts Ledger </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Accounts_Ledger_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="col-12 col-md-12">
                                                                        <select name="acc_name" id="acc_name" class="form-control">
                                                                            <?php
  while($user_data6=$result6->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data6['acc_name']; ?>"><? echo $user_data6["acc_name"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control" ></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Accounts Ledger All Date</strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Accounts_Ledger_Report_All.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="col-12 col-md-12">
                                                                        <select name="acc_name" id="acc_name" class="form-control">
                                                                            <?php
  while($user_data10=$result10->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data10['acc_name']; ?>"><? echo $user_data10["acc_name"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
							
							
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Income Statement </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Income_Statement_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control" ></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
					<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Students Applications </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Application_Detail_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="form-group"><label for="feedisc1" class=" form-control-label">From Date</label><input type="date" id="from_date" name="from_date" class="form-control" ></div>
							<div class="form-group"><label for="feedisc1" class=" form-control-label">To Date</label><input type="date" id="to_date" name="to_date" class="form-control" ></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Students Applications </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Student_Application_Detail_Report.php" method="post" enctype="multipart/form-data" class="form-group">
							
							<div class="form-group"><label for="feedisc1" class=" form-control-label">Roll No</label><input type="text" id="std_rollno" name="std_rollno" class="form-control" ></div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											<div class="col-lg-4">
												<div class="card">
                            <div class="card-header"><strong>Total Receivable By Class Section </strong><small> Report</small></div>
                            <div class="card-body card-block">
							<form action="Total_Receivable_Details_Class_Sec.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Class</label></div>
                                                                    <div class="col-12 col-md-8">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                            <?php
  while($user_data31=$result31->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data31['cname']; ?>"><? echo $user_data31["cname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
							<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Class Section</label></div>
                                                                    <div class="col-12 col-md-4">
                                                                        <select name="cls_sec" id="cls_sec" class="form-control">
                                                                            <?php
  while($user_data91=$result91->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data91['secname']; ?>"><? echo $user_data91["secname"]; ?></option>
              <?php
  }
  ?>
                                                                        </select>
                                                                    </div>
                                                                </div>
                                                    </div>
													<div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i>Show Report
                                                        </button>
                                                       
                                                    </div>
													
													</form>
                                                </div>
												
                                            </div>
											
                    <div class="col-md-14">
                        <div class="card">
                            <div class="card-header">
                                <strong class="card-title"> Class wise  Reports</strong>
                            </div>
                            <div class="card-body">
							<?php

include 'dbc.php';


$userid=$_SESSION["userid"];
$sql = "SELECT * FROM addclass where user_id='$userid'";
$result=$conn->query($sql);
?>
                                <table id="bootstrap-data-table-export" class="table table-striped table-bordered">
                                    <thead>
									<?php
                                       echo "<tr>";
echo "<th > Class Name </th>";



echo "</tr>";
?>
                                    </thead>
									
                                    <tbody>
									<?php
                                       while($row = $result->fetch_assoc())
 
  {
  $cname = $row['cname'];	
   echo "<tr>";
echo "<td>" .$row['cname'] . "</td>";



		 ?>
		 
		  
		 <?php
		  echo"<th> <a href ='Total_Receivable_Details_Class.php?cname=$cname'>"?><button type="button" class="btn btn-primary">  Total Receivable Report</button><?php "</a>";
		  echo"<th> <a href ='Student_Ledger.php?cname=$cname'>"?><button type="button" class="btn btn-primary">  Student Ledger Report</button><?php "</a>";  
		   
		  
	
  echo "</tr>";


  }
  ?>
                                       
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>


                </div>
            </div><!-- .animated -->
        </div> <!-- .content -->
    </div><!-- /#right-panel -->

    <!-- Right Panel -->

   <?php include("includes/footermenu.php") ?>

</body>

</html>
<?php
}
}
?>