Ejemplo n.º 1
0
 public function edit(User $user)
 {
     $currencies = Currency::select(\DB::raw("CONCAT(name, ' ', symbol) AS full_name, id"))->lists("full_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.User.edit', compact(['user', 'currencies', 'users', 'vehicles']));
 }
 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']));
 }
Ejemplo n.º 3
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']));
 }
 public function create()
 {
     $currencies = Currency::select(\DB::raw("CONCAT(name, ' ', symbol) AS full_name, id"))->lists("full_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.VehiclesCurrenciesAllotment.create', compact(['currencies', 'users', 'vehicles']));
 }
Ejemplo n.º 5
0
 public function edit(Vehicle $vehicle)
 {
     $currencies = Currency::select(\DB::raw("CONCAT(name, ' ', symbol) AS full_name, id"))->lists("full_name", "id");
     $users = User::select(\DB::raw("CONCAT(surname, ' ', name) AS full_name, id"))->lists("full_name", "id");
     $vehicles = Vehicle::lists("name", "id");
     $regions = Region::lists("name", "id");
     $families = Family::lists("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.Vehicle.edit', compact(['vehicle', 'currencies', 'users', 'vehicles', 'regions', 'contacts', 'families', 'dealsterms', 'dealsstages', 'dealscategories', 'vehicleTypes', 'contacts']));
 }
Ejemplo n.º 6
0
 public function create()
 {
     $vehicles = Vehicle::lists("name", "id");
     return View::make('Middle.Web.Contact.create', compact(['vehicles']));
 }