mirror of
https://github.com/anna-sara/vbytes_lan.git
synced 2025-12-24 13:27:12 +01:00
51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Participants;
|
|
|
|
use App\Filament\Resources\Participants\Pages\CreateParticipant;
|
|
use App\Filament\Resources\Participants\Pages\EditParticipant;
|
|
use App\Filament\Resources\Participants\Pages\ListParticipants;
|
|
use App\Filament\Resources\Participants\Schemas\ParticipantForm;
|
|
use App\Filament\Resources\Participants\Tables\ParticipantsTable;
|
|
use App\Models\Participant;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner;
|
|
|
|
class ParticipantResource extends Resource
|
|
{
|
|
protected static ?string $model = Participant::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
|
|
|
protected static ?string $recordTitleAttribute = 'first_name';
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return ParticipantForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return ParticipantsTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListParticipants::route('/'),
|
|
'create' => CreateParticipant::route('/create'),
|
|
//'edit' => EditParticipant::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|