Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function getDoctorHistory()
 {
     $id = Doctor::doctorLogin();
     $doctor = Doctor::where('id', $id)->first();
     $payments = Userpayment::where('user_id', $doctor->user_id)->where('paid', 1)->get();
     return View::make('clinic.doctor.Payment.History')->with('payments', $payments);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function getClinicHistory()
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $user = Sentry::getUser();
     $payments = Userpayment::where('user_id', $user->id)->where('paid', 1)->get();
     return View::make('clinic.Payment.History')->with('payments', $payments);
 }