Example #1
0
 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]);
 }
 public function __construct()
 {
     parent::__construct();
     $suspects = Suspect::all();
     $suspects_options = null;
     foreach ($suspects as $suspect) {
         $suspects_options[$suspect->id] = $suspect->name;
     }
     View::share(['suspects_options' => $suspects_options]);
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $users = User::orderBy('username')->paginate(self::$per_page);
     $this->features = ['entries', 'logbooks', 'tasks', 'attachments', 'evidences', 'exports', 'cipher'];
     View::share('users', $users);
     View::share('settings', Setting::all());
     View::share('suspects', Suspect::all());
     View::share('features', $this->features);
 }
 public function __construct()
 {
     parent::__construct();
     $users = User::orderBy('username')->paginate(self::$per_page);
     $legals = Legal::orderBy('id')->paginate(self::$per_page);
     $this->features = ['entries', 'logbooks', 'tasks', 'attachments', 'evidences', 'exports', 'tools'];
     $this->export_features = ['ex_title', 'ex_customer', 'ex_date', 'ex_version', 'ex_disclaimer', 'ex_pdf_sh_evidences', 'ex_pdf_sh_coc', 'ex_pdf_sh_attachments', 'ex_pdf_sh_suspects', 'ex_pdf_sh_legals', 'ex_html_sh_evidences', 'ex_html_sh_coc', 'ex_html_sh_attachments', 'ex_html_sh_suspects', 'ex_html_sh_legals'];
     View::share('users', $users);
     View::share('settings', Setting::all());
     View::share('suspects', Suspect::all());
     View::share('features', $this->features);
     View::share('legals', $legals);
 }
Example #5
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($suspect_id)
 {
     $suspect = Suspect::findOrFail($suspect_id);
     $suspect->delete();
     return Redirect::to(route('settings.index'))->with('message', ['content' => 'Verdachte met succes verwijderd!', 'class' => 'success']);
 }