mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
sort by pills
This commit is contained in:
@@ -29,6 +29,7 @@ class BookCaseTable extends DataTableComponent
|
|||||||
{
|
{
|
||||||
$this->setPrimaryKey('id')
|
$this->setPrimaryKey('id')
|
||||||
->setAdditionalSelects(['id', 'homepage'])
|
->setAdditionalSelects(['id', 'homepage'])
|
||||||
|
->setDefaultSort('orange_pills_count', 'desc')
|
||||||
->setThAttributes(function (Column $column) {
|
->setThAttributes(function (Column $column) {
|
||||||
return [
|
return [
|
||||||
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',
|
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',
|
||||||
|
|||||||
@@ -27,11 +27,12 @@ return [
|
|||||||
|
|
||||||
// All the levels for badge
|
// All the levels for badge
|
||||||
'badge_levels' => [
|
'badge_levels' => [
|
||||||
'beginner' => 1,
|
'No-Coiner' => 0,
|
||||||
'intermediate' => 2,
|
'Orange Pilled' => 1,
|
||||||
'advanced' => 3,
|
'Cyber Hornet' => 21000, // 210.000
|
||||||
|
'Satoshi Nakamoto' => 21000000, // 21.000.000
|
||||||
],
|
],
|
||||||
|
|
||||||
// Default level
|
// Default level
|
||||||
'badge_default_level' => 1
|
'badge_default_level' => 0
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user