当前位置: 首页>>代码示例>>PHP>>正文


PHP Payment::VeryPayment方法代码示例

本文整理汇总了PHP中Payment::VeryPayment方法的典型用法代码示例。如果您正苦于以下问题:PHP Payment::VeryPayment方法的具体用法?PHP Payment::VeryPayment怎么用?PHP Payment::VeryPayment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Payment的用法示例。


在下文中一共展示了Payment::VeryPayment方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: create

 public function create()
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     return View::make('clinic.users.new');
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:7,代码来源:ClinicUsersController.php

示例2: edit

 public function edit($id)
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $CustomDay = CustomDay::find($id);
     return View::make('clinic.doctors.customDayEdit')->with('customDay', $CustomDay);
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:8,代码来源:ClinicDoctorsCustomDaysController.php

示例3: getClinicHistory

 /**
  * 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);
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:14,代码来源:ClinicPaymentController.php

示例4: getConfigDay

 public function getConfigDay()
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $doctor = Doctor::doctorLogin();
     $agenda = Agenda::where('doctor_id', $doctor)->first()->id;
     $configDay = Configday::where('agenda_id', $agenda)->get();
     if ($configDay->isEmpty()) {
         return View::make('clinic.doctor.config.ConfigDay')->with('agenda', $agenda);
     } else {
         return View::make('clinic.doctor.config.ConfigDay')->with('agenda', $agenda)->with('configDay', $configDay);
     }
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:14,代码来源:PatientsController.php

示例5: getAgendasDay

 public function getAgendasDay()
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $user = Sentry::getUser();
     $pcitas = DB::table('clinics')->join('doctors', 'clinics.id', '=', 'doctors.clinic_id')->join('doctor_patient', 'doctors.id', '=', 'doctor_patient.doctor_id')->join('patients', 'doctor_patient.patient_id', '=', 'patients.id')->join('users', 'doctors.user_id', '=', 'users.id')->join('appointments', 'patients.id', '=', 'appointments.patient_id')->where('clinics.user_id', $user->id)->where('appointments.day', date('Y-m-d'))->select('doctors.id as id', 'doctors.user_id as user_id', 'appointments.state as state')->groupBy('doctors.id')->get();
     return View::make('clinic.Agendas.agendaDay', ['doctors' => $pcitas]);
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:9,代码来源:ClinicController.php

示例6: getPatientAppointmentsHistory

 public function getPatientAppointmentsHistory($doctor, $patient)
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $Agenda = Agenda::where('doctor_id', $doctor)->first();
     $Appointment = Appointment::where('patient_id', $patient)->where('agenda_id', $Agenda->id)->get();
     return View::make('clinic.doctors.history')->with('Appointment', $Appointment);
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:9,代码来源:ClinicDoctorsController.php

示例7: destroy

 public function destroy($id)
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $CustomDay = CustomDay::find($id);
     $CustomDay->delete();
     if ($CustomDay) {
         return Redirect::back()->withConfirm("Eliminado Exitosamente");
     } else {
         return Redirect::back()->withErrors("Error");
     }
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:13,代码来源:DoctorsCustomDaysController.php

示例8: getAgendaDay

 public function getAgendaDay()
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $id = Doctor::doctorLogin();
     $agenda = Agenda::where('doctor_id', $id)->first();
     $dt = Carbon::now();
     $bussi = Business::where('agenda_id', $agenda->id)->first()->id;
     if ($dt->dayOfWeek == 0) {
         $dia = 'Sunday';
     } elseif ($dt->dayOfWeek == 1) {
         $dia = 'Monday';
     } elseif ($dt->dayOfWeek == 2) {
         $dia = 'Tuesday';
     } elseif ($dt->dayOfWeek == 3) {
         $dia = 'Wednesday';
     } elseif ($dt->dayOfWeek == 4) {
         $dia = 'Thursday';
     } elseif ($dt->dayOfWeek == 5) {
         $dia = 'Friday';
     } else {
         $dia = 'Saturday';
     }
     $CustomDay = CustomDay::where('agenda_id', $agenda->id)->get();
     $Configday = Configday::where('day', $dia)->where('agenda_id', $agenda->id)->first();
     $AgendaAppo = Appointment::where('agenda_id', $agenda->id)->get();
     return View::make('clinic.doctor.Appointments.AppointmentsDay')->with('agendaAppo', $AgendaAppo)->with('configday', $Configday)->with('customddays', $CustomDay)->with('bussi', $bussi)->with('agenda', $agenda);
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:29,代码来源:AppointmentsController.php

示例9: getConfigSave

 public function getConfigSave()
 {
     if (Payment::VeryPayment() == false) {
         return View::make('clinic.payment.renews-payment');
     }
     $data = array("insurance" => Input::get("insurance"), "lang" => Input::get("lang"));
     $rules = array("insurance" => 'required|min:1|max:100', "lang" => 'required|min:1|max:100');
     $messages = array('required' => 'El campo :attribute es obligatorio.', 'min' => 'El campo :attribute no puede tener menos de :min carácteres.', 'email' => 'El campo :attribute debe ser un email válido.', 'max' => 'El campo :attribute no puede tener más de :max carácteres.', 'numeric' => 'El campo :attribute debe contener solo numeros', 'mimes' => 'El formato de la imagen logo debe ser jpg, git, png');
     $validation = Validator::make(Input::all(), $rules, $messages);
     //si la validación falla redirigimos al formulario de registro con los errores
     //y con los campos que nos habia llenado el usuario
     if ($validation->fails()) {
         return Redirect::to('/clinic/config-data/')->withErrors($validation)->withInput();
     } else {
         $id = Doctor::doctorLogin();
         $doctor = Doctor::where('id', $id)->first();
         $lang = Option::where('name', $id . '-doctor-lang')->first();
         if ($lang) {
             $lang->key = Input::get("lang");
             $lang->save();
         } else {
             $langadd = new Option();
             $langadd->key = Input::get("lang");
             $langadd->name = $id . '-doctor-lang';
             $langadd->save();
         }
         $opcionSeg = Option::where('name', $id . '-doctor-insurance')->first();
         if ($opcionSeg) {
             $segs = explode(',', Input::get("insurance"));
             $segok = '';
             foreach ($segs as $seg) {
                 $very = Insurance::where('name', 'like', '%' . $seg . '%')->first();
                 if ($very) {
                     $segok = $segok . ',' . $seg;
                 }
             }
             $opcionSeg->key = $segok;
             $opcionSeg->save();
         } else {
             $segs = explode(',', Input::get("insurance"));
             $seguok = '';
             foreach ($segs as $seg) {
                 $very = Insurance::where('name', $seg)->first();
                 if ($very) {
                     $seguok = $seguok . ',' . $seg;
                 }
             }
             $addseg = new Option();
             $addseg->name = $id . '-doctor-insurance';
             $addseg->key = $seguok;
             $addseg->save();
         }
         return Redirect::back();
     }
 }
开发者ID:jnicolasbc,项目名称:admin_swp_com,代码行数:55,代码来源:DoctorController.php


注:本文中的Payment::VeryPayment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。