D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
salvation.incrediblebengal.com
/
admin
/
Filename :
admin-panel.php
back
Copy
<?php include'config.php'; include'get_session_access.php'; include'function.php'; $page_title = "Admin-Panel"; // echo "<pre>"; // print_r(SERVER_SLIDE_IMAGE); // echo "</pre>"; // die(); $order_date = getOrderDate(); ?> <!DOCTYPE html> <html lang="en"> <head> <title><?php echo SITE_NAME ." - " .$page_title; ?></title> <?php include'style.php'; ?> </head> <body> <div id="main-wrapper"> <?php include'header.php'; ?> <?php include'sidebar.php'; ?> <!--********************************** Content body start ***********************************--> <div class="content-body"> <!-- row --> <div class="container-fluid admin_data_box"> <div class="row"> <div class="col-xl-2 col-lg-2 col-md-4 col-sm-6 col-xs-6 pr-1 pl-2"> <div class="card overflow-hidden data_box"> <div class="card-header media media1 border-0"> <div class="media-body"> <h2 class="text-black"> <?php echo DisplayData('food_item','food_id',null,'food_id'); ?> </h2> <p class="mb-0 text-black">Food Products</p> </div> <div class="media_img media_img1"> <img src="images/icons/main-food.png" title="food-products" alt="home-img"> </div> </div> </div> </div> <div class="col-xl-2 col-lg-2 col-md-4 col-sm-6 col-xs-6 px-1"> <div class="card overflow-hidden data_box"> <div class="card-header media media2 border-0"> <div class="media-body"> <h2 class="text-black"> <?php echo DisplayData("dinein_order","*","order_date = '$order_date'","order_id"); ?> </h2> <p class="mb-0 text-black">Today's Order</p> </div> <div class="media_img media_img2"> <img src="images/icons/current-order.png" title="orders" alt="home-img"> </div> </div> </div> </div> <div class="col-xl-2 col-lg-2 col-md-4 col-sm-6 col-xs-6 px-1"> <div class="card overflow-hidden data_box"> <div class="card-header media media3 border-0"> <div class="media-body"> <h2 class="text-black"> <?php echo DisplayData('delivery_order','*',"order_date = '$order_date'",'order_id'); ?> </h2> <p class="mb-0 text-black">Today's Delivery</p> </div> <div class="media_img media_img3"> <img src="images/icons/delivery.png" title="delivery" alt="home-img"> </div> </div> </div> </div> <div class="col-xl-2 col-lg-2 col-md-4 col-sm-6 col-xs-6 px-1"> <div class="card overflow-hidden data_box"> <div class="card-header media media4 border-0"> <div class="media-body"> <h2 class="text-black"> <?php echo DisplayData('customer_details','*',null,'customer_id'); ?> </h2> <p class="mb-0 text-black">Total Customers</p> </div> <div class="media_img media_img4"> <img src="images/icons/customers.png" title="customers" alt="home-img"> </div> </div> </div> </div> <div class="col-xl-2 col-lg-2 col-md-4 col-sm-6 col-xs-6 px-1"> <div class="card overflow-hidden data_box"> <div class="card-header media media5 border-0"> <div class="media-body"> <h2 class="text-black"> <?php echo DisplayData('restro_staff','*',null,'staff_id'); ?> </h2> <p class="mb-0 text-black">Available Staffs</p> </div> <div class="media_img media_img5"> <img src="images/icons/waiter.png" title="waiter" alt="home-img"> </div> </div> </div> </div> <div class="col-xl-2 col-lg-2 col-md-4 col-sm-6 col-xs-6 px-1"> <div class="card overflow-hidden data_box"> <div class="card-header media media6 border-0"> <div class="media-body"> <h2 class="text-black"> <?php echo DisplayData('kitchen_orderlist','kitchen_id',null,'kitchen_id'); ?> </h2> <p class="mb-0 text-black">Kitchen Orderlist</p> </div> <div class="media_img media_img6"> <img src="images/icons/chef.png" title="chef" alt="home-img"> </div> </div> </div> </div> </div> </div> <div class="container-fluid order_list"> <div class="row"> <div class="col-xl-12 col-xxl-12 col-lg-12 col-sm-12"> <div class="card"> <div class="card-header border-0 pb-0"> <div class="absolute_header"> <h4 class="card-title mb-2">Table OrderList</h4> </div> </div> <div class="card-body p-0"> <div class="table-responsive px-3 p-xs-0"> <table id="example5" class="display mb-3 dataTablesCard table order-request" width="100%;"> <thead> <tr> <th>No.</th> <th>Order id</th> <th>Table No</th> <th>customer phone</th> <th>order date</th> <th>order type</th> <th>payment</th> <th>Waiter</th> <th>pay status</th> </tr> </thead> <tbody> <?php $show_items = "SELECT * FROM dinein_order ORDER BY order_date DESC, order_id DESC"; $run_query = mysqli_query($conn, $show_items); if($run_query-> num_rows > 0){ $no = 0; while($row = mysqli_fetch_assoc($run_query)) { $order_id = $row['order_id']; $table_id = $row['table_id']; $customer_phone = $row['customer_phone']; $total_payment = $row['total_payment']; $payment_status = $row['order_status']; $order_date = $row['order_date']; $order_type = "dine_in"; $no++; echo "<tr> <td style='width:5%'>".$no.".</td> <td style='width:8%'>".$order_id.".</td> <td style='width:8%'>".$table_id.".</td> <td style='width:15%'>".$customer_phone."</td> <td>".$order_date."</td> <td>".$order_type."</td> <td><i class='fa fa-inr'></i> ".$total_payment."/-</td> <td><i class='fa fa-inr'></i> ".$row['waiter_name']."/-</td> <td style='width:10%'>".$payment_status."</td> </tr> "; } } else{ echo "<span style='color:#fe0002;font-size:15px;'>DIne In list is Empty.</span>"; } ?> </tbody></table> <div class="card-footer border-0 pt-0 text-center"> <a href="order-summary.php" class="btn-link">View More >></a> </div> </div> </div> <div class="card-header border-0 pb-0"> <div class="absolute_header"> <h4 class="card-title mb-2">Take Away OrderList</h4> </div> </div> <div class="card-body p-0"> <div class="table-responsive px-3 p-xs-0"> <table id="example4" class="display mb-3 dataTablesCard table order-request" width="100%;"> <thead> <tr> <th>No.</th> <th>Order id</th> <th>customer phone</th> <th>order date</th> <th>order type</th> <th>total payment</th> <th>Waiter</th> <th>pay status</th> </tr> </thead> <tbody> <?php $show_items = "SELECT * FROM delivery_order ORDER BY order_date DESC, order_id DESC"; $run_query = mysqli_query($conn, $show_items); if($run_query-> num_rows > 0){ $no = 0; while($row = mysqli_fetch_assoc($run_query)) { $order_id = $row['order_id']; $customer_phone = $row['customer_phone']; $total_payment = $row['total_payment']; $payment_status = $row['order_status']; $order_date = $row['order_date']; $order_type = $row['order_type']; $no++; echo "<tr> <td style='width:5%'>".$no.".</td> <td style='width:8%'>".$order_id.".</td> <td style='width:15%'>".$customer_phone."</td> <td>".$order_date."</td> <td>".$order_type."</td> <td><i class='fa fa-inr'></i> ".$total_payment."/-</td> <td><i class='fa fa-inr'></i> ".$row['waiter_name']."/-</td> <td style='width:10%'>".$payment_status."</td> </tr> "; } } else{ echo "<span style='color:#fe0002;font-size:15px;'>DIne In list is Empty.</span>"; } ?> </tbody></table> <div class="card-footer border-0 pt-0 text-center"> <a href="order-summary.php" class="btn-link">View More >></a> </div> </div> </div> </div> </div> </div> </div> </div> <!--********************************** Content body end ***********************************--> <?php include'footer.php'; ?> </body> </html>