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

namespace Modules\Popup\DataTables;

use 
App\DataTables\DataTable;
use 
Modules\Popup\Entities\Popup;

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

            ->
editColumn('name', function ($popup) {
                return  
wrapIt($popup->name10, ['columns' => 1]);
            })->
editColumn('show_time', function ($popup) {
                return !empty(
$popup->show_time) ? $popup->show_time ' sec' '';
            })->
addColumn('login_enabled', function ($popup) {
                return 
$popup->login_enabled == __('Yes') : __('No');
            })->
editColumn('start_date', function ($popup) {
                return !empty(
$popup->start_date) ? formatDate($popup->start_date) : '';
            })->
editColumn('end_date', function ($popup) {
                return !empty(
$popup->end_date) ? formatDate($popup->end_date) : '';
            })->
addColumn('status', function ($popup) {
                return 
statusBadges($popup->status);
            })->
addColumn('action', function ($popup) {
                
$show '<a title="' __('Show') . '" href="' route('popup.show', ['id' => $popup->id]) . '" class="btn btn-xs btn-outline-dark"><i class="feather icon-eye"></i></a>&nbsp';

                
$edit '<a title="' __('Edit :?', ['?' => __('popup')]) . '" href="' route('popup.edit', ['id' => $popup->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('popup.delete', ['id' => $popup->id]) . '" id="delete-popup-'$popup->id '" accept-charset="UTF-8" class="display_inline">
                        ' 
csrf_field() . '
                        <button title="' 
__('Delete :?', ['?' => __('popup')]) . '" class="btn btn-xs btn-danger confirm-delete" type="button" data-id=' $popup->id ' data-label="Delete" data-delete="popup" data-bs-toggle="modal" data-bs-target="#confirmDelete" data-title="' __('Delete :?', ['?' => __('popup')]) . '" data-message="' __('Are you sure to delete this?') . '">
                        <i class="feather icon-trash-2"></i>
                        </button>
                        </form>'
;
                
$str '';
                if (
$this->hasPermission(['Modules\Popup\Http\Controllers\PopupController@show'])) {
                    
$str .= $show;
                }
                if (
$this->hasPermission(['Modules\Popup\Http\Controllers\PopupController@edit'])) {
                    
$str .= $edit;
                }
                if (
$this->hasPermission(['Modules\Popup\Http\Controllers\PopupController@destroy'])) {
                    
$str .= $delete;
                }
                return 
$str;
            })

            ->
rawColumns(['id''name''type''show_time''start_date''end_date''login_enabled''status''action'])
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$popups Popup::select('id''name''type''show_time''start_date''end_date''login_enabled''status')->filter();
        return 
$this->applyScopes($popups);
    }

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

        ->
addColumn(['data' => 'name''name' => 'name''title' => __('Name')])
        ->
addColumn(['data' => 'type''name' => 'type''title' => __('Popup Type')])
        ->
addColumn(['data' => 'show_time''name' => 'show_time''title' => __('Show after')])
        ->
addColumn(['data' => 'login_enabled''name' => 'login_enabled''title' => __('Login required')])
        ->
addColumn(['data' => 'start_date''name' => 'start_date''title' => __('Start Date')])
        ->
addColumn(['data' => 'end_date''name' => 'end_date''title' => __('End Date')])
        ->
addColumn(['data' => 'status''name' => 'status''title' => __('Status')])

        ->
addColumn(['data'=> 'action''name' => 'action''title' => __('Action'), 'width' => '12%',
        
'visible' => $this->hasPermission(['Modules\Popup\Http\Controllers\PopupController@edit''Modules\Popup\Http\Controllers\PopupController@destroy''Modules\Popup\Http\Controllers\PopupController@show']),
        
'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 ]--