schema([ TextInput::make('name')->required()->maxLength(100), TextInput::make('code')->required()->maxLength(2)->unique(ignoreRecord: true), TextInput::make('phone_code')->maxLength(10), Toggle::make('is_active')->default(true), ]); } public static function table(Table $table): Table { return $table->columns([ TextColumn::make('id')->sortable(), TextColumn::make('name')->searchable()->sortable(), TextColumn::make('code'), TextColumn::make('phone_code'), IconColumn::make('is_active')->boolean(), ])->actions([EditAction::make(), DeleteAction::make()]); } public static function getPages(): array { return [ 'index' => Pages\ListLocations::route('/'), 'create' => Pages\CreateLocation::route('/create'), 'edit' => Pages\EditLocation::route('/{record}/edit'), ]; } }