<?php

namespace Hubleto\App\Community\Notifications\Controllers;

class Sent extends \Hubleto\Erp\Controller
{
  public function getBreadcrumbs(): array
  {
    return array_merge(parent::getBreadcrumbs(), [
      [ 'url' => 'notifications', 'content' => $this->translate('Notifications') ],
      [ 'url' => 'sent', 'content' => $this->translate('Sent') ],
    ]);
  }

  public function prepareView(): void
  {
    parent::prepareView();

    $this->viewParams['title'] = $this->translate('Sent');
    $this->viewParams['folder'] = 'sent';

    $this->setView('@Hubleto:App:Community:Notifications/ListFolder.twig');
  }

}
