You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
647 B
PHP

<?php
namespace Eater\Glim\Handler\Panel;
use Aura\Session\Segment;
use Eater\Glim\Handler\Panel;
use Eater\Glim\Handler\Session;
class Invites extends Panel
{
public function handle()
{
$user = $this->getUser();
$invites = $user->getInvites();
/** @var Segment $segment */
$segment = $this->get('session')->getSegment('main');
return $this->render('panel/invites.html.twig', [
'invites' => $invites,
'error' => $segment->getFlash('error'),
'used_invites' => $user->getUsedInvites(),
'max_invites' => $user->getMaxInvites()
]);
}
}