public static function doctorNegocios() { $user = Sentry::getUser(); $doctors = Doctor::where('user_id', $user->id)->first(); $business = BusinessDoctor::where('doctor_id', $doctors->id)->get(); if ($business) { return $business; } else { return false; } }
public function getAppointmentsToday($id) { if (Payment::VeryPayment() == false) { return View::make('clinic.payment.renews-payment'); } if (Agenda::getVeryAgenda($id) == false) { return View::make('clinic.doctor.404'); } $agenda = Agenda::find($id); $bussi = BusinessDoctor::where('agenda_id', $agenda->id)->first()->id; return View::make('clinic.doctor.Appointments.AppointmentsDay')->with('bussi', $bussi)->with('agenda', $agenda); }