Build & Deploy / build (push) Successful in 18s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Routines;
|
|
|
|
use App\Filament\Resources\Routines\Pages\CreateRoutine;
|
|
use App\Filament\Resources\Routines\Pages\EditRoutine;
|
|
use App\Filament\Resources\Routines\Pages\ListRoutines;
|
|
use App\Filament\Resources\Routines\Schemas\RoutineForm;
|
|
use App\Filament\Resources\Routines\Tables\RoutinesTable;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use Functional\Routines\Models\Routine;
|
|
|
|
class RoutineResource extends Resource
|
|
{
|
|
protected static ?string $model = Routine::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return RoutineForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return RoutinesTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListRoutines::route('/'),
|
|
'create' => CreateRoutine::route('/create'),
|
|
'edit' => EditRoutine::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|