27 lines
519 B
PHP
27 lines
519 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Admin;
|
|
|
|
use App\Services\AdminTicketService;
|
|
use Livewire\Component;
|
|
use Livewire\WithPagination;
|
|
|
|
class TicketMonitor extends Component
|
|
{
|
|
use WithPagination;
|
|
|
|
public int $perPage = 10;
|
|
|
|
public function updatedPerPage(): void
|
|
{
|
|
$this->resetPage();
|
|
}
|
|
|
|
public function render(AdminTicketService $service)
|
|
{
|
|
return view('livewire.admin.ticket-monitor', [
|
|
'tickets' => $service->paginateWithDecision($this->perPage),
|
|
]);
|
|
}
|
|
}
|