<?php

include 'load.php';

if(isset($_GET['Accept'])){
	
	$Accept=mysqli_real_escape_string($conn,$_GET['Accept']);
	$status=mysqli_real_escape_string($conn,$_GET['status']);

	mysqli_query($conn,"UPDATE mobileorders SET status='$status' WHERE order_id='$Accept'");
	header("refresh:2;checkinglist.php"); // redirects image view page after 5 seconds
	
}

if(isset($_GET['Decline'])){
	
	$Decline=mysqli_real_escape_string($conn,$_GET['Decline']);
	$status=mysqli_real_escape_string($conn,$_GET['status']);

	mysqli_query($conn,"UPDATE mobileorders SET status='$status' WHERE order_id='$Decline'");
	header("refresh:2;checkinglist.php"); // redirects image view page after 5 seconds
	
}

?>

<!DOCTYPE html>
<html lang="en">
<head>

	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
	<meta name="description" content="POS - Payroll | Pos & Invetory System | Dashboard

">
	<meta name="keywords" content="Payroll | Pos & Invetory System | Dashboard

">
	<meta name="author" content="Payroll | Pos & Invetory System | Dashboard

">
	<meta name="robots" content="noindex, nofollow">

	<title>Checking List | Payroll | Pos & Invetory System | Dashboard

</title>

<?php
require_once 'headercss.php';
?>
</head>
<body>

<div class="main-wrapper">
<?php
require_once 'header.php';
?>

<?php
require_once 'navbar.php';
?>

<div class="page-wrapper">
<div class="content">
<div class="page-header">
<div class="page-title">
<h4>Checking List</h4>
<h6>Manage your Checking</h6>
</div>
<div class="page-btn">
<a href="pos.php" class="btn btn-added"><img src="assets/img/icons/plus.svg" alt="img" class="me-1">Add Sales</a>
</div>
</div>

<div class="card">
<div class="card-body">
<div class="table-top">
<div class="search-set">
<div class="search-path">
<a class="btn btn-filter" id="filter_search">
<img src="assets/img/icons/filter.svg" alt="img">
<span><img src="assets/img/icons/closes.svg" alt="img"></span>
</a>
</div>
<div class="search-input">
<a class="btn btn-searchset"><img src="assets/img/icons/search-white.svg" alt="img"></a>
</div>
</div>
<div class="wordset">
<ul>
<li>
<a href="checkinglist.php?Accept=<?php echo $row2["order_id"]; ?>&status=1" class="btn btn-block btn-outline-info active btn-sm text-white" title="Accept" onClick="JavaScript:return confirm('Are your sure change this Accept ?');"><i class="fa fa-check-circle" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-check-circle" aria-label="fa fa-check-circle"></i> Accept</a>
</li>
<li>
<a href="checkinglist.php?Decline=<?php echo $row2["order_id"]; ?>&status=4" class="btn btn-block btn-outline-warning active btn-sm text-white" title="Decline" onClick="JavaScript:return confirm('Are your sure change this Decline ?');"><i class="fa fa-window-close" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-window-close" aria-label="fa fa-window-close"></i> Decline</a>
</li>
<li>
<a data-bs-toggle="tooltip" href="export_checking_list.php" data-bs-placement="top" title="excel"><img src="assets/img/icons/excel.svg" alt="img"></a>
</li>
<li>
<a data-bs-toggle="tooltip" data-bs-placement="top" title="print" onclick="printDiv('printableArea')"><img src="assets/img/icons/printer.svg" alt="img"></a>
</li>
</ul>
</div>
</div>

