AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.139
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/www/lrsys_projetos/sopizzas/application/views/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/superadmin/dashboard.php
<!-- 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().'superadmin/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>

	<!-- Main content -->
	<section class="content">
		<div class="row">
			<div class="col-lg-3 col-sm-6 col-md-3 col-xs-12">
				<!-- small box -->
				<div class="small-box bg-aqua">
					<div class="inner">
						<h3 id="TotalOrder" class="counter"><?php echo $TotalOrder; ?></h3>
						<p><?php echo $this->lang->line('Total_Order');?></p>
					</div>
					<div class="icon">
						<i class="ion ion-bag"></i>
					</div>
					<a href="<?php echo base_url(); ?>superadmin/restaurantorders" data-trigger="focus" class="small-box-footer popbtn"><?php echo $this->lang->line('More_info');?> <i class="fa fa-arrow-circle-right"></i></a>
				</div>
			</div>
			<!-- ./col -->
			<div class="col-lg-3 col-sm-6 col-md-3 col-xs-12">
				<!-- small box -->
				<div class="small-box bg-green">
					<div class="inner">
						<h3 id="TotalUsers" class="counter"><?php echo $TotalUsers; ?></h3>
						<p><?php echo $this->lang->line('Total_Customer');?></p>
					</div>
					<div class="icon">
						<i class="ion ion-person-add"></i>
					</div>
					<a href="<?php echo base_url(); ?>superadmin/customersmanagement" data-trigger="focus" class="small-box-footer popbtn1"><?php echo $this->lang->line('More_info');?> <i class="fa fa-arrow-circle-right"></i></a>
				</div>
			</div>
			<!-- ./col -->
			<div class="col-lg-3 col-sm-6 col-md-3 col-xs-12">
				<!-- small box -->
				<div class="small-box bg-yellow">
					<div class="inner">
						<h3 id="TotalMerchant" class="counter"><?php echo $TotalMerchant; ?></h3>
						<p><?php echo $this->lang->line('Total_Merchant');?></p>
					</div>
					<div class="icon">
						<i class="ion-ios-home-outline"></i>
					</div>
					<a href="<?php echo base_url(); ?>superadmin/managerestaurant" data-trigger="focus" class="small-box-footer popbtn2"><?php echo $this->lang->line('More_info');?> <i class="fa fa-arrow-circle-right"></i></a>
				</div>
			</div>
			<!-- ./col -->
			<div class="col-lg-3 col-sm-6 col-md-3 col-xs-12">
				<!-- small box -->
				<div class="small-box bg-iris">
					<div class="inner">
						<h3 class=""><?=SITENAME_CURRENCY?> <span class="counter"><?php echo $TotalCommission; ?></span></h3>
						<p><?php echo $this->lang->line('Total_Commission');?></p>
					</div>
					<div class="icon">
						<i class="ion-cash"></i>
					</div>
					<a href="<?=base_url().'superadmin/agreementsettings'?>" data-trigger="focus" class="small-box-footer popbtn4"><?php echo $this->lang->line('More_info');?> <i class="fa fa-arrow-circle-right"></i></a>
				</div>
			</div>
			<!-- ./col -->
			<!--<div class="col-lg-3 col-xs-12">
      <div class="small-box bg-red">
        <div class="inner">
          <h3 class=""><i class="fa fa-usd" aria-hidden="true"></i> <span class="counter">97556.23</span></h3>
          <p>Total Turnover</p>
        </div>
        <div class="icon">
          <i class="ion-social-usd"></i>
        </div>
        <a href="#" data-trigger="focus" class="small-box-footer popbtn3">More info <i class="fa fa-arrow-circle-right"></i></a>
      </div>
    </div>-->
		</div>
		
		<!-- Info boxes -->
		<div class="col-md-12 custom-padding-0">
			<!-- tab section -->
			<div class="col-md-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');?></h3> <span class="reportview"> <?php echo $this->lang->line('report_overview');?></span>
					</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('Users');?></a></li>
						<li><a class="newtcos" href="#menu1" data-toggle="tab"><?php echo $this->lang->line('Restaurants');?></a></li>
						<li><a class="newtcos" href="#menu2" data-toggle="tab"><?php echo $this->lang->line('Last_10_Orders');?></a></li>
						<li class="hide"><a class="newtcos" href="#menu3" data-toggle="tab"><?php echo $this->lang->line('Top_10_Discount_Restaurants');?></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="col-xs-12 col-md-12">
									<div class="table-responsive">
										<table class="table no-margin table-hover">
											<tbody>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Total_Users');?></td>
													<td id="TotalUsers2" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Active_Users');?></td>
													<td id="ActiveUsers" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Inactive_Users');?></td>
													<td id="InactiveUsers" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('User_Joined_This_Week');?></td>
													<td id="UserJoinedThisWeek" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('User_Joined_This_Month');?></td>
													<td id="UserJoinedThisMonth" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('User_Joined_This_Year');?></td>
													<td id="UserJoinedThisYear" class="paddingtop13"></td>
												</tr>
											</tbody>
										</table>
									</div>
									<!-- /.table-responsive -->
								</div>
							</div>
						</div>
						<div id="menu1" class="tab-pane fade">
							<div class="box-body" id="customers">
								<div class="col-xs-12 col-md-12">
									<div class="table-responsive">
										<table class="table no-margin table-hover">
											<tbody>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Total_Restaurants');?></td>
													<td id="TotalMerchant2" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Active_Restaurants');?></td>
													<td id="ActiveRestaurants" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Inactive_Restaurants');?></td>
													<td id="InactiveRestaurants" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Pending_Activation_Restaurants');?></td>
													<td id="PendingRestaurants" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Restaurants_Joined_This_Week');?></td>
													<td id="RestaurantsJoinedWeek" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Restaurants_Joined_This_Month');?></td>
													<td id="RestaurantsJoinedMonth" class="paddingtop13"></td>
												</tr>
												<tr>
													<td class="paddingtop13"><?php echo $this->lang->line('Restaurants_Joined_This_Year');?></td>
													<td id="RestaurantsJoinedYear" class="paddingtop13"></td>
												</tr>
											</tbody>
										</table>
									</div>
									<!-- /.table-responsive -->
								</div>
							</div>
						</div>
						<div id="menu2" class="tab-pane fade">
							<div class="box-body" id="customers">
								<div class="col-xs-12 col-md-12">
									<div class="table-responsive">
										<table class="table no-margin table-hover">
											<thead>
												<tr class="label-info labelinfo1">
													<th class="text-center"><?php echo $this->lang->line('Rest_ID');?></th>
													<th class="text-center"><?php echo $this->lang->line('Rest_Name');?></th>
													<th class="text-center"><?php echo $this->lang->line('Address');?></th>
													<th class="text-center"><?php echo $this->lang->line('Ordertag');?></th>
													<th class="text-center"><?php echo $this->lang->line('Total_Price');?></th>
													<th class="text-center"><?php echo $this->lang->line('Order_At');?></th>
												</tr>
											</thead>
											<tbody id="DashboardLastOrders">
												<!-- /.Table data -->
											</tbody>
										</table>
									</div>
									<!-- /.table-responsive -->
								</div>
							</div>
						</div>
						<div id="menu3" class="tab-pane fade">
							<div class="box-body" id="customers">
								<div class="col-xs-12 col-md-12">
									<div class="table-responsive">
										<table class="table no-margin table-hover">
											<thead>
												<tr class="label-info labelinfo1">
													<th class="text-center"><?php echo $this->lang->line('Rest_ID');?></th>
													<th class="text-center"><?php echo $this->lang->line('Rest_Name');?></th>
													<th class="text-center"><?php echo $this->lang->line('Offer_Percentage');?> </th>
													<th class="text-center"><?php echo $this->lang->line('Offer_Price');?> </th>
													<th class="text-center"><?php echo $this->lang->line('Valid_From');?></th>
													<th class="text-center"><?php echo $this->lang->line('Valid_To');?> </th>
													<th class="text-center"><?php echo $this->lang->line('Added_Date');?></th>
												</tr>
											</thead>
											<tbody id="DashboardtopDiscountRestaurants">
												<!-- /.Table data -->
											</tbody>
										</table>
									</div>
									<!-- /.table-responsive -->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- ./tab section -->
			<div class="col-lg-4 col-md-4 col-xs-12 paddingright0">
				<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>
					<!-- Tabs within a box -->
					<ul class="nav nav-tabs" id="fit_tab">
						<li class="active"><a aria-expanded="false" class="newtcos" href="#today" data-toggle="tab"><?php echo $this->lang->line('Today');?></a></li>
						<li class=""><a aria-expanded="false" class="newtcos" href="#week" data-toggle="tab"><?php echo $this->lang->line('Week');?></a></li>
						<li class=""><a aria-expanded="false" class="newtcos" href="#month" data-toggle="tab"><?php echo $this->lang->line('Month');?></a></li>
						<li><a aria-expanded="true" 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>
												<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>
												<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">
													<? 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>
												<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>
												<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>
		</div>
		<div class="clearfix"></div>
	</section>
	<!-- /.content -->
