{{ __('messages.appointment.new_appointment') }}

{{ Form::open(['id' => 'calenderAppointmentForm']) }}
@if (Auth::user()->hasRole('Patient')) @else
{{ Form::label('patient_name', __('messages.case.patient') . ':', ['class' => 'form-label']) }} {{ Form::select('patient_id', $patients, null, ['class' => 'form-select', 'required', 'id' => 'patientIdAppointment', 'placeholder' => __('messages.document.select_patient')]) }}
@endif
{{ Form::label('doctor_name', __('messages.case.doctor') . ':', ['class' => 'form-label']) }} {{ Form::select('doctor_id', $doctorArr, null, ['class' => 'form-select', 'required', 'id' => 'doctorIdAppointment', 'placeholder' => __('messages.web_home.select_doctor'), 'data-control' => 'select2']) }}
{{ Form::label('opd_date', __('messages.appointment.date') . ':', ['class' => 'form-label']) }} {{ Form::text('opd_date', '', ['id' => 'opdDateAppointment', 'class' => 'form-control', 'required', 'autocomplete' => 'off', 'readonly', 'placeholder' => __('messages.appointment.date')]) }}
{{ Form::label('status', __('messages.account.status') . ':', ['class' => 'form-label']) }}
{{ __('messages.appointment.available_slot') . ':' }}
{{ __('messages.appointment.no_available') }}
{{ Form::label('problem', __('messages.appointment.description') . ':', ['class' => 'form-label']) }} {{ Form::textarea('problem', null, ['class' => 'form-control', 'rows' => 4, 'placeholder' => __('messages.appointment.description')]) }}
{{ Form::button(__('messages.common.save'), ['type' => 'submit', 'class' => 'btn btn-primary me-2', 'id' => 'calenderAppointmentSave', 'data-loading-text' => " Processing..."]) }}
{{ Form::close() }}