Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: dashboard.php
<link rel = "stylesheet" type = "text/css" href = "<?php echo base_url(); ?>assets/css/7/style.css"> <!-- Page header --> <?php //print_r($this->data['rsStngs']); ?> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div class="page-title container"> <h4><a href="<?php echo base_url('dashboard'); ?>" class="BackButton-Link"><i class="icon-arrow-left52 mr-2"></i></a> <span class="font-weight-semibold"><?php echo $this->lang->line('CUST_DB_HEADER'); ?></span></h4> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content main-content_7 theme-7-content-box"> <!---news&balance--> <div class="container"> <?php if(isset($_SESSION['message'])){ ?> <div class = "alert alert-success"> <?php echo $this->session->flashdata('message'); ?> </div> <?php }?> <?php if(isset($_SESSION['error_message'])){ ?> <div class = "alert alert-danger"> <?php echo $this->session->flashdata('error_message'); ?> </div> <?php }?> <div class="row align-items-center"> <div class="col-xl-12" style="padding: 0;"> <!--news slider--> <div> <div class="card-body"> <div class="row"> <div class="col-xl-12" style="padding:0px"> <h3><?php echo $this->lang->line('PriceChanged24Hours');?></h3> <div id="carouselContent" class="carousel slide" data-ride="carousel"> <div class="carousel-inner news_slider" role="listbox" style="min-height:85px !important;max-height:85px !important"> <?php if(count($dashboardPriceNotices) > 0){ $i=0; foreach ($dashboardPriceNotices as $noticeRow) { if($i==0){ $class='active'; }else{ $class=''; } ?> <div class="carousel-item <?php echo $class; ?> pt-2 pb-1"> <h6><i class="icon-megaphone mr-2"></i> <?php echo $noticeRow->Message; ?></h6> </div> <?php $i++; } } else { echo $this->lang->line('CUST_LBL_10'); } ?> </div> <div class="row"> <div class="col-xl-8"> <div class="myicons"> <a class="carousel-control-prev" href="#carouselContent" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselContent" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> <div class="col-xl-4 text-right"> <a href="<?php echo base_url('page/allPriceUpdates'); ?>" class="btn rounded-round" style="background-color: #3498DB;color:#fff;"><?php echo $this->lang->line("AllPriceChanges"); ?></a> </div> </div> </div> </div> </div> </div> </div> <!-- /news slider --> <!--news slider--> <div> <div class="card-body price-main-boxes" style="padding-left: 0.75rem;padding-right: 0.75rem;"> <div class="row"> <div class="col-lg-3 col-md-6 col-sm-6 mb-3 mb-xl-0"> <div class="dashboard-price-boxes" style="background-color: #4CAF50;"> <div> <h2><?php echo $userDetails->CurrencySymbol.' '.roundMe($userDetails->Credits); ?></h2> <h5>Current Credits</h5> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-6 mb-3 mb-xl-0"> <div class="dashboard-price-boxes" style="background-color: #3498DB;"> <div> <h2><?php echo $userDetails->CurrencySymbol.' '.roundMe($paidinvoices); ?></h2> <h5>Credits Used</h5> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-6 mb-3 mb-xl-0"> <div class="dashboard-price-boxes" style="background-color: #555555;"> <div> <h2><?php echo $userDetails->CurrencySymbol.' '.roundMe($inprocesscredit); ?></h2> <h5>Inprocess Credits</h5> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-6 mb-3 mb-xl-0"> <div class="dashboard-price-boxes" style="background-color: #2C8000;"> <div> <h2><?php echo $userDetails->CurrencySymbol.' '.(roundMe($totalReceipts)); ?></h2> <h5>Credits Receipts</h5> </div> </div> </div> <div class="col-12"> <hr /> <div class="dashboard-btns" style="margin:0 auto; max-width: 465px;min-width: 115px;text-align: center;"> <span class="mb-4 mr-1"> <a href="<?php echo base_url('page/add_credits');?>" role="button" class="btn bg-indigo-400 rounded-round GreenThemeButton alignclass orange-bg-btn"><i class="icon-cart2 mr-2"></i> Buy Credit</a> </span> <span class="mb-4 mr-1"> <a style="background-image: url(<?= base_url('assets/green_theme_images/telegram.png'); ?>);background-repeat: no-repeat;background-position: 12px center;padding-left: 45px;" href="javascript:;" onclick="return connectTelegram();" role="button" class="btn bg-indigo-400 rounded-round GreenThemeButton alignclass light-blue-bg-btn">Connect Telegram</a> </span> <?php if($getUserDetails->AllowAPI) { ?> <span class="mb-4 mr-1"> <a style="background-image: url(<?= base_url('assets/green_theme_images/api_icon.jpg'); ?>);background-repeat: no-repeat;background-position: 12px center;padding-left: 45px;" href="javascript:;" onclick="return getUserKey();" role="button" class="btn bg-indigo-400 rounded-round GreenThemeButton alignclass yellow-bg-btn">View API Key</a> </span> <?php } ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.5.2/bootbox.min.js"></script> <script type="text/javascript"> function connectTelegram() { $.post('<?= base_url('telegram/generate_token'); ?>', function(token){ bootbox.alert({ title: "Connect Telegram", message: token, }); }); return false; } function getUserKey() { $.post('<?= base_url('page/getUserKey'); ?>', function(token){ response_api = JSON.parse(token); bootbox.alert({ title: "API Key", message: "API Key: " + response_api.API, }); }); return false; } </script> </div> </div> <!-- <div class="col-xl-12"> <div id="carouselContent" class="carousel slide pb-3" data-ride="carousel"> <div class="carousel-inner news_slider" role="listbox"> <?php $news = array_merge($rsNews,$rwUN); $news = array_slice($news,0,5); for ($i=0;$i<sizeof($news);$i++) { if($i==0){ $class='active'; }else{ $class=''; } ?> <div class="carousel-item <?php echo $class; ?> pt-2 pb-3"> <?php if($news[$i]->AddedAt){?> <h5><i class="icon-megaphone mr-2"></i> <?php echo $news[$i]->NewsTitle.' '.date('Y-m-d',strtotime($news[$i]->AddedAt)); ?></h5> <?php } ?> <h3><?php echo $news[$i]->ShortDescription; ?></h3> </div> <?php } ?> </div> <div class="row"> <div class="col-xl-10"> <div class="myicons"> <a class="carousel-control-prev" href="#carouselContent" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselContent" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> <div class="col-xl-2"> <a href="<?php echo base_url('page/allnews'); ?>" class="btn ThemeColorButton">All News</a> </div> </div> </div> </div> --> </div> </div> </div> <!-- /news slider --> </div> <!--balance--> <!-- <div class="col-xl-4"> Sales stats -- <div style="height: 204px;"> <div class="card-header header-elements-inline"> <h5 class="card-title"><strong>Your Current Balance</strong></h5> <div class="header-elements"> </div> </div> <div class="card-body py-0"> <div class="row"> <div class="col-12"> <div class="mb-3"> <h1 class="font-weight-semibold mb-1 bln"><?php echo $userDetails->CurrencySymbol.' '. roundMe($userDetails->Credits); ?> </h1> </div> </div> </div> <div class="row"> <div class="col-12"> <span class="mb-4 mr-1"> <a href="<?php echo base_url('page/add_credits');?>" role="button" class="btn bg-indigo-400 rounded-round GreenThemeButton alignclass"><i class="icon-cart2 mr-2"></i> Buy Credit</a> </span> <span class="mb-4 mr-1"> <a style="background-image: url(<?= base_url('assets/green_theme_images/telegram.png'); ?>);background-repeat: no-repeat;background-position: 12px center;padding-left: 45px;" href="javascript:;" onclick="return connectTelegram();" role="button" class="btn bg-indigo-400 rounded-round GreenThemeButton alignclass">Connect Telegram</a> </span> <?php if($getUserDetails->AllowAPI) { ?> <span class="mb-4 mr-1"> <a style="background-image: url(<?= base_url('assets/green_theme_images/api_icon.jpg'); ?>);background-repeat: no-repeat;background-position: 12px center;padding-left: 45px;" href="javascript:;" onclick="return getUserKey();" role="button" class="btn bg-indigo-400 rounded-round GreenThemeButton alignclass">View API Key</a> </span> <?php } ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.5.2/bootbox.min.js"></script> <script type="text/javascript"> function connectTelegram() { $.post('<?= base_url('telegram/generate_token'); ?>', function(token){ bootbox.alert({ title: "Connect Telegram", message: token, }); }); return false; } function getUserKey() { $.post('<?= base_url('page/getUserKey'); ?>', function(token){ response_api = JSON.parse(token); bootbox.alert({ title: "API Key", message: "API Key: " + response_api.API, }); }); return false; } </script> </div> </div> </div> </div> /sales stats -- </div> --> </div> <!---/news&balance--> <div class="row"> <div class="col-xl-4"> <div class="sale_summary_7"> <div class="custom-light-border"> <h2 class="card-title">Sale Summary</h2> <div class="sale-summary-text-box"> <h5 class=""><?php echo $this->lang->line('CUST_LBL_215'); ?>: <span class="blue"><?php echo /*$userDetails->CurrencySymbol */ roundMe($totalReceipts); ?></span></h5> </div> <div class="sale-summary-text-box"> <h5 class="">Paid Invoices: <span class="green"><?php echo roundMe($paidinvoices); ?></span></h5> </div> <div class="sale-summary-text-box"> <h5 class="">Unpaid Invoice: <span class="red"><?php echo roundMe($unpaid); ?></span></h5> </div> <div class="sale-summary-text-box"> <h5 class="">In Process Credits: <span class="yellow"><?php echo roundMe($inprocesscredit);?></span></h5> </div> </div> </div> </div> <div class="col-xl-8"> <!-- charts --> <!-- <div class=""> <div class="card-header header-elements-inline"> <h5 class="card-title"><strong>Order Summary - <?php echo $ordersTotal['totalorders']; ?></strong></h5> </div> </div> --> <script> var Totalorders = <?php echo $ordersTotal['totalorders']; ?>; var Inprocess = <?php echo $ordersTotal['inprocess']; ?>; var Completed = <?php echo $ordersTotal['completed']; ?>; var Rejected = <?php echo $ordersTotal['rejected']; ?>; var Pending = <?php echo $ordersTotal['pending']; ?>; </script> <script src="<?php echo base_url('assets/global_assets/js/demo_charts/echarts/dark/pies/pie_multiple.js') ?>"></script> <div class=""> <div class="chart-container"> <table width="100%"> <tr> <td width="25%" class="Pointer"> <div class="dropdown"> <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <div class="chart" style="height: 150px;" id="pie_multiples1"></div> </a> <div class="dropdown-menu multichartsClientes" aria-labelledby="dropdownMenuLink"> <a class="dropdown-item" href="<?php echo base_url('page/imei_orders?status=Completed')?>">IMEI Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/file_orders?status=Completed')?>">File Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/server_orders?status=Completed')?>">Server Services Orders</a> </div> </div> </td> <td width="25%" class="Pointer"> <div class="dropdown"> <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <div class="chart" style="height: 150px;" id="pie_multiples2"></div> </a> <div class="dropdown-menu multichartsClientes" aria-labelledby="dropdownMenuLink1"> <a class="dropdown-item" href="<?php echo base_url('page/imei_orders?status=In Process')?>">IMEI Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/file_orders?status=In Process')?>">File Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/server_orders?status=In Process')?>">Server Services Orders</a> </div> </div> </td> <td width="25%" class="Pointer"> <div class="dropdown"> <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <div class="chart" style="height: 150px;" id="pie_multiples3"></div> </a> <div class="dropdown-menu multichartsClientes" aria-labelledby="dropdownMenuLink2"> <a class="dropdown-item" href="<?php echo base_url('page/imei_orders?status=Rejected')?>">IMEI Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/file_orders?status=Rejected')?>">File Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/server_orders?status=Rejected')?>">Server Services Orders</a> </div> </div> </td> <td width="25%" class="Pointer"> <div class="dropdown"> <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <div class="chart" style="height: 150px;" id="pie_multiples4"></div> </a> <div class="dropdown-menu multichartsClientes" aria-labelledby="dropdownMenuLink3"> <a class="dropdown-item" href="<?php echo base_url('page/imei_orders?status=Pending')?>">IMEI Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/file_orders?status=Pending')?>">File Services Orders</a> <a class="dropdown-item" href="<?php echo base_url('page/server_orders?status=Pending')?>">Server Services Orders</a> </div> </div> </td> </tr> </table> </div> <br /> <center><h6>Available, Pending, Rejected and In Process orders out of Total <b><?php print_r($ordersTotal['totalorders']); ?></b> Orders</h6></center> </div> </div> <!-- /charts --> </div> <div class="row"> <div class="col-xl-12"> <!-- searching (selects) --> <!--<h4><?php /*echo $this->lang->line('CUST_LBL_30'); */?></h4>--> <ul class="nav nav-tabs"> <li class=""><a class="nav-link font-size-sm text-uppercase active" href="#tab_1_7" data-toggle="tab">Recent News</a></li> <li class=""><a class="nav-link font-size-sm text-uppercase" href="#tab_2_7" data-toggle="tab">Last 20 IMEI Orders</a></li> <li class=""><a class="nav-link font-size-sm text-uppercase" href="#tab_3_7" data-toggle="tab">Pending Invoices By Clients</a></li> <li class=""><a class="nav-link font-size-sm text-uppercase" href="#tab_4_7" data-toggle="tab">Pending Invoices By Admin</a></li> </ul> <div class="tab-content"> <div class="tab-pane active show" id="tab_1_7"> <div class="table-responsive"> <table class="table"> <?php $news = array_merge($rsNews,$rwUN); $news = array_slice($news,0,5); for ($i=0;$i<sizeof($news);$i++) { ?> <tr> <th style='width: 25%; text-align: left !important;'><?php echo date('m-d-Y', strtotime($news[$i]->AddedAt)); ?></th> </tr> <tr> <td style='word-wrap:break-word;'> <h5><?php echo $news[$i]->NewsTitle; ?> </h5> <p><?php echo $news[$i]->ShortDescription; ?></p> </td> </tr> <?php } ?> </table> </div> </div> <div class="tab-pane fade" id="tab_2_7"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th style="width: 10%; text-align: left !important;">Order Id</th> <th style="width: 35%"> <select class="select2me" style="width: 100px;" id="ServicesSerach" onchange="getServicesSerach(this.value)"> <option value="all">All Services</option> <?php $packs=getAllPack(); foreach($packs as $pack){ ?> <option class="servicetext" value="<?php echo $pack->Id;?>"><?php echo $pack->Value;?></option> <?php } ?> </select> </th> <th style="width: 12%"><input class="form-control" onkeyup="getImeiSerach(this.value)" id="imeiSearch" ></th> <th style="width: 12%"> <select class="form-control" id="statusSerach" onchange="getStatusSerach(this.value)"> <option value="all">All Status</option> <?php $codes=get_code_status(); foreach($codes as $code){ ?> <option value="<?php echo $code->Id;?>"><?php echo $code->Value;?></option> <?php } ?> </select> </th> <th style="text-align: left !important;">Code</th> <th style="text-align: left !important;"> Actions </th> <th>View</th> </tr> </thead> <tbody id="searchData"> <?php $PACKS=array(); $packs=getAllPackData(); foreach($packs as $pack){ $PACKS[$pack->PackageId] = stripslashes($pack->PackageTitle).'-->'.$pack->CancelOrders.'-->'.$pack->VerifyOrders.'-->'.$pack->OrderVerifyMins.'-->'.$pack->OrderCancelMins; } $STATUSES = array(); $codes=get_code_all_status(); foreach($codes as $code){ $STATUSES[$code->CodeStatusId] = stripslashes($code->CodeStatus); } $currDtTm = setDtTmWRTYourCountry(); foreach ($latestTwentyImeiOrders as $order) { $showVerify = '0'; $showCancel = '0'; $showVerify = '0'; $showCancel = '0'; $pckTitle = ''; $cancelOrder = 0; $verifyOrder = 0; $orderVerifyMins = 0; $orderCancelMins = 0; $orderStatus = ''; if(isset($PACKS[$order->PackageId]) && $PACKS[$order->PackageId] != '') { $arrPackDtls = explode('-->', $PACKS[$order->PackageId]); $pckTitle = fixTextInTD($arrPackDtls[0], 3, 15); $cancelOrder = $arrPackDtls[1]; $verifyOrder = $arrPackDtls[2]; $orderVerifyMins = $arrPackDtls[3]; $orderCancelMins = $arrPackDtls[4]; } if(isset($STATUSES[$order->CodeStatusId]) && $STATUSES[$order->CodeStatusId] != '') { $orderStatus = $STATUSES[$order->CodeStatusId]; } if($order->ReplyDtTm != '') { $diffInMinsV = minutesDiffInDates($order->ReplyDtTm, $currDtTm); if($diffInMinsV <= $orderVerifyMins) $showVerify = '1'; } if($order->RequestedAt != '') { $diffInMinsC = minutesDiffInDates($order->RequestedAt, $currDtTm); if($diffInMinsC <= $orderCancelMins) $showCancel = '1'; } ?> <tr> <td style="word-wrap:break-word; "> <?php $status_class=''; echo $status_class; switch ($order->CodeStatus) { case "Pending": $status_class='pending'; break; case "Completed": $status_class='complete'; break; case "Rejected": $status_class='reject'; break; case "In Process": $status_class='inprocess'; break; echo $status_class; } ?> <div class="<?php echo $status_class; ?>">#<?php echo $order->CodeId; ?></div> </td> <td style="word-wrap:break-word;"> <?php echo $order->PackageTitle; ?> </td> <td style="word-wrap:break-word;"> <?php echo $order->IMEINo; ?> </td> <td style="word-wrap:break-word;"> <?php $status_class=''; echo $status_class; switch ($order->CodeStatus) { case "Pending": $status_class='pending'; break; case "Completed": $status_class='complete'; break; case "Rejected": $status_class='reject'; break; case "In Process": $status_class='inprocess'; break; echo $status_class; } ?> <div class="<?php echo $status_class; ?>"><?php echo $order->CodeStatus; ?></div> </td> <td style="word-wrap:break-word;"> <?php if($order->Code==''){ echo '-'; }else{ echo '#'.$order->Code; } ?> </td> <td style="word-wrap:break-word;"> <!--verify--> <?php if ($verifyOrder == '1' && $showVerify == '1') { if($order->CodeStatusId == 2 && $order->Verify==0) { $till = addMinutesToDtTm($order->ReplyDtTm, $orderVerifyMins); $strData = daysHoursMinsDifferenceInDates($till, $currDtTm); ?> <a class="fancybox fancybox.ajax" href="<?php echo base_url()?>page/verifyorder?id=<? echo($order->CodeId);?>" ><i class="fa fa-refresh"></i></a> <? if($strData != '') { echo ' Expires in<br />'.$strData; } } else if($order->Verify==1) { echo '<span class="badge badge-pill badge-warning">Under Verification</span>'; } else { echo '-'; } } else { echo '-'; } echo '    '; if($cancelOrder == '1' && $order->CodeStatusId == '1' && $showCancel == '1' && $orderStatus != 'Processing') { ?> <a href="<?php echo base_url()?>page/imeiorders?cancel=1&orderId=<? echo($order->CodeId);?>" onclick="return confirm('<? echo $CUST_LBL_230; ?>')"><i class="fa fa-trash-o"></i></a> <? } else echo '-'; ?> </td> <td style="text-align: center;"> <a class="fancybox fancybox.ajax" title="Order Details" href="<?php echo base_url(); ?>page/iodetail?id=<?php echo $order->CodeId; ?>"><i class="fa icon-eye"></i> </a> </td> </tr> <?php } ?> <?php if (!count($latestFiveImeiOrders)) { ?> <tr> <td align="center" colspan="7">No Orders Found!</td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="tab-pane fade" id="tab_3_7"> <div class="table-responsive"> <table id="datatable" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <thead> <tr class="bg-primary"> <th><?php echo $this->lang->line('CUST_LBL_191'); ?></th> <th><?php echo $this->lang->line('CUST_CH_6'); ?></th> <th><?php echo $this->lang->line('CUST_MENU_CREDITS'); ?></th> <th>Vat</th> <th><?php echo $this->lang->line('CUST_LBL_192'); ?></th> <th><?php echo $this->lang->line('CUST_CH_127'); ?></th> <th><?php echo $this->lang->line('CUST_CH_126'); ?></th> <th><?php echo $this->lang->line('CUST_LBL_301'); ?></th> </tr> </thead> <tbody> <?php //echo"<pre>"; print_r($invoices); ?> <?php foreach ($client_invoices as $row) { $dtTm = explode(" ", $row->PaymentDtTm); $invCredits = $controller_instanse->decrypt($row->Credits); if ($invCredits == ''){$invCredits = '-';} $invoiceAmount = $controller_instanse->decrypt($row->Amount); if ($invoiceAmount == ''){$invoiceAmount = '-';} if($row->PaymentStatusId == 1){ ?> <tr> <td>#<?php echo $row->PaymentId; ?></td> <td><?php echo $row->PaymentDtTm; ?></td> <td><?php echo $invCredits; ?></td> <td><?php echo $row->Currency . ' ' . $row->Vat; ?></td> <td><?php echo $row->Currency . ' ' . $invoiceAmount; ?></td> <td><?php echo($row->PaymentMethod == '' ? '-' : $row->PaymentMethod); ?></td> <td align="center"><span class="badge badge-pill badge-<? echo $row->PaymentStatusId == '2' ? 'success' : 'danger'; ?>"><?php echo $row->PaymentStatus; ?></span> </td> <td> <a href="<?php echo base_url('page/invoice?id=') . $row->PaymentId; ?>" class="btn btn-primary waves-effect waves-light" role="button">Manage</a> </td> </tr> <?php }} ?> <?php if(empty($row->PaymentStatusId == 1)) { ?> <tr> <td colspan="999" align="center"><?php echo $this->lang->line('CUST_LBL_10'); ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="tab-pane fade" id="tab_4_7"> <div class="table-responsive"> <table id="datatable" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <thead> <tr class="bg-primary"> <th><?php echo $this->lang->line('CUST_LBL_191'); ?></th> <th><?php echo $this->lang->line('CUST_CH_6'); ?></th> <th><?php echo $this->lang->line('CUST_MENU_CREDITS'); ?></th> <th>Vat</th> <th><?php echo $this->lang->line('CUST_LBL_192'); ?></th> <th><?php echo $this->lang->line('CUST_CH_127'); ?></th> <th><?php echo $this->lang->line('CUST_CH_126'); ?></th> <th><?php echo $this->lang->line('CUST_LBL_301'); ?></th> </tr> </thead> <tbody> <?php //echo"<pre>"; print_r($invoices); ?> <?php foreach ($admin_invoices as $row) { $dtTm = explode(" ", $row->PaymentDtTm); $invCredits = $controller_instanse->decrypt($row->Credits); if ($invCredits == ''){$invCredits = '-';} $invoiceAmount = $controller_instanse->decrypt($row->Amount); if ($invoiceAmount == ''){$invoiceAmount = '-';} if($row->PaymentStatusId == 1){ ?> <tr> <td>#<?php echo $row->PaymentId; ?></td> <td><?php echo $row->PaymentDtTm; ?></td> <td><?php echo $invCredits; ?></td> <td><?php echo $row->Currency . ' ' . $row->Vat; ?></td> <td><?php echo $row->Currency . ' ' . $invoiceAmount; ?></td> <td><?php echo($row->PaymentMethod == '' ? '-' : $row->PaymentMethod); ?></td> <td align="center"><span class="badge badge-pill badge-<? echo $row->PaymentStatusId == '2' ? 'success' : 'danger'; ?>"><?php echo $row->PaymentStatus; ?></span> </td> <td> <a href="<?php echo base_url('page/invoice?id=') . $row->PaymentId; ?>" class="btn btn-primary waves-effect waves-light" role="button">Manage</a> </td> </tr> <?php }} ?> <?php if(empty($row->PaymentStatusId == 1)) { ?> <tr> <td colspan="999" align="center"><?php echo $this->lang->line('CUST_LBL_10'); ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <?php if(isset($newsPopup) && $newsPopup->DisableNews == 0 && $newsPopup->UserOpened == 0) { ?> <div class="modal" id="newsPopupModal" data-backdrop="static" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"><?= $newsPopup->NewsTitle ?: 'News' ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <?= $newsPopup->News ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary ThemeGreenBtn" data-dismiss="modal">Close</button> </div> </div> </div> </div> <script type="text/javascript"> $(function(){ $('#newsPopupModal').modal('show'); }); </script> <?php } ?> <!-- /content area --> <script src="<?php echo base_url('assets/js/functions.js?v='.$this->config->item('assets_version'));?>"></script> <script> $('document').ready(function () { $('.fancybox').fancybox(); }); function load_fancybox(val){ var url=val; $.fancybox({ autoSize: true, href: url, type: 'ajax' }); return false; } var baseurl = "<?php echo base_url() ?>"; function getServicesSerach(val){ var csrfName = '<?php echo $this->security->get_csrf_hash(); ?>'; console.log(csrfName,val); $.ajax({ type: "POST", data: {csrf_test_name:csrfName,id:val}, url:baseurl+'dashboard/serviceSearch', success:function(response){ $("#searchData").html(response); } }); } function getStatusSerach(val){ var csrfName = '<?php echo $this->security->get_csrf_hash(); ?>'; console.log(csrfName,val); $.ajax({ type: "POST", data: {csrf_test_name:csrfName,status:val}, url:baseurl+'dashboard/statusSearch', success:function(response){ $("#searchData").html(response); } }); } function getImeiSerach(val){ console.log(val.length); if(val.length>=0){ var csrfName = '<?php echo $this->security->get_csrf_hash(); ?>'; console.log(csrfName,val); $.ajax({ type: "POST", data: {csrf_test_name:csrfName,imei:val}, url:baseurl+'dashboard/imeiSearch', success:function(response){ $("#searchData").html(response); } }); } } </script>