@if(Auth::user()->hasRole('Doctor'))
@else
{{ Form::label('doctor_name', __('messages.case.doctor').':', ['class' => 'form-label']) }}
{{ Form::select('doctor_id',$data['doctors'], null, ['class' => 'form-select','required','id' => 'doctorId','placeholder' => __('messages.schedule.select_doctor_name'),'data-control' => 'select2']) }}
@endif
@if(Auth::user()->hasRole('Doctor'))
{{ Form::label('per_patient_time', __('messages.schedule.per_patient_time').':', ['class' => 'form-label']) }}
{{ Form::text('per_patient_time', null, ['id'=>'perPatientTime', 'class' => 'form-control perPatientTime'.(getLoggedInUser()->thememode ? ' bg-light' : ' bg-white'), 'required','autocomplete' => 'off']) }}
@else
{{ Form::label('per_patient_time', __('messages.schedule.per_patient_time').':', ['class' => 'form-label']) }}
{{ Form::text('per_patient_time', null, ['id'=>'perPatientTime', 'class' => 'form-control perPatientTime'.(getLoggedInUser()->thememode ? ' bg-light' : ' bg-white'), 'required']) }}
@endif
{{ __('messages.schedule.available_on').':' }} |
{{ __('messages.schedule.available_from').':' }} |
{{ __('messages.schedule.available_to').':' }} |
{{ __('messages.common.action') }} |
@foreach($data['availableOn'] as $days)
{{ Form::text('available_on[]', isset($scheduleDays)?$scheduleDays[$loop->iteration-1]->available_on:$days,
['class' => 'form-control availableOn','required','id' => 'availableOn-'.($loop->iteration-1),'readonly']) }}
|
{{ Form::text('available_from[]', isset($scheduleDays)?$scheduleDays[$loop->iteration-1]->available_from:"00:00:00",['id'=>'availableFrom-'.($loop->iteration-1), 'class' => 'form-control availableFrom hospitalScheduleFrom-'.$loop->iteration.(getLoggedInUser()->thememode ? ' bg-light' : ' bg-white'), 'required','autocomplete' => 'off']) }}
|
{{ Form::text('available_to[]', isset($scheduleDays)?$scheduleDays[$loop->iteration-1]->available_to:"00:00:00",
['id'=>'availableTo-'.($loop->iteration-1), 'class' => 'form-control availableTo hospitalScheduleTo-'.$loop->iteration.(getLoggedInUser()->thememode ? ' bg-light' : ' bg-white'), 'required','autocomplete' => 'off']) }}
|
{{-- @if(!$loop->first)--}}
{{-- @endif--}}
|
@endforeach
{!! Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2','id' => 'scheduleSave',$data['hospitalSchedule'] == null ? 'disabled':''
]) !!}
@if (!(getLoggedInUser()->hasRole('Doctor')))
{!! __('messages.common.cancel') !!}
@endif