How to split CheckboxList in Laravel/Filament resource via department_id

please how to modify the Filament Resource for adding/editing as follows:

i need Unis listing in CheckboxList to be split into columns by Unit->department_id. Currently, all the units are listed together, but for the sake of overview, I want to have many of them in columns so that each column contains only units with the same department_id.
my code :

<?php
namespace AppFilamentResources;

use FilamentForms;
use FilamentResourcesResource;
use AppFilamentResourcesClientResourcePages;
use FilamentTables;
use FilamentTablesTable;
use FilamentFormsComponentsCheckboxList;
use FilamentFormsComponentsFieldset;
use FilamentFormsComponentsGrid;
use AppModelsClient;
use CarbonCarbon;
use AppModelsDepartment;
use AppModelsUnit;

class ClientResource extends Resource
{
    protected static ?string $model = Client::class;

    protected static ?string $navigationIcon = 'heroicon-o-briefcase';

    public static function form(FormsForm $form): FormsForm
    {
        return $form
            ->schema([
                Fieldset::make('Base informations')
                    ->schema([
                        FormsComponentsTextInput::make('client_name')
                            ->required()
                            ->maxLength(255)
                            ->label('Name'),
                        FormsComponentsSelect::make('department_id')
                            ->label('Client zone')
                            ->options(Department::all()->pluck('name', 'id'))
                            ->reactive()
                            ->required(),
                        FormsComponentsDatePicker::make('valid_from')
                            ->required()
                            ->default(now())
                            ->label('Valid From'),
                        FormsComponentsDatePicker::make('valid_to')
                            ->required()
                            ->default(Carbon::now()->addYear())
                            ->label('Valid To'),
                        FormsComponentsToggle::make('enabled')
                            ->label('Enabled')
                            ->default(true)
                            ->inline(false),
                    ])
                    ->columns([
                        'sm' => 2,
                        'md' => 2,
                        'lg' => 3,
                        'xl' => 4,
                        '2xl' => 5,
                    ]),

                Fieldset::make('Units by Department')
                    ->schema([
                        CheckboxList::make('units')
                            ->label('Units')
                            ->options(
                                Unit::all()
                                    ->sortBy('department_id')
                                    ->mapWithKeys(function ($unit) {
                                        return [$unit->id => $unit->name . ' (' . $unit->department->name . ')'];
                                    })
                                    ->toArray()
                            )
                            ->columns(3)
                            ->searchable()
                            ->bulkToggleable(),
                    ])
            ]);
    }

    public static function table(TablesTable $table): TablesTable
    {
        return $table
            ->columns([
                TablesColumnsTextColumn::make('client_name')
                    ->label('Name'),
                TablesColumnsTextColumn::make('department.name')
                    ->label('Client zone'),
                TablesColumnsTextColumn::make('valid_from')
                    ->date()
                    ->label('Valid From'),
                TablesColumnsTextColumn::make('valid_to')
                    ->date()
                    ->label('Valid To'),
                TablesColumnsTagsColumn::make('units.name')
                    ->label('Units'),
                TablesColumnsTextColumn::make('created_at')
                    ->dateTime()
                    ->label('Created At'),
                TablesColumnsTextColumn::make('updated_at')
                    ->dateTime()
                    ->label('Updated At'),
            ])
            ->filters([
                // Možnosti filtrov, ak sú potrebné
            ])
            ->actions([
                TablesActionsEditAction::make(),
                TablesActionsDeleteAction::make(),
            ])
            ->bulkActions([
                TablesActionsBulkActionGroup::make([
                    TablesActionsDeleteBulkAction::make(),
                ]),
            ]);
    }

    public static function getRelations(): array
    {
        return [
            // Definujte vzťahy, ak je to potrebné
        ];
    }

    public static function getPages(): array
    {
        return [
            'index' => PagesListClients::route('/'),
            'create' => PagesCreateClient::route('/create'),
            'edit' => PagesEditClient::route('/{record}/edit'),
        ];
    }
}

Many thanks for your help guys

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật