repository = $lead_meeting; parent::__construct(); } /** * Show lead_meeting's list. * * @param string $slug * * @return response */ protected function index() { $lead_meetings = $this->repository ->pushCriteria(app('Litepie\Repository\Criteria\RequestCriteria')) ->scopeQuery(function($query){ return $query->orderBy('id','DESC'); })->paginate(); return $this->response->setMetaTitle(trans('lead_meeting::lead_meeting.names')) ->view('lead_meeting::public.lead_meeting.index') ->data(compact('lead_meetings')) ->output(); } /** * Show lead_meeting. * * @param string $slug * * @return response */ protected function show($slug) { $lead_meeting = $this->repository->scopeQuery(function($query) use ($slug) { return $query->orderBy('id','DESC') ->where('slug', $slug); })->first(['*']); return $this->response->setMetaTitle($lead_meeting->name . trans('lead_meeting::lead_meeting.name')) ->view('lead_meeting::public.lead_meeting.show') ->data(compact('lead_meeting')) ->output(); } }