<?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';

$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
{
include 'dbc.php';


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"];
$sql9="Select * from customer where user_id='$userid' order by bname";
$result9 = $conn->query($sql9);
$sql91="Select * from customer where user_id='$userid' order by bname";
$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 -->

  
    <!-- Left Panel -->

    <!-- Right Panel -->

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

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

             <?php include("includes/sale_menu.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 and Sale Tax Invoice </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" 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>Daily Sale Tax Invoice </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Saletaxinvoice_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-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_Saleinvoice_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-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-4">
												<div class="card">
                            <div class="card-header"><strong>Daily Sale Tax </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Saletax_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-4">
												<div class="card">
                            <div class="card-header"><strong>Customer Sale Details </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Collection_Detail_Report_Customer.php" method="post" enctype="multipart/form-data" class="form-group">
							<div class="col-12 col-md-12">
                                                                        <select name="ven_name" id="ven_name" class="form-control">
                                                                            <?php
  while($user_data9=$result9->fetch_assoc())
  {
  ?>
              <option value="<? echo $user_data9['bname']; ?>"><? echo $user_data9["bname"]; ?></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" 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>Daily Sale Return  </strong><small> Details Report</small></div>
                            <div class="card-body card-block">
							<form action="Daily_Qoute_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>
            </div><!-- .animated -->
        </div> <!-- .content -->
    </div><!-- /#right-panel -->

    <!-- Right Panel -->

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

</body>

</html>
<?php
}
}
?>