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


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

namespace Modules\Shop\DataTables;

use 
App\DataTables\DataTable;
use 
Modules\Shop\Http\Models\Shop;

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

            ->
editColumn('vendor.name', function ($shops) {
                return 
'<a href="' route('vendors.edit', ['id' => $shops->vendor_id]) . '?shop=true' '">' wrapIt($shops->vendor->name20, ['columns' => 5]) . '</a>';
            })->
editColumn('name', function ($shops) {
                return 
wrapIt(ucfirst($shops->name), 10, ['columns' => 5]);
            })->
editColumn('email', function ($shops) {
                return 
wrapIt($shops->email10, ['columns' => 5]);
            })->
editColumn('website', function ($shops) {
                return 
wrapIt($shops->website20, ['columns' => 5]);
            })->
editColumn('phone', function ($shops) {
                return 
wrapIt($shops->phone15, ['columns' => 5]);
            })->
editColumn('status', function ($shops) {
                return 
statusBadges($shops->status);
            })->
addColumn('action', function ($shops) {
                
$edit '<a title="' __('Edit :x', ['x' => __('Shop')]) . '" href="' route('shop.edit', ['id' => $shops->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('shop.destroy', ['id' => $shops->id]) . '" id="delete-shops-'$shops->id '" accept-charset="UTF-8" class="display_inline">
                        ' 
csrf_field() . '
                        <button title="' 
__('Delete :x', ['x' => __('Shop')]) . '" class="btn btn-xs btn-danger" type="button" data-id=' $shops->id ' data-label="Delete" data-delete="shops" data-bs-toggle="modal" data-bs-target="#confirmDelete" data-title="' __('Delete :x', ['x' => __('Shop')]) . '" data-message="' __('Are you sure to delete this?') . '">
                        <i class="feather icon-trash-2"></i>
                        </button>
                        </form>'
;
                
$str '';
                if (
$this->hasPermission(['Modules\Shop\Http\Controllers\ShopController@edit'])) {
                    
$str .= $edit;
                }
                if (
$this->hasPermission(['Modules\Shop\Http\Controllers\ShopController@destroy'])) {
                    
$str .= $delete;
                }
                return 
$str;
            })

            ->
rawColumns(['vendor.name''name''email''website''phone''status''action'])
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$shops Shop::select('id''name''email''website''phone''status''vendor_id')->with('vendor:id,name')->filter();
        return 
$this->applyScopes($shops);
    }

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

        ->
addColumn(['data' => 'name''name' => 'name''title' => __('Shop Name')])
        ->
addColumn(['data' => 'vendor.name''name' => 'name''title' => __('Vendor')])
        ->
addColumn(['data' => 'email''name' => 'email''title' => __('Email')])
        ->
addColumn(['data' => 'website''name' => 'website''title' => __('Website')])
        ->
addColumn(['data' => 'phone''name' => 'phone''title' => __('Phone')])
        ->
addColumn(['data' => 'status''name' => 'status''title' => __('Status')])

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