|
|
@@ -16,12 +16,20 @@ use App\Entity\User\GroupUser; |
|
|
|
use App\Entity\User\UserMerchant; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem; |
|
|
|
use Lc\CaracoleBundle\Controller\Dashboard\DashboardAdminAdminController as CaracDashboardController; |
|
|
|
use Lc\CaracoleBundle\Resolver\OpeningResolver; |
|
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
|
use Symfony\Component\Routing\Annotation\Route; |
|
|
|
|
|
|
|
class DashboardAdminController extends CaracDashboardController |
|
|
|
{ |
|
|
|
|
|
|
|
protected OpeningResolver $openingResolver; |
|
|
|
|
|
|
|
public function __construct(OpeningResolver $openingResolver) |
|
|
|
{ |
|
|
|
$this->openingResolver = $openingResolver; |
|
|
|
} |
|
|
|
|
|
|
|
public function configureMenuItems(): iterable |
|
|
|
{ |
|
|
|
yield MenuItem::linkToDashboard('dashboard', 'far fa-circle'); |
|
|
@@ -69,7 +77,9 @@ class DashboardAdminController extends CaracDashboardController |
|
|
|
*/ |
|
|
|
public function index(): Response |
|
|
|
{ |
|
|
|
return $this->render('admin/dashboard/dashboard.html.twig'); |
|
|
|
return $this->render('admin/dashboard/dashboard.html.twig', [ |
|
|
|
'display_switch_section' => true, |
|
|
|
]); |
|
|
|
} |
|
|
|
|
|
|
|
/*public function configureMenuItems(): iterable |