예제 #1
0
 public function edit(Region $region)
 {
     $regions = Region::lists("name", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $vehicles = Vehicle::lists("name", "id");
     return View::make('Middle.Web.Region.edit', compact(['region', 'regions', 'users', 'vehicles']));
 }
예제 #2
0
 public function create()
 {
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $vehicles = Vehicle::lists("name", "id");
     $currencies = Currency::select(\DB::raw("CONCAT(name, ' ', symbol) AS full_name, id"))->lists("full_name", "id");
     return View::make('Middle.Web.Share.create', compact(['users', 'vehicles', 'currencies']));
 }
 public function create()
 {
     $regions = Region::lists("name", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $vehicles = Vehicle::lists("name", "id");
     return View::make('Middle.Web.VehiclesRegionsAllotment.create', compact(['regions', 'users', 'vehicles']));
 }
예제 #4
0
 public function destroy(User $user)
 {
     if (is_integer($user)) {
         $user = User::find($user);
     }
     $user->delete();
     Flash::success('User has been created Deleted!');
     return Redirect::back();
 }
 public function edit(OperationType $operationType)
 {
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $currencies = Currency::select(\DB::raw("CONCAT(name, ' ', symbol) AS full_name, id"))->lists("full_name", "id");
     $accounts = Account::lists("name", "id");
     $shares = Share::select(\DB::raw("CONCAT(name, ' ', type) AS full_name, id"))->lists("full_name", "id");
     $operationTypes = OperationType::lists("name", "id");
     return View::make('Middle.Web.OperationType.edit', compact(['operationType', 'users', 'currencies', 'accounts', 'shares', 'operationTypes']));
 }
 public function edit(VehicleType $vehicleType)
 {
     $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.VehicleType.edit', compact(['vehicleType', 'contacts', 'families', 'users', 'dealsterms', 'dealsstages', 'dealscategories', 'vehicleTypes', 'contacts']));
 }
예제 #7
0
 public function destroy($user)
 {
     $user = User::find($user);
     $user->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }
예제 #8
0
 public function create()
 {
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     return View::make('Middle.Web.Family.create', compact(['users']));
 }
예제 #9
0
 public function create()
 {
     $updates = Update::lists("title", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     return View::make('Middle.Web.Profile.create', compact(['updates', 'users']));
 }
 public function create()
 {
     $shares = Share::select(\DB::raw("CONCAT(name, ' ', type) AS full_name, id"))->lists("full_name", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     return View::make('Middle.Web.ShareValuation.create', compact(['shares', 'users']));
 }