You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConnectedAccount.php 993B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Filament\Company\Pages\Service;
  3. use Filament\Actions\Action;
  4. use Filament\Pages\Page;
  5. use Filament\Support\Enums\MaxWidth;
  6. use Illuminate\Contracts\Support\Htmlable;
  7. class ConnectedAccount extends Page
  8. {
  9. protected static ?string $title = 'Connected Accounts';
  10. protected static ?string $slug = 'services/connected-accounts';
  11. protected static string $view = 'filament.company.pages.service.connected-account';
  12. public function getTitle(): string | Htmlable
  13. {
  14. return translate(static::$title);
  15. }
  16. public static function getNavigationLabel(): string
  17. {
  18. return translate(static::$title);
  19. }
  20. protected function getHeaderActions(): array
  21. {
  22. return [
  23. Action::make('connect')
  24. ->label('Connect account')
  25. ->dispatch('createToken'),
  26. ];
  27. }
  28. public function getMaxContentWidth(): MaxWidth | string | null
  29. {
  30. return MaxWidth::ScreenLarge;
  31. }
  32. }