Tables\Columns\TextColumn::make('users_count') ->searchable() ->sortable() -> formatStateUsing(fn($state) => $state+1) ->counts('users'),
formatStateUsing
TextColumn::make('cost_usd') ->placeholder('In progress') ->label('Cost') ->money('usd'),
TextColumn::make('cost_usd') ->label('Cost') ->formatStateUsing( fn (?float $state): string => $state ? '$' . number_format($state, 2) : 'In progress' ),
->hidden(
->when(
return $table // ->heading(__('admin.widgets.top_sales')) ->header(new HtmlString( '<h3 class="fi-ta-header-heading text-base font-semibold leading-6 -mb-[29px] translate-y-4 sm:pl-6 pl-3">' . __('admin.widgets.top_sales') . '</h3>' ))