Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Admin\Resources\TicketResource\Widgets;
use App\Models\Ticket;
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;
class TicketsOverView extends BaseWidget
{
protected static ?string $pollingInterval = '20s';
protected function getStats(): array
{
return [
Stat::make('Open Tickets', Ticket::where('status', 'open')->count())
->color('success'),
Stat::make('Closed Tickets', Ticket::where('status', 'closed')->count())
->color('danger'),
Stat::make('Replied Tickets', Ticket::where('status', 'replied')->count())
->color('gray'),
];
}
}