public function viewEmployerProfile($employer_id) { //Hashids::getDefaultConnection(); $id = Hashids::decode($employer_id); $employer = Employer::find($id)->first(); //return $employer->photo; $total_jobs = PostedJob::where('created_by', $id)->count(); $jobs_not_verified = PostedJob::with('industry')->where('created_by', $id)->where('status', 0)->get(); $jobs_available = PostedJob::with('industry')->where('created_by', $id)->where('status', 1)->get(); //to gel alll jobs that is marked as available/published $jobs_filled_up = PostedJob::with('industry')->where('created_by', $id)->where('status', 2)->get(); return view($this->content . 'employers.profile', compact('employer', 'jobs_not_verified', 'jobs_available', 'jobs_filled_up', 'total_jobs')); }
public function showDocumentLists() { $id = Auth::employer()->get()->id; $results = Employer::find($id)->documents()->get(); //$results = EmployerDocument::where('candidate');documents return view($this->content . 'document_upload.index', compact('results')); }