mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
25 lines
555 B
PHP
25 lines
555 B
PHP
<?php
|
|
|
|
namespace App\Http\Livewire\BookCase;
|
|
|
|
use App\Models\Country;
|
|
use App\Models\User;
|
|
use Livewire\Component;
|
|
|
|
class HighscoreTable extends Component
|
|
{
|
|
public Country $country;
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.book-case.highscore-table', [
|
|
'plebs' => User::query()
|
|
->withCount([
|
|
'orangePills',
|
|
])
|
|
->orderByDesc('orange_pills_count')
|
|
->get(),
|
|
]);
|
|
}
|
|
}
|