<div class="card mb-0" id="filter_inputs">
<div class="card-body pb-0">
<div class="row">
<div class="col-lg-12 col-sm-12">
<form method="POST" enctype="multipart/form-data">
<div class="row">
<div class="col-lg-3 col-sm-6 col-12">
<div class="form-group">
<select class="select" name="productid">
<option selected>Choose Product</option>
<?php

										$stmt = $DB_con->prepare('SELECT * FROM mobileproducts where status="1" ORDER BY prid');

										$stmt->execute();

										if($stmt->rowCount() > 0)

										{

										while($row=$stmt->fetch(PDO::FETCH_ASSOC))

										{

										extract($row);

?>
<option value="<?php echo $row['prid']; ?>"><?php echo $row['proname']; ?> | Qty : <?php echo $row['qty']; ?></option>
<?php 
} 
}
?>
</select>
</div>
</div>
<div class="col-lg-3 col-sm-6 col-12">
<div class="form-group">
<select class="select" name="customerid">
<option selected>Choose Cutomers</option>
<?php


										$stmt = $DB_con->prepare('SELECT * FROM mobilecustomers where status="1" ORDER BY coid');

										$stmt->execute();

										if($stmt->rowCount() > 0)

										{

										while($row=$stmt->fetch(PDO::FETCH_ASSOC))

										{

										extract($row);

?>
<option value="<?php echo $row['coid']; ?>"><?php echo $row['cname']; ?> | <?php echo $row['cphone']; ?></option>
<?php 
} 
}
?>
</select>
</div>
</div>
<div class="col-lg-2 col-sm-6 col-12">
<div class="form-group">
<select class="select" name="status">
<option selected>Choose Status</option>
<option value="0">Pending </option>
<option value="1">Processing </option>
<option value="2">Out of Delivery </option>
<option value="3">Sales to Delivery </option>
<option value="4">Return </option>
<option value="5">Delivered</option>
</select>
</div>
</div>
<div class="col-lg-2 col-sm-6 col-12 ">
<div class="form-group">
<select class="select" name="paytype">
<option value="cash">Cash</option>
<option value="card">Card</option>
<option value="credit">Credit</option>
</select>
</div>
</div>
<div class="col-lg-2 col-sm-6 col-12">
<div class="form-group">
<button type="submit" name="search" class="btn btn-filters ms-auto"><img src="assets/img/icons/search-whites.svg" alt="img"></button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

