public function client()
 {
     $all = $this->protocolRepository->all();
     $protocols = $this->protocolRepository->findByField('status', '1');
     $entries = $this->entryRepository->search();
     return view('layouts.client.index', compact('protocols', 'all', 'entries'));
 }
 public function index(Request $request, $id)
 {
     $project = $this->projectRepository->find($id);
     $protocol = $this->protocolRepository->find($project->protocol_id);
     $entries = $this->entryService->searchIndex($id);
     $search = $request->input('search');
     if (!empty($search)) {
         $entries = $this->entryService->search($search, $id);
     }
     return view('admin.entries.index', compact('entries', 'project', 'protocol'));
 }
 public function edit($id)
 {
     $deliverable = $this->repository->find($id);
     $protocols = $this->protocolRepository->lists();
     return view('admin.deliverables.edit', compact('deliverable', 'protocols'));
 }
 public function edit($id)
 {
     $warning = $this->repository->find($id);
     $protocols = $this->protocolRepository->lists();
     return view('admin.warnings.edit', compact('warning', 'protocols'));
 }