31 lines
852 B
PHP
31 lines
852 B
PHP
<?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(),
|
|
];
|
|
}
|
|
}
|