schema([ TextEntry::make('user.name'), TextEntry::make('user.email'), TextEntry::make('position.title'), TextEntry::make('description') ->getStateUsing(function ($record) { return new HtmlString($record->description); }), TextEntry::make('document') ->label('CV') ->url( fn($record) => route('documents.download', $record), shouldOpenInNewTab: true ), ]); } public static function table(Table $table): Table { return ApplicationsTable::configure($table); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => ListApplications::route('/'), 'create' => CreateApplication::route('/create'), 'edit' => EditApplication::route('/{record}/edit'), 'view' => ViewApplication::route('/{record}/view'), ]; } }