where('type', DocumentType::Invoice); } public static function form(Form $form): Form { return DocumentResource::form($form); } public static function table(Table $table): Table { return DocumentResource::table($table); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListInvoices::route('/'), 'create' => Pages\CreateInvoice::route('/create'), 'edit' => Pages\EditInvoice::route('/{record}/edit'), ]; } }