| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | 
							- <?php
 - 
 - namespace App\Filament\Pages;
 - 
 - use Filament\Pages\Page;
 - use Illuminate\Support\Facades\Auth;
 - use Illuminate\Support\Facades\Gate;
 - use Wallo\FilamentCompanies\FilamentCompanies;
 - 
 - class DefaultSetting extends Page
 - {
 -     public mixed $company;
 - 
 -     protected static ?string $navigationIcon = 'heroicon-o-adjustments';
 - 
 -     protected static ?string $navigationLabel = 'Default';
 - 
 -     protected static ?string $navigationGroup = 'Settings';
 - 
 -     protected static ?string $title = 'Default';
 - 
 -     protected static string $view = 'filament.pages.default-setting';
 - 
 -     public function mount($company): void
 -     {
 -         $this->company = FilamentCompanies::newCompanyModel()->findOrFail($company);
 -         $this->authorizeAccess();
 -     }
 - 
 -     protected function authorizeAccess(): void
 -     {
 -         Gate::authorize('view', $this->company);
 -     }
 - 
 -     public static function getSlug(): string
 -     {
 -         return '{company}/settings/default';
 -     }
 - 
 -     public static function getUrl(array $parameters = [], bool $isAbsolute = true): string
 -     {
 -         return route(static::getRouteName(), ['company' => Auth::user()->currentCompany], $isAbsolute);
 -     }
 - 
 -     protected function getBreadcrumbs(): array
 -     {
 -         return [
 -             'default' => 'Default',
 -         ];
 -     }
 - }
 
 
  |