Ejemplo n.º 1
0
 /**
  *
  * @param null $filter
  * @return array
  */
 public function index($filter = null)
 {
     //        if ($filter) {
     //            $entries = Entry::join('restoration_types', 'info.restoration_type', '=', 'restoration_types.id')
     //                ->whereIn('last_name', $filter)
     //                ->orderBy('last_name', 'asc');
     //        }
     //        else {
     //            $entries = Entry::join('restoration_types', 'info.restoration_type', '=', 'restoration_types.id')
     //                ->orderBy('last_name', 'asc');
     //        }
     $entries = $this->entriesRepository->getEntries();
     return $entries;
 }
Ejemplo n.º 2
0
 public function entries(Request $request)
 {
     $entries = $this->entriesRepository->getFilteredEntries($request->get('last_names'));
     return $entries;
 }
Ejemplo n.º 3
0
 public function home()
 {
     //        return $this->entriesRepository->getEntries();
     JavaScript::put(['env' => app()->env, 'restorationTypes' => RestorationType::get(), 'folders' => Folder::get(), 'entries' => $this->entriesRepository->getEntries()]);
     return view('home');
 }