/** * @param $id * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function checkout($id) { $item = Equipment::findorfail($id); $people = Person::select(DB::raw("CONCAT(first_name,' ', last_name) AS full_name, id"))->lists('full_name', 'id'); return view('transaction.checkout', compact('item', 'people')); }