public function slash(Request $request)
    {
        switch ($emailStatus = $request->query->get('email')) {
            case 'sent';
                $emailStatus = $this->app->trans('Mail sent');
                break;
            case 'error':
                $emailStatus = $this->app->trans('Could not send email');
                break;
        }

        return $this->render('admin/dashboard.html.twig', [
            'cache_flushed' => $request->query->get('flush_cache') === 'ok',
            'admins'        => $this->getUserRepository()->findAdmins(),
            'email_status'  => $emailStatus,
        ]);
    }
public function slash(Request $request)
    {
        switch ($emailStatus = $request->query->get('email')) {
            case 'sent';
                $emailStatus = $this->app->trans('Mail sent');
                break;
            case 'error':
                $emailStatus = $this->app->trans('Could not send email');
                break;
        }

        return $this->render('admin/dashboard.html.twig', [
            'cache_flushed' => $request->query->get('flush_cache') === 'ok',
            'admins'        => $this->getUserRepository()->findAdmins(),
            'email_status'  => $emailStatus,
        ]);
    }
public function slash ( Request $ request ) { switch ( $ emailStatus = $ request -> query -> get ( 'email' ) ) { case 'sent' ; $ emailStatus = $ this -> app -> trans ( 'Mail sent' ) ; break ; case 'error' : $ emailStatus = $ this -> app -> trans ( 'Could not send email' ) ; break ; } return $ this -> render ( 'admin/dashboard.html.twig' , [ 'cache_flushed' => $ request -> query -> get ( 'flush_cache' ) === 'ok' , 'admins' => $ this -> getUserRepository ( ) -> findAdmins ( ) , 'email_status' => $ emailStatus , ] ) ; }
Display admin dashboard page

@param  Request $request
@return string
Display admin dashboard page