@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' => 'appointmentsPatientId','placeholder'=> __('messages.document.select_patient'), 'data-control' => 'select2']) }}
@endif
{{ Form::label('department_name', __('messages.appointment.doctor_department').':', ['class' => 'form-label']) }} {{ Form::select('department_id',$departments, null, ['class' => 'form-select','required','id' => 'appointmentDepartmentId','placeholder'=> __('messages.web_appointment.select_department'), 'data-control' => 'select2']) }}
{{ Form::label('doctor_name', __('messages.case.doctor').':', ['class' => 'form-label']) }} {{ Form::select('doctor_id',(isset($doctors) ? $doctors : []), null, ['class' => 'form-select','required','id' => 'appointmentDoctorId','placeholder'=> __('messages.web_appointment.select_doctor'), 'data-control' => 'select2']) }}
@if(!Auth::user()->hasRole('Patient'))
{{ Form::label('opd_date', __('messages.appointment.date').':', ['class' => 'form-label']) }} {{ Form::text('opd_date', isset($appointment) ? $appointment->opd_date->format('Y-m-d') : null, ['id'=>'appointmentOpdDate', 'class' => (getLoggedInUser()->thememode ? 'bg-light opdDate form-control' : 'bg-white opdDate form-control'), 'required', 'autocomplete'=>'off']) }}
{{ Form::label('problem', __('messages.appointment.description').':', ['class' => 'form-label']) }} {{ Form::textarea('problem', null, ['class' => 'form-control', 'rows'=>'4']) }}
{{ Form::label('status', __('messages.common.status').':', ['class' => 'form-label']) }}
{{ __('messages.appointment.no_available') }}
@endif @if(Auth::user()->hasRole('Patient'))
{{ Form::label('opd_date', __('messages.appointment.date').':', ['class' => 'form-label']) }} {{ Form::text('opd_date', null, ['id'=>'appointmentOpdDate', 'class' => (getLoggedInUser()->thememode ? 'bg-light opdDate form-control' : 'bg-white opdDate form-control'), 'required', 'autocomplete'=>'off']) }}
{{ Form::label('problem', __('messages.appointment.description').':', ['class' => 'form-label']) }} {{ Form::textarea('problem', null, ['class' => 'form-control', 'rows'=>'4']) }}
@endif
{{ Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-3','id'=>'saveAppointment']) }} {{ __('messages.common.cancel') }}