/** * Display a listing of the resource. * * @return Response */ public function index() { $settings = Setting::all(); $suspects = Suspect::all(); $users = User::orderBy('username')->paginate(self::$per_page); return View::make('settings.index', ['settings' => $settings, 'users' => $users, 'suspects' => $suspects]); }
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]); }
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); }