Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command
This commit is contained in:
24
app/Livewire/Admin/DashboardOverview.php
Normal file
24
app/Livewire/Admin/DashboardOverview.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Admin;
|
||||
|
||||
use App\Services\AdminDashboardService;
|
||||
use Livewire\Component;
|
||||
|
||||
class DashboardOverview extends Component
|
||||
{
|
||||
public array $stats = [];
|
||||
|
||||
public function mount(AdminDashboardService $service): void
|
||||
{
|
||||
$this->stats = $service->stats();
|
||||
}
|
||||
|
||||
public function render(AdminDashboardService $service)
|
||||
{
|
||||
return view('livewire.admin.dashboard-overview', [
|
||||
'recentTickets' => $service->recentTickets(),
|
||||
'recentDecisions' => $service->recentDecisions(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user