{{ Form::label('patient_admission_id', __('messages.bill.admission_id').(':'),['class'=>'form-label']) }} {{ Form::select('patient_admission_id', $patientAdmissionIds, null, ['class' => 'form-select', 'id' => 'patientAdmissionId', 'placeholder' => __('messages.document.select_admission_id'),'data-control' => 'select2', 'required']) }}
{{ Form::hidden('patient_admission_id', null, ['id' => 'pAdmissionId']) }} {{ Form::hidden('patient_id', null, ['id' => 'billsPatientId']) }} @if(isset($bill))
{{ Form::label('bill_date', __('messages.bill.bill_date').(':'),['class'=>'form-label']) }} {{ Form::text('bill_date', null, ['class' => (getLoggedInUser()->thememode ? 'bg-light form-control' : 'bg-white form-control'), 'id' => 'editBillDate', 'autocomplete' => 'off']) }}
@else
{{ Form::label('bill_date', __('messages.bill.bill_date').(':'),['class'=>'form-label']) }} {{ Form::text('bill_date', null, ['class' => (getLoggedInUser()->thememode ? 'bg-light form-control' : 'bg-white form-control'), 'id' => 'bill_date', 'autocomplete' => 'off']) }}
@endif
{{ Form::label('name', __('messages.case.patient').(':'),['class'=>'form-label']) }} {{ Form::text('name', null, ['class' => 'form-control', 'id' => 'name', 'readonly']) }}
{{ Form::label('email', __('messages.bill.patient_email').(':'),['class'=>'form-label']) }} {{ Form::text('email', null, ['class' => 'form-control', 'id' => 'userEmail', 'readonly']) }}
{{ Form::label('phone', __('messages.bill.patient_cell_no').(':'),['class'=>'form-label']) }} {{ Form::text('phone', null, ['class' => 'form-control', 'id' => 'userPhone', 'readonly']) }}
{{ Form::label('gender', __('messages.bill.patient_gender').(':'),['class'=>'form-label']) }}
{{ Form::radio('gender', '0', true, ['class' => 'form-check-input', 'tabindex' => '6', 'id' => 'genderMale']) }}  
{{ Form::radio('gender', '1', false, ['class' => 'form-check-input', 'tabindex' => '7', 'id' => 'genderFemale']) }}
{{ Form::label('dob', __('messages.bill.patient_dob').(':'),['class'=>'form-label']) }} {{ Form::text('dob', null, ['class' => 'form-control', 'id' => 'dob', 'readonly']) }}
{{ Form::label('doctor_id', __('messages.case.doctor').(':'),['class'=>'form-label']) }} {{ Form::text('doctor_id', null, ['class' => 'form-control', 'id' => 'billDoctorId', 'readonly']) }}
{{ Form::label('admission_date', __('messages.bill.admission_date').(':'),['class'=>'form-label']) }} {{ Form::text('admission_date', null, ['class' => 'form-control', 'id' => 'admissionDate', 'readonly']) }}
{{ Form::label('discharge_date', __('messages.bill.discharge_date').(':'),['class'=>'form-label']) }} {{ Form::text('discharge_date', null, ['class' => 'form-control', 'id' => 'dischargeDate', 'readonly']) }}
{{ Form::label('package_id', __('messages.bill.package_name').(':'),['class'=>'form-label']) }} {{ Form::text('package_id', null, ['class' => 'form-control', 'id' => 'packageId', 'readonly']) }}
{{ Form::label('insurance_id', __('messages.bill.insurance_name').(':'),['class'=>'form-label']) }} {{ Form::text('insurance_id', null, ['class' => 'form-control', 'id' => 'insuranceId', 'readonly']) }}
{{ Form::label('total_days', __('messages.bill.total_days').(':'),['class'=>'form-label']) }} {{ Form::text('total_days', null, ['class' => 'form-control', 'id' => 'totalDays', 'readonly']) }}
{{ Form::label('policy_no', __('messages.bill.policy_no').(':'),['class'=>'form-label']) }} {{ Form::text('policy_no', null, ['class' => 'form-control', 'id' => 'policyNo', 'readonly']) }}
@if(isset($bill)) @foreach($bill->billItems as $billItem) @endforeach @else @endif
# {{ __('messages.bill.item_name') }} {{ __('messages.bill.qty') }} {{ __('messages.bill.price') }} {{ __('messages.bill.amount') }} {{ __('messages.common.action') }}
{{ $loop->iteration }} {{ Form::text('item_name[]', $billItem->item_name, ['class' => 'form-control itemName','required']) }} {{ Form::number('qty[]', $billItem->qty, ['class' => 'form-control qty quantity','required']) }} {{ Form::text('price[]', number_format($billItem->price), ['class' => 'form-control decimal-number price','required']) }} {{ number_format($billItem->amount) }}
1 {{ Form::text('item_name[]', null, ['class' => 'form-control itemName','required']) }} {{ Form::number('qty[]', null, ['class' => 'form-control qty quantity','required',]) }} {{ Form::text('price[]', null, ['class' => 'form-control decimal-number price','required']) }}
{{ __('messages.bill.total_amount').(':') }} {{ getCurrencySymbol() }} {{ isset($bill) ? number_format($bill->amount,2) : 0 }}
{{ Form::hidden('total_amount', null, ['class' => 'form-control', 'id' => 'totalAmount']) }}
{{ Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2','id' => 'billSave']) }} {{ __('messages.common.cancel') }}