/** * View for specific vendor * *@return view */ function getVendorDetails($id = 0) { if ($id == 0) { return Redirect::to('admin/unverified-vendors'); } $editor = AdminModel::checkAdminEditor('profiles', $id); $vendor = AdminModel::getVendorProfile($id); return View::make('admin.vendor_details')->with('vendor', $vendor)->with('editor', $editor); }