<div class="table-responsive">
<table class="table  datanew">
<thead>
<tr>
<th>#ID</th>
<th>
<label class="checkboxs">
<input type="checkbox" id="select-all">
<span class="checkmarks"></span>
</label>
</th>
<th>Action</th>
<th>Order ID</th>
<th>Status</th>
<th>Customer</th>
<th>Items</th>
<th>Total Discount</th>
<th>Total Amount</th>
<th>Total Bill</th>
<th>Pay Type</th>
<th>Delivery Cost</th>
<th>Add Date/Time</th>
<th>Biller</th>
</tr>
</thead>
<tbody>
<?php
if(isset($_POST['search'])){
$productid=$_POST['productid'];
$customerid=$_POST['customerid'];
$status=$_POST['status'];
$paytype=$_POST['paytype'];

$stmt2 = $DB_con->prepare("SELECT o.order_id,o.orid,o.pay_option,o.amount,o.card_no,o.customer,o.delivery_cost,o.user_id,o.create_at,o.status ostatus,t.tempid,t.orderid torderid,t.proid,t.pro_price,t.pro_dis,t.pro_qty,t.user_id tuser_id FROM mobileorders o INNER JOIN mobiletemporarycart t ON o.order_id=t.orderid WHERE o.status='".$paytype."' and customer='".$customerid."' and pay_option='".$paytype."' group BY o.order_id DESC");

$stmt2->execute();
$line_count =0;
if($stmt2->rowCount() > 0)

{

while($row2=$stmt2->fetch(PDO::FETCH_ASSOC))

{

extract($row2);
$line_count = $line_count +1;

?>
<tr>
<td><?php echo $row2['order_id']; ?></td>
<td>
															<?php
															if($row2['ostatus']==0){ ?>
															<input type="checkbox" id="<?php echo $line_count."check"; ?>"  value="<?php echo $row2['order_id']; ?>">
														<?php }else{
															?>
															<input disabled type="checkbox" id="<?php echo $line_count."check"; ?>"  value="<?php echo $row2['order_id']; ?>">
															<?php
														} ?>
														</td>

<td>
<a href="deletesaleslist.php?order_id=<?php echo $row2["order_id"]; ?>" class="btn btn-block btn-outline-danger active btn-sm text-white" title="Delete Sales" onClick="JavaScript:return confirm('Are your sure delete this sale?');"><i class="fa fa-trash" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-trash" aria-label="fa fa-trash"></i></a>
<a href="checkinglist.php?Accept=<?php echo $row2["order_id"]; ?>&status=1" class="btn btn-block btn-outline-info active btn-sm text-white" title="Accept" onClick="JavaScript:return confirm('Are your sure change this Accept ?');"><i class="fa fa-check-circle" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-check-circle" aria-label="fa fa-check-circle"></i> Accept</a>
<a href="checkinglist.php?Decline=<?php echo $row2["order_id"]; ?>&status=4" class="btn btn-block btn-outline-warning active btn-sm text-white" title="Decline" onClick="JavaScript:return confirm('Are your sure change this Decline ?');"><i class="fa fa-window-close" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-window-close" aria-label="fa fa-window-close"></i> Decline</a>
</td>
<td><?php echo $row2['orid']; ?></td>
<td>
<?php 
						
														if($row2['ostatus'] == "2"){

														echo '<a class="badges bg-lightgreen text-white">Completed</a>';

													    }else if($row2['ostatus'] == "0"){

														echo '<a class="badges bg-lightred text-white">Pending</a>';

														}else if($row2['ostatus'] == "1"){

														echo '<a class="badges bg-lightgreen text-white">Processing</a>';

														}
						
						
												
											  ?>
											  
<a href="change_checking_status.php?changestatus=<?php echo $row2["order_id"]; ?>&status=<?php echo $row2["ostatus"]; ?>" class="btn btn-block btn-outline-danger active btn-sm text-white" title="Change Status" onClick="JavaScript:return confirm('Are your sure change this status ?');"><i class="fa fa-edit" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-edit" aria-label="fa fa-edit"></i></a>
</td>
<td><?php

if($row2['customer'] == "0"){
	
	echo '<a class="badges bg-lightgreen text-white">Walk-in Customer</a>';
	
}else if($row2['customer'] == "dc"){
	
	echo '<a class="badges bg-lightgreen text-white">Delivery Customer</a>';
	
}else{
												$id = $row2['customer'];  

												$query = $DB_con->prepare('SELECT cname FROM mobilecustomers WHERE coid='.$id);

												$query->execute();

												$result = $query->fetch();

												echo $result['cname'];

}
												?>
												</td>
<td class="productimgname">
<a href="viewcheckingitemslist.php?order_id=<?php echo $row2["order_id"]; ?>" class="btn btn-block btn-outline-primary active btn-sm text-white"><i class="fa fa-eye" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-eye" aria-label="fa fa-eye"></i> View Items</a>
<?php
$sql = "SELECT * FROM mobiletemporarycart LEFT JOIN mobileproducts ON mobileproducts.prid=mobiletemporarycart.proid
		WHERE mobiletemporarycart.orderid='$order_id' GROUP BY mobiletemporarycart.proid,mobiletemporarycart.pro_dis ORDER BY mobiletemporarycart.tempid DESC";

		$result = $conn->query($sql);
		$rowCount = 0;
		$pamount = 0;
		$total_discount = 0;
		$total_amount = 0;
		if ($result->num_rows > 0) {
			while($row = $result->fetch_assoc()) {
				$rowCount = $rowCount+1;
				$proid = $row["proid"];
				$proname = $row["proname"];
				$cover = $row["cover"];
				$pro_price = $row["pro_price"];
				$pro_dis = $row["pro_dis"];
				$pro_qty = $row["pro_qty"];
				$pamount = ($pro_price * $pro_qty) - $pro_dis;
				$total_discount = $total_discount + $pro_dis;
				$total_amount = $total_amount + $pamount;
				
?>			

<?php 
} 
} 
?>
</td>
<td>Rs.<?php echo number_format((float)$total_discount,2); ?></td>
<td>Rs.<?php echo number_format((float)$pamount,2); ?></td>
<td class="text-red">Rs.<?php echo number_format((float)$total_amount,2); ?></td>
<td>
<?php 
						
														if($row2['pay_option'] == "cash"){

														echo '<a class="badges bg-lightgreen text-white">Cash</a>';

													    }else if($row2['pay_option'] == "card"){

														echo '<a class="badges bg-lightred text-white">Card</a>';

														}
						
												
											  ?>
											  
<a href="change_checking_paytype.php?changepaytype=<?php echo $row2["order_id"]; ?>&paytype=<?php echo $row2["pay_option"]; ?>" class="btn btn-block btn-outline-danger active btn-sm text-white" title="Change Pay Type" onClick="JavaScript:return confirm('Are your sure change this pay type ?');"><i class="fa fa-edit" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-edit" aria-label="fa fa-edit"></i></a>
</td>
<td class="text-green">Rs.<?php echo $row2['delivery_cost']; ?></td>
<td class="text-red"><?php echo date_format(date_create($row2['create_at']),"M d, Y | h:i:s "); ?></td>
<td>Admin</td>
</tr>
<?php 
} 
}
}else{
$stmt2 = $DB_con->prepare("SELECT o.order_id,o.orid,o.pay_option,o.amount,o.card_no,o.customer,o.delivery_cost,o.user_id,o.create_at,o.status ostatus,t.tempid,t.orderid torderid,t.proid,t.pro_price,t.pro_dis,t.pro_qty,t.user_id tuser_id FROM mobileorders o INNER JOIN mobiletemporarycart t ON o.order_id=t.orderid WHERE o.status='0' group BY o.order_id DESC");

$stmt2->execute();
$line_count =0;
if($stmt2->rowCount() > 0)

{

while($row2=$stmt2->fetch(PDO::FETCH_ASSOC))

{

extract($row2);
$line_count = $line_count +1;
?>
<tr>
<td><?php echo $row2['order_id']; ?></td>
<td>
															<?php
															if($row2['ostatus']==0){ ?>
															<input type="checkbox" id="<?php echo $line_count."check"; ?>"  value="<?php echo $row2['order_id']; ?>">
														<?php }else{
															?>
															<input disabled type="checkbox" id="<?php echo $line_count."check"; ?>"  value="<?php echo $row2['order_id']; ?>">
															<?php
														} ?>
														</td>

<td>
<a href="deletesaleslist.php?order_id=<?php echo $row2["order_id"]; ?>" class="btn btn-block btn-outline-danger active btn-sm text-white" title="Delete Sales" onClick="JavaScript:return confirm('Are your sure delete this sale?');"><i class="fa fa-trash" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-trash" aria-label="fa fa-trash"></i></a>
<a href="checkinglist.php?Accept=<?php echo $row2["order_id"]; ?>&status=1" class="btn btn-block btn-outline-info active btn-sm text-white" title="Accept" onClick="JavaScript:return confirm('Are your sure change this Accept ?');"><i class="fa fa-check-circle" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-check-circle" aria-label="fa fa-check-circle"></i> Accept</a>
<a href="checkinglist.php?Decline=<?php echo $row2["order_id"]; ?>&status=4" class="btn btn-block btn-outline-warning active btn-sm text-white" title="Decline" onClick="JavaScript:return confirm('Are your sure change this Decline ?');"><i class="fa fa-window-close" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-window-close" aria-label="fa fa-window-close"></i> Decline</a>
</td>
<td><?php echo $row2['orid']; ?></td>
<td>
<?php 
						
														if($row2['ostatus'] == "2"){

														echo '<a class="badges bg-lightgreen text-white">Completed</a>';

													    }else if($row2['ostatus'] == "0"){

														echo '<a class="badges bg-lightred text-white">Pending</a>';

														}else if($row2['ostatus'] == "1"){

														echo '<a class="badges bg-lightgreen text-white">Processing</a>';

														}
						
						
												
											  ?>
<a href="change_checking_status.php?changestatus=<?php echo $row2["order_id"]; ?>&status=<?php echo $row2["ostatus"]; ?>" class="btn btn-block btn-outline-danger active btn-sm text-white" title="Change Status" onClick="JavaScript:return confirm('Are your sure change this status ?');"><i class="fa fa-edit" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-edit" aria-label="fa fa-edit"></i></a>
</td>
<td><?php

if($row2['customer'] == "0"){
	
	echo '<a class="badges bg-lightgreen text-white">Walk-in Customer</a>';
	
}else if($row2['customer'] == "dc"){
	
	echo '<a class="badges bg-lightgreen text-white">Delivery Customer</a>';
	
}else{
												$id = $row2['customer'];  

												$query = $DB_con->prepare('SELECT cname FROM mobilecustomers WHERE coid='.$id);

												$query->execute();

												$result = $query->fetch();

												echo $result['cname'];

}
												?>
												</td>
<td class="productimgname">
<a href="viewcheckingitemslist.php?order_id=<?php echo $row2["order_id"]; ?>" class="btn btn-block btn-outline-primary active btn-sm text-white"><i class="fa fa-eye" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-eye" aria-label="fa fa-eye"></i> View Items</a>
<?php
$sql = "SELECT * FROM mobiletemporarycart LEFT JOIN mobileproducts ON mobileproducts.prid=mobiletemporarycart.proid
		WHERE mobiletemporarycart.orderid='$order_id' GROUP BY mobiletemporarycart.proid,mobiletemporarycart.pro_dis ORDER BY mobiletemporarycart.tempid DESC";

		$result = $conn->query($sql);
		$rowCount = 0;
		$pamount = 0;
		$total_discount = 0;
		$total_amount = 0;
		if ($result->num_rows > 0) {
			while($row = $result->fetch_assoc()) {
				$rowCount = $rowCount+1;
				$proid = $row["proid"];
				$proname = $row["proname"];
				$cover = $row["cover"];
				$pro_price = $row["pro_price"];
				$pro_dis = $row["pro_dis"];
				$pro_qty = $row["pro_qty"];
				$pamount = ($pro_price * $pro_qty) - $pro_dis;
				$total_discount = $total_discount + $pro_dis;
				$total_amount = $total_amount + $pamount;
				
?>			

<?php 
} 
} 
?>
</td>
<td>Rs.<?php echo number_format((float)$total_discount,2); ?></td>
<td>Rs.<?php echo number_format((float)$pamount,2); ?></td>
<td class="text-red">Rs.<?php echo number_format((float)$total_amount,2); ?></td>
<td>
<?php 
						
														if($row2['pay_option'] == "cash"){

														echo '<a class="badges bg-lightgreen text-white">Cash</a>';

													    }else if($row2['pay_option'] == "card"){

														echo '<a class="badges bg-lightred text-white">Card</a>';

														}
						
												
											  ?>
											  
<a href="change_checking_paytype.php?changepaytype=<?php echo $row2["order_id"]; ?>&paytype=<?php echo $row2["pay_option"]; ?>" class="btn btn-block btn-outline-info active btn-sm text-white" title="Change Pay Type" onClick="JavaScript:return confirm('Are your sure change this pay type ?');"><i class="fa fa-check-circle" data-bs-toggle="tooltip" title="" data-bs-original-title="fa fa-check-circle" aria-label="fa fa-check-circle"></i> Accept</a>
</td>
<td class="text-green">Rs.<?php echo $row2['delivery_cost']; ?></td>
<td class="text-red"><?php echo date_format(date_create($row2['create_at']),"M d, Y | h:i:s "); ?></td>
<td>Admin</td>
</tr>
<?php 
} 
}
}
?>
</tbody>
</table>
<div id="printableArea" style="display:none;">
<table class="table  datanew">
<thead>
<tr>
<th>Order ID</th>
<th>Status</th>
<th>Customer</th>
<th>Total Discount</th>
<th>Total Amount</th>
<th>Total Bill</th>
<th>Pay Type</th>
<th>Delivery Cost</th>
<th>Add Date/Time</th>
</tr>
</thead>
<tbody>
<?php

