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


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

namespace App\Exports;

use 
Maatwebsite\Excel\Concerns\{
    
FromQuery,
    
WithHeadings,
    
WithMapping
};
use 
Modules\Ticket\Http\Models\Thread;

class 
TicketsExport implements FromQueryWithHeadingsWithMapping
{
    
/**
     * @return \Illuminate\Support\Collection
     */
    
public function query()
    {
        
$from     request('from');
        
$to       request('to');
        
$status   request('status');
        
$departmentId request('department_id');
        
$assigneeId request('assignee');
        
$ticketList = (new Thread())->getAllData($from$to$departmentId$status$assigneeId)->orderBy('last_reply','desc');
        return 
$ticketList;
    }

    
/**
     * [Here we are putting Headings of The CSV]
     *
     * @return [array] [Excel Headings]
     */
    
public function headings(): array
    {
        return [
            
'Subject',
            
'Assignee',
            
'Department',
            
'Vendor',
            
'Status',
            
'Priority',
            
'Last Reply',
            
'Created At'
        
];
    }

    
/**
     * [By adding WithMapping you map the data that needs to be added as row. This way you have control over the actual source for each column. In case of using the Eloquent query builder]
     * 
     * @param [object] $userList [It has users table info and roles table info]
     * @return [array]            [comma separated value will be produced]
     */
    
public function map($ticket): array
    {
        return [
            
$ticket->subject,
            
optional($ticket->assignedMember)->name,
            
optional($ticket->department)->name,
            
optional($ticket->vendor)->name,
            
optional($ticket->threadStatus)->name,
            
optional($ticket->priority)->name,
            
$ticket->last_reply && $ticket->last_reply != $ticket->date ?  timeZoneFormatDate($ticket->last_reply).'  '.timeZoneGetTime($ticket->last_reply)  :  __('Not Reply Yet'),
            
timeZoneFormatDate($ticket->date).'   '.timeZoneGetTime($ticket->date)
        ];
    }
}

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