52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\SerpChecks;
|
|
|
|
use App\Filament\Resources\SerpChecks\Pages\ListSerpChecks;
|
|
use App\Filament\Resources\SerpChecks\Pages\ViewSerpCheck;
|
|
use App\Filament\Resources\SerpChecks\Schemas\SerpCheckInfolist;
|
|
use App\Filament\Resources\SerpChecks\Tables\SerpChecksTable;
|
|
use App\Models\SerpCheck;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
|
|
class SerpCheckResource extends Resource
|
|
{
|
|
protected static ?string $model = SerpCheck::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedChartBar;
|
|
|
|
public static function getNavigationLabel(): string
|
|
{
|
|
return __('ui.serp_checks');
|
|
}
|
|
|
|
public static function getModelLabel(): string
|
|
{
|
|
return __('resources.serp_check');
|
|
}
|
|
|
|
public static function getPluralModelLabel(): string
|
|
{
|
|
return __('ui.serp_checks');
|
|
}
|
|
|
|
public static function infolist(Schema $s): Schema
|
|
{
|
|
return SerpCheckInfolist::configure($s);
|
|
}
|
|
|
|
public static function table(Table $t): Table
|
|
{
|
|
return SerpChecksTable::configure($t);
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return ['index' => ListSerpChecks::route('/'), 'view' => ViewSerpCheck::route('/{record}')];
|
|
}
|
|
}
|