<?php

namespace Hubleto\App\Community\EventRegistrations\Controllers;

class Dashboard extends \Hubleto\Erp\Controller
{
  public function getBreadcrumbs(): array
  {
    return array_merge(parent::getBreadcrumbs(), [
      [ 'url' => 'events-registrations', 'content' => $this->translate('EventRegistrations') ],
    ]);
  }

  public function prepareView(): void
  {
    parent::prepareView();
    $this->viewParams['now'] = date('Y-m-d H:i:s');
    $this->setView('@Hubleto:App:Community:EventRegistrations/Dashboard.twig');
  }

}
