Beispiel #1
0
 public function index()
 {
     // @todo
     //  * Use managers/repositories instead of fat models.
     //  * Add the id as parameter to merge/latest
     $params = ['count_objects' => Object::count(), 'count_objects_no_work_pid' => Object::countHasNoWorkPid(), 'count_objects_has_work_pid' => Object::countHasWorkPid(), 'count_documents' => Document::count(), 'count_mergable_documents' => Document::countMergableDocuments(), 'count_orphan_documents' => Document::countOrphanDocuments(), 'count_artists' => $this->artistManager->count(), 'mergers' => $this->mergeManager->fetchLatestMergers(5)];
     return view('index', $params);
 }