sort by pills

This commit is contained in:
Benjamin Takats
2023-01-14 22:19:48 +01:00
parent e86b1aa216
commit 4cd6924e22
2 changed files with 14 additions and 12 deletions

View File

@@ -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',

View File

@@ -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
]; ];