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',
|
||||||
|
|||||||
@@ -2,36 +2,37 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
// Model which will be having points, generally it will be User
|
// Model which will be having points, generally it will be User
|
||||||
'payee_model' => '\App\User',
|
'payee_model' => '\App\User',
|
||||||
|
|
||||||
// Reputation model
|
// Reputation model
|
||||||
'reputation_model' => '\QCod\Gamify\Reputation',
|
'reputation_model' => '\QCod\Gamify\Reputation',
|
||||||
|
|
||||||
// Allow duplicate reputation points
|
// Allow duplicate reputation points
|
||||||
'allow_reputation_duplicate' => true,
|
'allow_reputation_duplicate' => true,
|
||||||
|
|
||||||
// Broadcast on private channel
|
// Broadcast on private channel
|
||||||
'broadcast_on_private_channel' => true,
|
'broadcast_on_private_channel' => true,
|
||||||
|
|
||||||
// Channel name prefix, user id will be suffixed
|
// Channel name prefix, user id will be suffixed
|
||||||
'channel_name' => 'user.reputation.',
|
'channel_name' => 'user.reputation.',
|
||||||
|
|
||||||
// Badge model
|
// Badge model
|
||||||
'badge_model' => '\QCod\Gamify\Badge',
|
'badge_model' => '\QCod\Gamify\Badge',
|
||||||
|
|
||||||
// Where all badges icon stored
|
// Where all badges icon stored
|
||||||
'badge_icon_folder' => 'images/badges/',
|
'badge_icon_folder' => 'images/badges/',
|
||||||
|
|
||||||
// Extention of badge icons
|
// Extention of badge icons
|
||||||
'badge_icon_extension' => '.svg',
|
'badge_icon_extension' => '.svg',
|
||||||
|
|
||||||
// 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