/** * 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')); }
/** * 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')); }