Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $consulta = \DB::table((new \App\Pregunta())->getTable())->select('id', 'pregunta', 'id_area');
     $tabla = new \App\library\DataTables();
     $tabla->unset_delete();
     $t = $tabla->tabla($consulta, 'pregunta');
     return view("list")->with('tabla', $t);
 }
Exemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $consulta = \DB::table((new \App\Referido())->getTable())->select('id', 'poblacion', 'nombres', 'apellidos', 'telefono', 'telefono_2', 'interes', 'asesor');
     $tabla = new \App\library\DataTables();
     $tabla->unset_add();
     $tabla->unset_delete();
     $t = $tabla->tabla($consulta, 'referido');
     return view("list")->with('tabla', $t);
 }
Exemplo n.º 3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $users = \DB::table((new \App\User())->getTable())->select('id', 'username', 'password');
     $tabla = new \App\library\DataTables();
     $tabla->unset_add();
     $tabla->unset_delete();
     $tabla->add_action('ttt', 'referido.edit');
     $t = $tabla->tabla($users, 'usuario');
     return view("list")->with('tabla', $t);
 }