Example #1
0
 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'));
 }
Example #2
0
 public function searchUsersCard()
 {
     $users = User::where('card', 0)->paginate(10);
     $points = Point::all();
     return View::make('back.userCard', compact('users', 'points'));
 }
Example #3
0
 public function show()
 {
     $locations = ['' => 'seleccione una region'] + Location::all()->lists('name', 'id');
     $points = Point::all();
     return View::make('back.point', compact('points', 'locations'));
 }