$stmt2 = $DB_con->prepare("SELECT o.order_id,o.orid,o.pay_option,o.amount,o.card_no,o.customer,o.delivery_cost,o.user_id,o.create_at,o.status ostatus,t.tempid,t.orderid torderid,t.proid,t.pro_price,t.pro_dis,t.pro_qty,t.user_id tuser_id FROM mobileorders o INNER JOIN mobiletemporarycart t ON o.order_id=t.orderid WHERE o.status='0' group BY o.order_id DESC");

$stmt2->execute();

if($stmt2->rowCount() > 0)

{

while($row2=$stmt2->fetch(PDO::FETCH_ASSOC))

{

extract($row2);

?>
<tr>
<td><?php echo $row2['orid']; ?></td>
<td>
<?php 
						
														if($row2['ostatus'] == "2"){

														echo '<a class="badges bg-lightgreen text-white">Completed</a>';

													    }else if($row2['ostatus'] == "0"){

														echo '<a class="badges bg-lightred text-white">Pending</a>';

														}else if($row2['ostatus'] == "1"){

														echo '<a class="badges bg-lightgreen text-white">Processing</a>';

														}
						
						
												
											  ?>
</td>
<td><?php

if($row2['customer'] == "0"){
	
	echo '<a class="badges bg-lightgreen text-white">Walk-in Customer</a>';
	
}else if($row2['customer'] == "dc"){
	
	echo '<a class="badges bg-lightgreen text-white">Delivery Customer</a>';
	
}else{
												$id = $row2['customer'];  

												$query = $DB_con->prepare('SELECT cname FROM mobilecustomers WHERE coid='.$id);

												$query->execute();

												$result = $query->fetch();

												echo $result['cname'];

}
												?>
												</td>
<?php
$sql = "SELECT * FROM mobiletemporarycart LEFT JOIN mobileproducts ON mobileproducts.prid=mobiletemporarycart.proid
		WHERE mobiletemporarycart.orderid='$order_id' GROUP BY mobiletemporarycart.proid,mobiletemporarycart.pro_dis ORDER BY mobiletemporarycart.tempid DESC";

		$result = $conn->query($sql);
		$rowCount = 0;
		$pamount = 0;
		$total_discount = 0;
		$total_amount = 0;
		if ($result->num_rows > 0) {
			while($row = $result->fetch_assoc()) {
				$rowCount = $rowCount+1;
				$proid = $row["proid"];
				$proname = $row["proname"];
				$cover = $row["cover"];
				$pro_price = $row["pro_price"];
				$pro_dis = $row["pro_dis"];
				$pro_qty = $row["pro_qty"];
				$pamount = ($pro_price * $pro_qty) - $pro_dis;
				$total_discount = $total_discount + $pro_dis;
				$total_amount = $total_amount + $pamount;
				
?>			

<?php 
} 
} 
?>

<td>Rs.<?php echo number_format((float)$total_discount,2); ?></td>
<td>Rs.<?php echo number_format((float)$pamount,2); ?></td>
<td class="text-red">Rs.<?php echo number_format((float)$total_amount,2); ?></td>
<td>
<?php 
						
														if($row2['pay_option'] == "cash"){

														echo '<a class="badges bg-lightgreen text-white">Cash</a>';

													    }else if($row2['pay_option'] == "card"){

														echo '<a class="badges bg-lightred text-white">Card</a>';

														}
						
												
											  ?>
</td>
<td class="text-green">Rs.<?php echo $row2['delivery_cost']; ?></td>
<td class="text-red"><?php echo date_format(date_create($row2['create_at']),"M d, Y | h:i:s "); ?></td>
</tr>
<?php 
} 
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>

</div>
</div>
</div>

<script>

function printDiv(printableArea){
	
var printContents = document.getElementById(printableArea).innerHTML;
var originalContents = document.body.innerHTML;

document.body.innerHTML = printContents;

window.print();

document.body.innerHTML = originalContents;

}

</script>

<script src="assets/js/jquery-3.6.0.min.js"></script>

<script src="assets/js/feather.min.js"></script>

<script src="assets/js/jquery.slimscroll.min.js"></script>

<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/dataTables.bootstrap4.min.js"></script>

<script src="assets/js/bootstrap.bundle.min.js"></script>

<script src="assets/plugins/select2/js/select2.min.js"></script>

<script src="assets/js/moment.min.js"></script>
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>

<script src="assets/plugins/sweetalert/sweetalert2.all.min.js"></script>
<script src="assets/plugins/sweetalert/sweetalerts.min.js"></script>

<script src="assets/js/script.js"></script>
</body>
</html>