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


Viewing file:     AttributeGroupDataTable.php (5.2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package AttributeGroupDataTable
 * @author TechVillage <support@techvill.org>
 * @contributor Sakawat Hossain Rony <[sakawat.techvill@gmail.com]>
 * @contributor Al Mamun <[almamun.techvill@gmail.com]>
 * @created 06-09-2021
 * @modified 04-10-2021
 */

namespace App\DataTables;

use 
App\Models\{
    
AttributeGroup
};
use 
App\DataTables\DataTable;

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

            ->
addColumn('name', function ($attributeGroups) {
                return 
'<a href="' route('attributeGroup.edit', ['id' => $attributeGroups->id]) . '">' wrapIt($attributeGroups->name10, ['columns' => 'trim' => true'trimLength' => 20]) . '</a>';
            })

            ->
addColumn('created_at', function ($attributes) {
                return 
$attributes->format_created_at;
            })

            ->
addColumn('vendor', function ($attributeGroups) {
                return 
wrapIt(optional($attributeGroups->vendor)->name10, ['columns' => 2]);
            })->
addColumn('status', function ($attributeGroups) {
                return 
statusBadges(lcfirst($attributeGroups->status));
            })->
addColumn('action', function ($attributeGroups) {
                
$edit '<a title="' __('Edit') . '" href="' route('attributeGroup.edit', ['id' => $attributeGroups->id]) .'" class="btn btn-xs btn-primary"><i class="feather icon-edit neg-transition-scale-svg "></i></a>&nbsp;';

                
$delete '<form method="post" action="' route('attributeGroup.destroy', ['id' => $attributeGroups->id]) .'" id="delete-user-'$attributeGroups->id '" accept-charset="UTF-8" class="display_inline">
                        ' 
method_field('DELETE') . '
                        ' 
csrf_field() . '
                        <button title="' 
__('Delete') . '" class="btn btn-xs btn-danger confirm-delete" type="button" data-id=' $attributeGroups->id ' data-delete="user" data-label="Delete" data-bs-toggle="modal" data-bs-target="#confirmDelete" data-title="' __('Delete :x', ['x' => __('Attribute Group')]) . '" data-message="' __('Are you sure to delete this?') . '">
                        <i class="feather icon-trash-2"></i>
                        </button>
                        </form>'
;

                
$str '';
                if (
$this->hasPermission(['App\Http\Controllers\AttributeGroupController@edit'])) {
                    
$str .= $edit;
                }
                if (
$this->hasPermission(['App\Http\Controllers\AttributeGroupController@destroy'])) {
                    
$str .= $delete;
                }
                return 
$str;
            })

            ->
rawColumns(['vendor''name''status''action'])
            ->
filter(function ($instance){
                if (
in_array(request('status'), getStatus())) {
                    
$instance->where('status'request('status'));
                }
                if (
request('vendor')) {
                    
$instance->whereHas('vendor', function ($query) {
                        
$query->where('id'request('vendor'));
                    });
                }
                if (isset(
request('search')['value'])) {
                    
$keyword xss_clean(request('search')['value']);
                    if (!empty(
$keyword)) {
                        
$instance->where(function ($query) use ($keyword) {
                            
$query->WhereLike('name'$keyword)
                                ->
OrWhereLike('status'$keyword)
                                ->
orWhereHas('vendor', function ($query)use($keyword) {
                                    
$query->WhereLike('name'$keyword);
                                });
                        });
                    }
                }
            })
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$attributeGroups AttributeGroup::query()->with(['vendor']);
        return 
$this->applyScopes($attributeGroups);
    }

    
/*
    * DataTable HTML
    *
    * @return \Yajra\DataTables\Html\Builder
    */
    
public function html()
    {
        return 
$this->builder()

            ->
addColumn(['data' => 'name''name' => 'name''title' => __('Name')])

            ->
addColumn(['data' => 'vendor''name' => 'vendor''title' => __('Vendor')])

            ->
addColumn(['data' => 'status''name' => 'status''title' => __('Status')])

            ->
addColumn(['data' => 'created_at''name' => 'created_at''title' => __('Created at')])

            ->
addColumn(['data'=> 'action''name' => 'action''title' => __('Action'), 'width' => '5%',
                
'visible' => $this->hasPermission(['App\Http\Controllers\AttributeGroupController@edit''App\Http\Controllers\AttributeGroupController@destroy']),
                
'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.0044 ]--