Exemplo n.º 1
0
 public function edit(Family $family)
 {
     $families = Family::lists("name", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $dealsterms = Dealsterm::lists("Description", "idDealsTerm");
     $dealsstages = Dealsstage::lists("Description", "idDealsStage");
     $dealscategories = Dealscategory::lists("Description", "idDealsCategories");
     $vehicleTypes = VehicleType::lists("name", "id");
     return View::make('Middle.Web.Family.edit', compact(['family', 'contacts', 'families', 'users', 'dealsterms', 'dealsstages', 'dealscategories', 'vehicleTypes', 'contacts']));
 }