!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:     VendorShopDataTable.php (4.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package VendorShopDataTable
 * @author TechVillage <support@techvill.org>
 * @contributor Al Mamun <[almamun.techvill@gmail.com]>
 * @created 23-10-2021
 */

namespace Modules\Shop\DataTables;

use 
App\DataTables\DataTable;
use 
App\Models\{
    
VendorUser
};
use 
Illuminate\Support\Facades\Auth;
use 
Modules\Shop\Http\Models\Shop;

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

            ->
editColumn('name', function ($shops) {
                return 
wrapIt(ucfirst($shops->name), 10, ['columns' => 5]);
            })->
editColumn('email', function ($shops) {
                return 
wrapIt($shops->email20, ['columns' => 5]);
            })->
editColumn('website', function ($shops) {
                return 
wrapIt($shops->website20, ['columns' => 5]);
            })->
editColumn('phone', function ($shops) {
                return 
wrapIt($shops->phone15, ['columns' => 5]);
            })->
editColumn('fax', function ($shops) {
                return 
wrapIt($shops->fax15, ['columns' => 5]);
            })->
editColumn('status', function ($shops) {
                return 
statusBadges(lcfirst($shops->status));
            })->
editColumn('action', function ($shops) {
                
$edit '<a title="' __('Edit :x', ['x' => __('Shop')]) . '" href="' route('vendor.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('vendor.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\Vendor\ShopController@edit'])) {
                    
$str .= $edit;
                }
                if (
$this->hasPermission(['Modules\Shop\Http\Controllers\Vendor\ShopController@destroy'])) {
                    
$str .= $delete;
                }
                return 
$str;
            })

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

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {

        
$shops Shop::select('id''name''email''website''phone''fax''status')->where('vendor_id'session()->get('vendorId'));
        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' => 'email''name' => 'email''title' => __('Email')])
        ->
addColumn(['data' => 'website''name' => 'website''title' => __('Website')])
        ->
addColumn(['data' => 'phone''name' => 'phone''title' => __('Phone')])
        ->
addColumn(['data' => 'fax''name' => 'fax''title' => __('Fax')])
        ->
addColumn(['data' => 'status''name' => 'status''title' => __('Status')])

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