Exemplo n.º 1
0
 public function destroy(Dealsstage $dealsstage)
 {
     if (is_integer($dealsstage)) {
         $dealsstage = Dealsstage::find($dealsstage);
     }
     $dealsstage->delete();
     Flash::success('Dealsstage has been created Deleted!');
     return Redirect::back();
 }
Exemplo n.º 2
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']));
 }
 public function destroy($dealsstage)
 {
     $dealsstage = Dealsstage::find($dealsstage);
     $dealsstage->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }