You've already forked Epicnabbo-Catalogus-Updated-Daily
24 lines
587 B
PHP
24 lines
587 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Community\Teams;
|
|
|
|
use App\Models\Community\Teams\WebsiteTeam;
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
class TeamsController
|
|
{
|
|
public function __invoke(): View
|
|
{
|
|
$employees = WebsiteTeam::query()
|
|
->where('hidden_rank', false)
|
|
->with(['users' => fn ($q) => $q
|
|
->select(['id', 'username', 'look', 'motto', 'team_id'])
|
|
->orderBy('username'),
|
|
])
|
|
->orderBy('rank_name')
|
|
->get();
|
|
|
|
return view('community.teams', compact('employees'));
|
|
}
|
|
}
|