schema([ TextInput::make('name') ->required() ->unique(), TextInput::make('bab') ->required() ->unique(), TextInput::make('hb') ->required() ->unique(), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('id') ->sortable(), TextColumn::make('name') ->sortable() ->searchable(), TextColumn::make('bab') ->sortable() ->searchable(), TextColumn::make('hb') ->sortable() ->searchable(), TextColumn::make('created_at') ->label('Created at') ->dateTime() ->sortable() ->sinceTooltip() ->formatStateUsing(fn (?Carbon $state) => $state?->format('H:i, d.m.Y')), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListBanks::route('/'), 'create' => Pages\CreateBank::route('/create'), 'edit' => Pages\EditBank::route('/{record}/edit'), ]; } }