-
-
Notifications
You must be signed in to change notification settings - Fork 339
Expand file tree
/
Copy pathTimesheetDashboard.php
More file actions
44 lines (35 loc) · 977 Bytes
/
TimesheetDashboard.php
File metadata and controls
44 lines (35 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace App\Filament\Pages;
use App\Filament\Widgets\Timesheet\ActivitiesReport;
use App\Filament\Widgets\Timesheet\MonthlyReport;
use App\Filament\Widgets\Timesheet\WeeklyReport;
use Filament\Pages\Dashboard;
class TimesheetDashboard extends Dashboard
{
protected static ?string $slug = 'timesheet-dashboard';
protected static ?int $navigationSort = 2;
public function getColumns(): int | array
{
return 6;
}
public static function getNavigationLabel(): string
{
return __('Dashboard');
}
public static function getNavigationGroup(): ?string
{
return __('Timesheet');
}
public static function shouldRegisterNavigation(): bool
{
return auth()->user()->can('View timesheet dashboard');
}
public function getWidgets(): array
{
return [
MonthlyReport::class,
ActivitiesReport::class,
WeeklyReport::class
];
}
}