本文整理汇总了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');
}
示例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);
}
示例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);
}
示例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);
}
}
示例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]);
}
示例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);
}
示例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");
}
}
示例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);
}
示例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();
}
}