How to number the data in the table?
For example when I have 10 values in the table with id from 11 to 20, how do I display the number from 1 to 10 instead of according to the id which is from 11 to 20?
4 Replies
Thank you very much
❤️
TextColumn::make('no')->state(
static function (HasTable $livewire, stdClass $rowLoop): string {
return (string) (
$rowLoop->iteration +
($livewire->getTableRecordsPerPage() * (
$livewire->getTablePage() - 1
))
);
}
),
yes i solved that problem, many thanks for your help