uawdijnntqw1x1x1
IP : 216.73.216.130
Hostname : it-staging-server
Kernel : Linux it-staging-server 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
forge
/
stage.sksb.smartcon-survey.com
/
app
/
Services
/
..
/
Livewire
/
TopicsTable.php
/
/
<?php namespace App\Livewire; use App\Models\Topic; use Livewire\Component; use Livewire\WithPagination; class TopicsTable extends Component { use WithPagination; public $search = ''; public $selected = []; public $disableDelete = true; public $paginationLimit = 10; public function deleteSelectedContacts() { if (count($this->selected) > 0) { Topic::destroy($this->selected); } } public function render() { $this->disableDelete = count($this->selected) === 0; return view('livewire.topics-table', [ 'topics' => Topic::search($this->search) ->orderBy('created_at', 'desc') ->simplePaginate($this->paginationLimit), ]); } public function toggleAllCheckboxes($checkboxStatus) { if (count($this->selected) > 0 || $checkboxStatus === false) { $this->selected = []; } else { $topics = Topic::search($this->search) ->orderBy('created_at', 'desc') ->simplePaginate($this->paginationLimit); foreach ($topics as $topic) { array_push($this->selected, $topic->id); } } } public function pageLimit($limit) { $this->paginationLimit = $limit; } }
/home/forge/stage.sksb.smartcon-survey.com/app/Services/../Livewire/TopicsTable.php