protected function getView($template = null) { if (empty($template)) { $template = $this->template; } $settings = ['title' => Setting::get('ex_title'), 'customer' => Setting::get('ex_customer'), 'date' => Setting::get('ex_date'), 'version' => Setting::get('ex_version'), 'disclaimer' => Setting::get('ex_disclaimer_html')]; return View::make($template, ['project_name' => Setting::get('project_name'), 'generated_at' => date('d-m-Y H:i'), 'users' => static::getUsers(), 'logbooks' => static::getLogbooks($this->logbooks), 'logbooksAll' => static::getLogbooks('all'), 'entriesAll' => Entry::all(), 'attachments' => static::getAttachments($this->logbooks), 'attachmentsAll' => Attachment::all(), 'evidences' => Evidence::all(), 'custody' => Custody::all(), 'suspects' => Suspect::all(), 'legals' => Legal::where('active', 1)->get(), 'settings' => $settings]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($logbook_id, $entry_id) { try { $logbook = Logbook::findOrFail($logbook_id); $entry = Entry::findOrFail($entry_id); return View::make('entries.edit', ['logbook' => $logbook, 'entry' => $entry, 'evidences' => Evidence::all(), 'choices' => $this->getEvidenceChoices()]); } catch (ModelNotFoundException $e) { return Redirect::to(route('logbooks.index'))->with('message', ['content' => 'Entry niet gevonden!', 'class' => 'danger']); } }