feat: extend teamer dashboard
This commit is contained in:
1 parent
8ff59b3068
commit
b5781df8d9
16 files changed
+286
-30
No files matched your search
@@ -2,7 +2,10 @@
|
||||
|
||||
namespace App\Controller\Teamer;
|
||||
|
||||
use App\Entity\Application;
|
||||
use App\Entity\Assignment;
|
||||
use App\Entity\Disposition;
|
||||
use App\Entity\Feedback;
|
||||
use App\Entity\User;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
@@ -30,8 +33,29 @@ class IndexController extends AbstractController
|
||||
->getNewMatchingTeamerProfile($teamer)
|
||||
;
|
||||
|
||||
$recentFeedback = $this
|
||||
->entityManager
|
||||
->getRepository(Feedback::class)
|
||||
->getRecentForTeamer($teamer)
|
||||
;
|
||||
|
||||
$pendingApplications = $this
|
||||
->entityManager
|
||||
->getRepository(Application::class)
|
||||
->getPendingForTeamer($teamer)
|
||||
;
|
||||
|
||||
$upcomingDispositions = $this
|
||||
->entityManager
|
||||
->getRepository(Disposition::class)
|
||||
->getUpcomingDispositionsByTeamer($teamer)
|
||||
;
|
||||
|
||||
return $this->render('teamer/index.html.twig', [
|
||||
'matchingAssignments' => $matchingAssignments,
|
||||
'recentFeedback' => $recentFeedback,
|
||||
'pendingApplications' => $pendingApplications,
|
||||
'upcomingDispositions' => $upcomingDispositions,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user