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


Viewing file:     PlanController.php (2.57 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\Customer;
use 
App\Models\CustomerMealPlanDetail;
use 
App\Models\CustomerWorkOutPlanTask;
use 
App\Models\MealPlan;
use 
App\Models\WorkOutPlan;
use 
Illuminate\Http\Request;

class 
PlanController extends Controller
{
    public function 
meal_plan()
    {
        
$data=[];
        
$customer auth('customer')->user();
        
$current_plan $customer->plan;

        if (!
$current_plan || !$current_plan->meal_plan || $current_plan->meal_plan == 'no') {
            
$data['upgrade_plan']='true';
        }
        if (
$customer->current_meal_plan) {
            
$data['customer_meal_plan'] =$customer->current_meal_plan;
        }

        return 
view('customer.plans.meal_plan'$data);

    }


    public function 
workout_plan()
    {

        
$customer auth('customer')->user();
        
$current_plan $customer->plan;

        
$data=[];

        if (!
$current_plan || !$current_plan->workout_plan || $current_plan->workout_plan == 'no') {
            
$data['upgrade_plan']='true';
        }
        if (
$customer->current_workout_plan) {
            
$data['customer_workout_plan'] = $customer->current_workout_plan()->with('customer_workout_sections')->first();
        }



        return 
view('customer.plans.workout_plan'$data);

    }



    public function 
work_out_plan_status(Request $request){
        try {
            
$request->validate([
                
'workout_task_status' => 'required',
                
'id'=>'required'
            
]);

            
$work_out_status CustomerWorkOutPlanTask::findOrFail($request->id);
            
$work_out_status->status$request->workout_task_status;
            
$work_out_status->save();
            return 
response()->json(['message' => 'Status change successfully.','status'=>'success']);
        } catch (
\Exception $e) {
            return 
response()->json(['message' => 'Error, Something wrong.','status'=>'failed']);
        }


    }
    public function 
meal_plan_status(Request $request){
        try {
            
$request->validate([
                
'status' => 'required',
                
'id'=>'required'
            
]);

            
$meal_plan_status CustomerMealPlanDetail::findOrFail($request->id);
            
$meal_plan_status->status$request->status;
            
$meal_plan_status->save();
            return 
response()->json(['message' => 'Status change successfully.','status'=>'success']);
        } catch (
\Exception $e) {
            return 
response()->json(['message' => 'Error, Something wrong.','status'=>'failed']);
        }


    }

}

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