public function index() { $points = Point::all()->toArray(); $type = ["tipo de documento" => "Tipo de documento"] + [0 => "Cedula"] + [1 => "Cedula de extranjeria"]; $locations = ['location' => 'Seleccione una ciudad'] + Location::all()->lists('name', 'id'); return View::make('front.creditRequest', compact('type', 'locations', 'points')); }
public function searchUsersCard() { $users = User::where('card', 0)->paginate(10); $points = Point::all(); return View::make('back.userCard', compact('users', 'points')); }
public function show() { $locations = ['' => 'seleccione una region'] + Location::all()->lists('name', 'id'); $points = Point::all(); return View::make('back.point', compact('points', 'locations')); }