{{ Form::label('case_id', __('messages.case.case').':', ['class' => 'form-label required']) }} {{ Form::select('case_id', $cases, null, ['class' => 'form-select', 'required', 'id' => 'caseId', 'placeholder' => __('messages.case.select_case'), 'data-control' => 'select2']) }} {{-- {{ Form::select('case_id', $cases, null, ['class' => 'form-select', 'required', 'id' => 'caseId', 'placeholder' => __('messages.case.select_case'), 'data-control' => 'select2', isset($bedAssign->case_id) ? 'disabled' : '']) }} --}} @if(isset($bedAssign->case_id)) {{Form::hidden('case_id',$bedAssign->case_id)}} @endif {{ Form::hidden('id', null,['id' => 'editBedAssignId']) }}
{{ Form::label('ipd_patient_department_id', __('messages.ipd_patient.ipd_patient').':', ['class' => 'form-label required']) }} {{ Form::select('ipd_patient_department_id', [null], null, ['class' => 'form-select', 'required', 'id' => 'ipdPatientId', 'disabled', 'data-control' => 'select2', 'placeholder' => __('messages.new_change.select_ipd_patient')]) }}
{{ Form::label('bed_id', __('messages.bed_assign.bed').':', ['class' => 'form-label']) }} {{ Form::select('bed_id', $beds, isset($bedId) ? $bedId : null, ['class' => 'form-select', 'required', 'id' => 'BedAssignBedId', 'data-control' => 'select2', 'placeholder' => __('messages.bed.select_bed')]) }}
{{ Form::label('assign_date', __('messages.bed_assign.assign_date').':', ['class' => 'form-label required']) }} {{ Form::text('assign_date', null, ['class' => (getLoggedInUser()->thememode ? 'bg-light form-control' : 'bg-white form-control'),'id' => isset($bedAssign) ? 'editBedAssignDate' : 'BedAssignDate', 'required']) }}
@isset($bedAssign)
{{ Form::label('discharge_date', __('messages.bed_assign.discharge_date').':', ['class' => 'form-label']) }} {{ Form::text('discharge_date', null, ['class' => (getLoggedInUser()->thememode ? 'bg-light form-control' : 'bg-white form-control'),'id' => 'BedAssignDischargeDate']) }}
@endisset
{{ Form::label('description', __('messages.bed_assign.description').':', ['class' => 'form-label']) }} {{ Form::textarea('description', null, ['id'=>'BedAssignDescription','class' => 'form-control', 'rows' => 4]) }}
{{ Form::label('status', __('messages.common.status').':', ['class' => 'form-label']) }}
status == 0 ? 'disabled' : 'checked'}}>
{!! Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2','id' => 'BedAssignSaveBtn']) !!} {!! __('messages.common.cancel') !!}