wip
This commit is contained in:
1 parent
ac41bc317a
commit
32cc345125
6 files changed
+457
-414
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use BackedEnum;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\ActionGroup;
|
||||
use Filament\Pages\Page;
|
||||
|
||||
class EventMapper extends Page
|
||||
{
|
||||
protected string $view = 'filament.pages.event-mapper';
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'phosphor-arrows-in-line-horizontal';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
ActionGroup::make([
|
||||
Action::make('bet365')
|
||||
->visible(fn (): bool => auth()->user()->hasRole('mapper_source_betsapi') && auth()->user()->provider_id != 2)
|
||||
->action(fn() => User::),
|
||||
])
|
||||
->label('Swop Bookmaker')
|
||||
->icon('phosphor-dots-three-vertical')
|
||||
->color('primary')
|
||||
->button(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user