/** * Display a listing of the resource. * * @return Response */ public function index(Job $jobs) { // return response()->json(['name' => 'Abigail', 'state' => 'CA']); // // Returns all jobs as Json data return $jobs->all()->toArray(); }
/** * 玩家卡片取得处理 */ public function cardBox() { // 玩家ID获取 $intPlayerId = Input::get('player_id'); // 玩家所持卡片全取得 $lstCard = OwnedCard::where('player_id', $intPlayerId)->get(); return view('admin.player.card-box')->withCards(Card::all())->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all())->withSkills(Skill::all())->withOwnedCards($lstCard); }
/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // $input = $request->all(); $validator = Validator::make($input, ['price' => 'required', 'job_type' => 'required', 'job_id' => 'required', 'paper_id' => 'required']); if ($validator->fails()) { return \Redirect::back()->withErrors($validator)->withInput(); } array_forget($request, "_token"); $all_request = $request->all(); $price = Price::find($id); $papers = Paper::all(); $jobs = Job::all(); foreach ($all_request as $key => $value) { $price->{$key} = $value; } $price->update(); $prices = Price::all(); if ($request->ajax()) { if ($prices) { foreach ($prices as $price) { echo "\n <tr>\n <td>{$price->id}</td>\n <td>"; foreach ($papers as $paper) { if ($paper->id == $price->paper_id) { $paperid = $paper->name; echo $paper->name . ", " . $paper->size; } } echo " </td>\n <td>"; foreach ($jobs as $job) { if ($job->id == $price->job_id) { $jobid = $job->name; echo $job->name; } } echo "</td>\n <td>{$price->job_type}</td>\n <td>{$price->price}</td>\n <td><button class='edtPriceLink btn-primary' cpaperid='{$paperid}' cjobtype='{$price->job_type}' cid='{$price->id}' cjobid='{$price->job_id}' cprice='{$price->price}'><span class='glyphicon glyphicon-pencil'></span></button></td>\n <td><button class='btn-danger' data-target='#myModalPaperEdit' data-toggle='modal'><span class='glyphicon glyphicon-trash'></span></button></td>\n </tr>\n "; } } exit; } else { try { if ($price->update()) { \Session::flash("success_message", "New Price Record Updated Successfully"); return \Redirect::back(); } } catch (\Illuminate\Database\QueryException $e) { \Session::flash("error_message", $e->getMessage()); return \Redirect::back(); } catch (\PDOException $e) { \Session::flash("error_message", $e->getMessage()); return \Redirect::back(); } catch (\Exception $e) { \Session::flash("error_message", $e->getMessage()); return \Redirect::back(); } } return View("settings.priceedit", ['jobs' => $jobs, 'papers' => $papers, 'title' => 'Job Setting']); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $jobs = Job::all()->where('status', 'open'); foreach ($jobs as $value) { $value->job_description = nl2br($value->job_description); } $counts = $jobs->count(); return view('company.careers', compact('jobs', 'counts')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $jobs = Job::all(); $posts = Post::published()->orderBy('updated_at', 'desc')->where('category_id', '1')->get()->take(3); $vignettes = Post::published()->orderBy('updated_at', 'desc')->where('category_id', '1')->skip(3)->take(1000)->get(); if (isset($_GET['jobid']) && ($_GET['jobid'] > '0' && $_GET['jobid'] < '8')) { $jobid = $_GET['jobid']; $posts = Post::published()->take(3)->orderBy('updated_at', 'desc')->where('job_id', $_GET['jobid'])->where('category_id', '1')->get(); $vignettes = Post::published()->orderBy('updated_at', 'desc')->where('job_id', $_GET['jobid'])->where('category_id', '1')->skip(3)->take(1000)->get(); } // si jobid <1 ou >7 is_int return view('pages.blog.index', compact('posts', 'vignettes', 'jobs')); }
public function design() { $roles = Role::all(); $users = User::all(); $userroles = DB::table('role_user')->get(); $jobstable = Job::all(); $userjobs = Userjobs::all(); $permissions = DB::table('permissions')->get(); $permissionroles = DB::table('permission_role')->get(); $skills = Skill::all(); $jobskills = JobSkill::all(); $userskills = UserSkill::all(); return View('design')->withJobs($jobstable)->withJobsusers($userjobs)->withusers($users)->withroles($roles)->withuserroles($userroles)->withpermissions($permissions)->withpermissionroles($permissionroles)->withskills($skills)->withjobskills($jobskills)->withuserskills($userskills); }
public function jobs() { $jobs = Job::all(); $view = view('admin.jobs', ['jobs' => $jobs]); return $view; }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // return view('admin.equipment.edit')->withEquipment(Equipment::find($id))->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all())->withEquipmentTypes(EquipmentType::all())->withEquipmentSubTypes(EquipmentSubType::all())->withEquipmentStatuses(EquipmentStatus::all()); }
public function getProfile() { $jobs = Job::all(); return view('front.showUser', compact('jobs')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $jobs = Job::all(); return $this->respond(['data' => $this->jobTransformer->transformCollection($jobs->all())]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $jobs = Job::all()->sortBy('name'); return response()->json($jobs); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // return view('admin.skill.skill')->withSkills(Skill::all())->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all()); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return Response::json(Job::all()); }
public function approve($id) { $job = Job::where('id', $id)->update(['approved' => 1]); $jobs = Job::all(); Session::flash('success', 'Job have been approved'); return redirect()->back(); //return view('jobs.index')->withJobs($jobs); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { // return view('admin.incident.create')->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all()); }
/** * 卡片更新页面 * @param $id * @return mixed */ public function edit($id) { return view('admin.card.edit')->withCard(Card::find($id))->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all())->withSkills(Skill::all()); }
public function index() { $jobs = Job::all(); $siteJobs = SiteJob::all(); return view('pages.dashboard', compact('jobs', 'siteJobs')); }
/** * Generates employee list view * * @return \Illuminate\View\View */ public function employees() { return view('employees', ['employees' => Employee::all(), 'jobs' => Job::all(), 'locations' => Location::all()]); }
public function postPrice(Request $request) { array_forget($request, "_token"); $all_request = $request->all(); $price = new Price(); foreach ($all_request as $key => $value) { $price->{$key} = $value; } $price->save(); $prices = Price::all(); if ($request->ajax()) { if ($prices) { foreach ($prices as $price) { echo "\n <tr>\n <td>{$price->id}</td>\n <td>{$price->name}</td>\n\n <td>{$price->description}</td>\n <td>{$price->created_at}</td>\n <td>{$price->updated_at}</td>\n <td></td>\n <td></td>\n </tr>\n "; } } exit; } return View("settings.price", ['prices' => $prices, 'papers' => Paper::all(), 'jobs' => Job::all(), 'title' => 'Job Price Setting']); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $jobs = Job::all(); return View("invoicing.index", ['branches' => Branch::all(), 'companies' => Company::all(), 'jobs' => $jobs, 'title' => 'Invoicing Console']); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // return view('lskill')->withLskills(Lskill::all())->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all()); }
/** * Display all job page * * @return $this */ public function show() { $data = ['title' => 'Teleaus Admin Dashboard | All Jobs Page', 'jobs' => Job::all()]; return view('dashboard.allJobs')->with($data); }