Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $listado = Listado_horas::all();
     $especialista = User::where('type', 'Especialista')->get(['first_name', 'last_name', 'id']);
     $paciente = User::where('type', '!=', 'Especialista')->get(['first_name', 'last_name', 'id']);
     return view('admin.citas.cita', compact('listado', 'especialista', 'paciente'));
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $horas = Listado_horas::orderBy('id', 'asc')->paginate();
     return view('admin.horas.index', compact('horas'));
 }