コード例 #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $users = User::all();
     $schools = RealEstateSchool::all();
     $levels = ExperienceLevel::all();
     return view('admin.recruits.create_recruit', compact('users', 'schools', 'levels'));
 }
コード例 #2
0
 public function run()
 {
     DB::table('real_estate_schools')->truncate();
     DB::table('experience_levels')->truncate();
     $schools = [['school_name' => 'Scheetz Online School'], ['school_name' => 'Tucker Live Class'], ['school_name' => 'Tucker online class'], ['school_name' => 'RECP Live Class'], ['school_name' => 'RECP Online Class'], ['school_name' => 'IREI Live Class'], ['school_name' => 'RU – Live Class'], ['school_name' => 'RU – Online Class'], ['school_name' => 'RECI – Online class']];
     $experience_levels = [['level' => 'Just thinking about Real Estate'], ['level' => 'In Pre-Licensing School'], ['level' => 'Licensed and ready to go'], ['level' => 'Experienced Agent'], ['level' => 'Referral ']];
     foreach ($experience_levels as $level) {
         \App\ExperienceLevel::create($level);
     }
     foreach ($schools as $school) {
         \App\RealEstateSchool::create($school);
     }
 }
コード例 #3
0
 public function postExperienceLevel()
 {
     return ExperienceLevel::lists('level', 'id');
 }
コード例 #4
0
 public function business_plan()
 {
     $license_status = ExperienceLevel::lists('level', 'id');
     $real_estate_schools = RealEstateSchool::lists('school_name', 'id');
     return view('frontend.pages.business_plan', compact('license_status', 'real_estate_schools'));
 }