Exemplo n.º 1
0
 public function postWork(WorkEduRequest $req)
 {
     $edu = new WorkEdu();
     $edu->institute = $req->input('institute');
     $edu->address = $req->input('address');
     $edu->period = $req->input('start_year') . '-' . $req->input('end_year');
     $edu->section = $req->input('responsibility');
     $edu->note = $req->input('note');
     $edu->type = 1;
     if ($edu->save()) {
         return redirect()->back()->with('msg', 'Successfully Added Work');
     }
 }
Exemplo n.º 2
0
 public function resumePage()
 {
     $edu = WorkEdu::where('type', 0)->orderBy('id', 'desc')->get();
     $work = WorkEdu::where('type', 1)->orderBy('id', 'desc')->get();
     $skillsArray = Skills::get();
     $skillsCollections = Collection::make($skillsArray);
     $skillsProfessional = $skillsCollections->where('type', 'professional');
     $skillsAdditional = $skillsCollections->where('type', 'additional');
     return View::make('site.resume', ['pageInfo' => ['siteTitle' => 'Resume', 'pageHeading' => 'Resume', 'pageHeadingSlogan' => "Here is my qualifications and experience", 'pageLogo' => 'resume'], 'data' => ['edu' => $edu, 'work' => $work, 'skillsPro' => $skillsProfessional, 'skillsAdd' => $skillsAdditional]]);
 }