@extends('layouts.app') @section('title') {{__('messages.appointment.add_new_appointment')}} @endsection @section('content')

@yield('title')

@role('patient') {{ __('messages.common.back') }} @else {{ __('messages.common.back') }} @endrole
@include('layouts.errors')
{{ Form::hidden(null, false,['id' => 'appointmentIsEdit']) }} {{ Form::hidden(null, \App\Models\Appointment::PAYSTACK,['id' => 'paystackMethod']) }} {{ Form::hidden(null, \App\Models\Appointment::PAYTM,['id' => 'paytmMethod']) }} {{ Form::hidden(null, \App\Models\Appointment::AUTHORIZE,['id' => 'authorizeMethod']) }} {{ Form::hidden(null, \App\Models\Appointment::PAYPAL,['id' => 'paypalMethod']) }} {{ Form::hidden(null, \App\Models\Appointment::MANUALLY,['id' => 'manuallyMethod']) }} {{ Form::hidden(null, \App\Models\Appointment::STRIPE,['id' => 'stripeMethod']) }} {{ Form::hidden(null, \App\Models\Appointment::RAZORPAY,['id' => 'razorpayMethodMethod']) }} @if(getLogInUser()->hasRole('patient') || getLogInUser()->hasRole('doctor')) @if (getLogInUser()->hasRole('patient')) {{ Form::open(['route' => 'patients.appointments.store','id' => 'addAppointmentForm']) }} @else((getLogInUser()->hasRole('doctor'))) {{ Form::open(['route' => 'doctors.appointments.store','id' => 'addAppointmentForm']) }} @endif @else(getLogInUser()->hasRole('admin')) {{ Form::open(['route' => 'appointments.store', 'id' => 'addAppointmentForm']) }} @endif @include('appointments.fields') {{ Form::close() }}
@endsection