Titans: Ciphaler Rxn Tracker & Synchrobreathe Rxn Tracker (20 doctors tagging)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m41s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m41s
Details
This commit is contained in:
parent
aff6cceaaf
commit
5700fd2ae4
|
|
@ -38,6 +38,25 @@
|
|||
<h6>Submitted By: {{$form->user_info->name}}</h6>
|
||||
</div>
|
||||
@endif
|
||||
@php
|
||||
$taggedDoctorCount = 0;
|
||||
|
||||
foreach ($questions as $question) {
|
||||
if ($question->code == 'contact_id') {
|
||||
foreach ($question->options as $option) {
|
||||
if (
|
||||
isset($option->contact->synchrobreathe_tagged) &&
|
||||
$option->contact->synchrobreathe_tagged == 'yes'
|
||||
) {
|
||||
$taggedDoctorCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$isTaggingComplete = ($taggedDoctorCount == 20);
|
||||
@endphp
|
||||
@if($isTaggingComplete)
|
||||
<form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="form_id" value="{{$form_id}}">
|
||||
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
||||
|
|
@ -75,31 +94,23 @@
|
|||
@case('dropdown')
|
||||
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
|
||||
<option value=""> -- Select -- </option>
|
||||
@foreach ($question->options as $option)
|
||||
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type == 'doctor' )
|
||||
<option value="{{ $option->value }}"
|
||||
@if(isset($question->value) && $question->value == $option->value) selected @endif
|
||||
@if($question->code == 'contact_id')
|
||||
msl_code="{{ (isset($option->contact->msl_code) ? $option->contact->msl_code : '') }}"
|
||||
speciality="{{ (isset($option->contact->speciality) ? $option->contact->speciality : '') }}"
|
||||
@endif
|
||||
>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@elseif($question->code != 'contact_id')
|
||||
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }} {{ $question->code == 'contact_id' ? 'pcode= ' . (isset($option->contact->pcode)?$option->contact->pcode:'') . ' ' : '' }} {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }} {{ $question->code == 'contact_id' ? 'speciality= ' . (isset($option->contact->speciality) ? $option->contact->speciality :'') . ' ' : '' }} >
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@if ($question->code == 'contact_id')
|
||||
@foreach ($question->options as $option)
|
||||
@if( isset($option->contact->synchrobreathe_tagged) && $option->contact->synchrobreathe_tagged == 'yes' )
|
||||
<option value="{{ $option->value }}" pcode="{{isset($option->contact->pcode)?$option->contact->pcode:''}}" msl_code="{{isset($option->contact->msl_code)?$option->contact->msl_code:''}}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
@foreach ($question->options as $option)
|
||||
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
@endforeach
|
||||
<!-- @if($question->code=='contact_id')
|
||||
<option value="others" {{ isset($question->value) && $question->value == 'others' ? 'selected' : '' }}>Others</option>
|
||||
@endif -->
|
||||
</select>
|
||||
@break
|
||||
@break
|
||||
@case('checkbox')
|
||||
@foreach($question->options as $option)
|
||||
<div class="form-check mb-2 form-check-primary">
|
||||
|
|
@ -145,6 +156,7 @@
|
|||
</div>
|
||||
@endif
|
||||
</form>
|
||||
@endif
|
||||
|
||||
</div> <!-- end card-body -->
|
||||
</div>
|
||||
|
|
@ -179,6 +191,19 @@
|
|||
</style>
|
||||
@include('layouts.shared/footer-script')
|
||||
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
||||
@if(!$isTaggingComplete)
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
title: 'Incomplete Tagging',
|
||||
text: 'Tagging is incomplete. Please complete tagging through My Doctors.',
|
||||
allowOutsideClick: false,
|
||||
confirmButtonText: 'OK'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
var today = new Date().toISOString().split('T')[0];
|
||||
|
|
|
|||
|
|
@ -38,6 +38,25 @@
|
|||
<h6>Submitted By: {{$form->user_info->name}}</h6>
|
||||
</div>
|
||||
@endif
|
||||
@php
|
||||
$taggedDoctorCount = 0;
|
||||
|
||||
foreach ($questions as $question) {
|
||||
if ($question->code == 'contact_id') {
|
||||
foreach ($question->options as $option) {
|
||||
if (
|
||||
isset($option->contact->ciphaler_tagged) &&
|
||||
$option->contact->ciphaler_tagged == 'yes'
|
||||
) {
|
||||
$taggedDoctorCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$isTaggingComplete = ($taggedDoctorCount == 20);
|
||||
@endphp
|
||||
@if($isTaggingComplete)
|
||||
<form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="form_id" value="{{$form_id}}">
|
||||
<input type="hidden" name="user_id" value="{{$form->user_id}}">
|
||||
|
|
@ -84,33 +103,15 @@
|
|||
<option value=""> -- Select -- </option>
|
||||
@if ($question->code == 'contact_id')
|
||||
@foreach ($question->options as $option)
|
||||
@if( isset($option->contact->ciphaler_rxber) && $option->contact->ciphaler_rxber == 'Yes' )
|
||||
@if( isset($option->contact->ciphaler_tagged) && $option->contact->ciphaler_tagged == 'yes' )
|
||||
<option value="{{ $option->value }}" pcode="{{isset($option->contact->pcode)?$option->contact->pcode:''}}" msl_code="{{isset($option->contact->msl_code)?$option->contact->msl_code:''}}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@endif
|
||||
@endforeach
|
||||
<option value="others"
|
||||
{{ isset($question->value) && $question->value == 'others' ? 'selected' : '' }}>
|
||||
Others
|
||||
</option>
|
||||
@elseif ($question->code == 'name_of_other_hcp')
|
||||
@foreach ($question->options as $option)
|
||||
@if(!isset($option->contact->ciphaler_rxber) || trim($option->contact->ciphaler_rxber) == '')
|
||||
<option value="{{ $option->value }}"
|
||||
pcode="{{ isset($option->contact->pcode) ? $option->contact->pcode : '' }}"
|
||||
msl_code="{{ isset($option->contact->msl_code) ? $option->contact->msl_code : '' }}"
|
||||
{{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
@else
|
||||
@foreach ($question->options as $option)
|
||||
<option value="{{ $option->value }}" pcode="{{isset($option->contact->pcode)?$option->contact->pcode:''}}" msl_code="{{isset($option->contact->msl_code)?$option->contact->msl_code:''}}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
|
||||
{{ $option->display }}
|
||||
</option>
|
||||
@endforeach
|
||||
|
|
@ -162,6 +163,7 @@
|
|||
</div>
|
||||
@endif
|
||||
</form>
|
||||
@endif
|
||||
|
||||
</div> <!-- end card-body -->
|
||||
</div>
|
||||
|
|
@ -196,6 +198,19 @@
|
|||
</style>
|
||||
@include('layouts.shared/footer-script')
|
||||
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
||||
@if(!$isTaggingComplete)
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
Swal.fire({
|
||||
icon: 'warning',
|
||||
title: 'Incomplete Tagging',
|
||||
text: 'Tagging is incomplete. Please complete tagging through My Doctors.',
|
||||
allowOutsideClick: false,
|
||||
confirmButtonText: 'OK'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
if($('#field-contact_id').val() === 'others'){
|
||||
|
|
|
|||
Loading…
Reference in New Issue