</div>
<script type="text/javascript">
$( document ).ready(function() {
	updateRefundCount();
	refundNotification();
	setInterval(function() {
		updateRefundCount();
		refundNotification();
	}, 5000);

    setInterval(
    function() {

    	LiveFeed();

   }, 300000);
});
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 LiveFeed()
{

	base_url='<?php echo base_url(); ?>';
    url= base_url+'dashboard/live_feed';
  //url=cntrlUrl+'live_feed/';

  $.ajax({
      type: "post",
      url: url,
      cache: false,
      dataType: 'json',
      success: function(feeddata){   

        //OVERVIEW : User
        document.getElementById("TotalUsers").innerHTML = feeddata.TotalUsers;  
        document.getElementById("TotalUsers2").innerHTML = feeddata.TotalUsers;  
        document.getElementById("ActiveUsers").innerHTML = feeddata.ActiveUsers;  
        document.getElementById("InactiveUsers").innerHTML = feeddata.InactiveUsers;  
        document.getElementById("UserJoinedThisWeek").innerHTML = feeddata.UserJoinedThisWeek;  
        document.getElementById("UserJoinedThisMonth").innerHTML = feeddata.UserJoinedThisMonth;  
        document.getElementById("UserJoinedThisYear").innerHTML = feeddata.UserJoinedThisYear;  
        //***********************************************************************************
        //OVERVIEW : Restaurants
        document.getElementById("TotalOrder").innerHTML = feeddata.TotalOrder;  
        document.getElementById("TotalMerchant").innerHTML = feeddata.TotalMerchant;  
        document.getElementById("TotalMerchant2").innerHTML = feeddata.TotalMerchant;  
        document.getElementById("ActiveRestaurants").innerHTML = feeddata.ActiveRestaurants; 
        document.getElementById("InactiveRestaurants").innerHTML = feeddata.InactiveRestaurants; 
        document.getElementById("PendingRestaurants").innerHTML = feeddata.PendingRestaurants; 
        document.getElementById("RestaurantsJoinedWeek").innerHTML = feeddata.RestaurantsJoinedWeek; 
        document.getElementById("RestaurantsJoinedMonth").innerHTML = feeddata.RestaurantsJoinedMonth; 
        document.getElementById("RestaurantsJoinedYear").innerHTML = feeddata.RestaurantsJoinedYear; 
        //************************************************************************************
        //#Dashboard Order List
        document.getElementById("DashboardLastOrders").innerHTML = feeddata.DashboardLastOrders; 
        document.getElementById("DashboardtopDiscountRestaurants").innerHTML = feeddata.DashboardtopDiscountRestaurants; 
        //Order Statistics - today
        document.getElementById("OrdersToday").innerHTML = feeddata.OrdersToday; 
        document.getElementById("SalesToday").innerHTML = "$"+feeddata.SalesToday; 
        document.getElementById("DeliveredOrderToday").innerHTML = feeddata.DeliveredOrderToday; 
        document.getElementById("PendingOrderToday").innerHTML = feeddata.PendingOrderToday; 

        //Order Statistics - week
        document.getElementById("OrdersWeek").innerHTML = feeddata.OrdersWeek; 
        document.getElementById("SalesWeek").innerHTML = "$"+feeddata.SalesWeek; 
        document.getElementById("DeliveredOrderWeek").innerHTML = feeddata.DeliveredOrderWeek; 
        document.getElementById("PendingOrderWeek").innerHTML = feeddata.PendingOrderWeek; 

        //Order Statistics - month
        document.getElementById("OrdersMonth").innerHTML = feeddata.OrdersMonth; 
        document.getElementById("SalesMonth").innerHTML = "$"+feeddata.SalesMonth; 
        document.getElementById("DeliveredOrderMonth").innerHTML = feeddata.DeliveredOrderMonth; 
        document.getElementById("PendingOrderMonth").innerHTML = feeddata.PendingOrderMonth; 
        //Order Statistics - year
        document.getElementById("OrdersYear").innerHTML = feeddata.OrdersYear;
        document.getElementById("SalesYear").innerHTML = "$"+feeddata.SalesYear; 
        document.getElementById("DeliveredOrderYear").innerHTML = feeddata.DeliveredOrderYear; 
        document.getElementById("PendingOrderYear").innerHTML = feeddata.PendingOrderYear; 


        //document.getElementById("eWallet").innerHTML = "<strong>$"+feeddata.e_Wallet+"</strong>"; 
            
      },error:function(jqXHR,exception){if (jqXHR.status === 0) {
        msg = 'Not connected.\n Verify Network.';
        } else if (jqXHR.status == 404) {
        msg = 'Requested page not found. [404]';
        } else if (jqXHR.status == 500) {
        msg = 'Internal Server Error [500].';
        } else if (exception === 'parsererror') {
        msg = 'Requested JSON parse failed.';
        } else if (exception === 'timeout') {
        msg = 'Time out error.';
        } else if (exception === 'abort') {
        msg = 'Ajax request aborted.';
        } else {
        msg = 'Uncaught Error.\n' + jqXHR.responseText;
        }
        //alert(msg);
         
      }
     });
}*/
</script>

Anon7 - 2022
AnonSec Team