resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,762 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('art_clinic.art_clinic') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('art_clinic.dashboard') }}</a></li>
<li class="active">{{ __('art_clinic.art_clinic') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">{{ __('art_clinic.triage_details') }}
<div class="panel-action"><a href="#" data-perform="panel-collapse"><i class="ti-minus"></i></a> <a href="#" data-perform="panel-dismiss"><i class="ti-close"></i></a></div>
</div>
<div class="panel-wrapper collapse in">
<ul class="nav customtab nav-tabs" role="tablist">
<li role="presentation" class="active nav-item"><a href="#home1" class="nav-link" aria-controls="home" role="tab" data-toggle="tab" aria-expanded="true"><span class="visible-xs"><i class="ti-home"></i></span><span class="hidden-xs"> {{ __('art_clinic.observations') }}</span></a></li>
<li role="presentation" class="nav-item"><a href="#profile1" class="nav-link" aria-controls="profile" role="tab" data-toggle="tab" aria-expanded="false"><span class="visible-xs"><i class="ti-user"></i></span> <span class="hidden-xs">{{ __('art_clinic.symptoms') }}</span></a></li>
<li role="presentation" class="nav-item"><a href="#messages1" class="nav-link" aria-controls="messages" role="tab" data-toggle="tab"><span class="visible-xs"><i class="ti-email"></i></span> <span class="hidden-xs">{{ __('art_clinic.grade') }}</span></a></li>
</ul>
<div class="panel-body">
<div class="tab-content m-t-0">
<div role="tabpanel" class="tab-pane fade active in" id="home1">
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane fade" id="profile1">
<div class="col-md-6">
@if($triage)
{{ get_name($triage->symptoms,'id','name','symptoms') }}
@else
<code>{{ __('art_clinic.no_symptoms_records') }}</code>
@endif
</div>
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane fade" id="messages1">
<div class="col-md-6">
@if($triage)
@switch($triage->severe_grade)
@case (1)
<span style="font-weight: bolder; color: green;">{{ __('art_clinic.green') }}</span>
@break
@case (2)
<span style="font-weight: bolder; color: yellow;">{{ __('art_clinic.yellow') }}</span>
@break
@case (3)
<span style="font-weight: bolder; color: green;">{{ __('art_clinic.red') }}</span>
@break
@default
<code>{{ __('art_clinic.triage_grade_not_determined') }}</code>
@endswitch
@endif
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">{{ __('art_clinic.patient_documents') }}
<div class="panel-action">
<div class="dropdown active men">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false" role="button"><span class="label label-purple">{{ $documents->count() }}</span> &nbsp; <span class="caret"></span></a>
<ul class="dropdown-menu bullet dropdown-menu-right" aria-labelledby="examplePanelDropdown" role="menu">
<li role="presentation"><a href="#" role="menuitem" data-perform="panel-collapse"><i class="ti-plus"></i></a></li>
<li role="presentation"><a href="#" role="menuitem" data-perform="panel-dismiss"><i class="ti-close"></i></a></li>
<li class="divider" role="presentation"></li>
<li role="presentation"><a href="{{ route('patient_documents.index') }}" role="menuitem"><i class="icon wb-settings" aria-hidden="true"></i> {{ __('art_clinic.add') }}</a></li>
</ul>
</div>
</div>
<div class="panel-action">
</div>
</div>
<div class="panel-wrapper collapse in table-responsive">
<table class="table table-hover table-condensed">
<tbody>
@foreach($documents as $document)
<tr>
<td><a href="#">{{ $document->title }}</a></td>
<td>{{ Carbon\Carbon::parse($document->date_taken)->format('jS M Y') }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<b>{{ __('art_clinic.art_clinic') }}</b><br><br>
<div class="row">
<div class="col-sm-10"></div><div class="col-sm-2"><b>{{ __('art_clinic.clinician') }} : </b><font style="background: #eaeaf3;"> {{ isset($triage) ? get_name($triage->created_by,'id','last_name','users') : ""}} </font></div>
</div>
<hr>
{{ Form::open(['route' => 'antiretral_viral_therapy.store','data-toggle'=>'validator']) }}
<input type="hidden" name="patient_id" value="{{ $patient_id }}">
<input type="hidden" name="episode_id" value="{{ $episode_id }}">
<div class="row">
<div class="form-group col-sm-2">
{{ Form::label('age','Age') }}
@php
$age_array = days_months_years($patient->date_of_birth, Carbon\Carbon::now());
$age_days = $age_array[0];
$age_months = $age_array[1];
$age_years = $age_array[2];
@endphp
<br>
<div style="background: #eaeaf3; padding: 5px;">
{{ $age_years }} Years {{ $age_months }} Months <br>
</div>
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="marital_status">{{ __('art_clinic.marital_status') }}</label>
{{ Form::select('marital_status',$marital_statuses,'',['class'=>'form-control compulsory']) }}
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
{{ Form::label('art_clinic_number','ART CLINIC NUMBER') }}
{{ Form::text('art_clinic_number','',['class'=>'form-control compulsory']) }}
</div>
<div class="col-sm-1"></div>
<div class="col-sm-2">
<label for="date_hiv_confirmed">{{ __('art_clinic.date_confirmed_hiv_positive') }}</label>
<div class="input-group">
{{ Form::text('date_hiv_confirmed','',['class'=>'form-control compulsory','id'=>'datepicker-autoclose1','required']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-sm-2">
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="test_type">{{ __('art_clinic.test_type') }}</label>
<br>
{{ Form::radio('test_type', 'AB', false, ['required']) }} Yes &nbsp;&nbsp;
{{ Form::radio('test_type', 'PCR', false, ['required']) }} No
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="where">{{ __('art_clinic.where') }}</label>
{{ Form::text('where','',['class'=>'form-control']) }}
</div>
<div class="form-group col-sm-2">
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="form-group col-sm-2">
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="care_entry_point">{{ __('art_clinic.care_entry_point') }}</label>
<br>
{{ Form::select('care_entry_point',$care_entry_points,'',['class' => 'form-control compulsory']) }}
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="other_care_entry_point">{{ __('art_clinic.other_specify') }}</label>
{{ Form::text('other_care_entry_point','',['class'=>'form-control']) }}
</div>
<div class="form-group col-sm-2">
</div>
<div class="col-sm-1"></div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-2">
<label for="treatment_supporter">{{ __('art_clinic.treatment_supporter') }}</label>
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="treatment_support_name">{{ __('art_clinic.support_name') }}</label>
{{ Form::text('treatment_supporter_name','',['class'=>'form-control compulsory']) }}
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="treatment_supporter_phone">{{ __('art_clinic.supporter_telephone') }}</label>
{{ Form::text('treatment_supporter_phone','',['class'=>'form-control compulsory']) }}
</div>
<div class="col-sm-1"></div>
<div class="col-sm-2" id="div_district">
<label for="district">{{ __('art_clinic.district') }}</label>
{{ Form::select('district',$districts,'',['class'=>'form-control compulsory district','id'=>'district_id']) }}
<a href="#modal_district" data-toggle="modal" id="modal_district_link"><font size="1">{{ __('art_clinic.add_new_district') }}</font></a>
</div>
</div>
<div class="row">
<div class="form-group col-sm-2" id="div_county" style="display: none;">
<label for='county_id'>{{ __('art_clinic.county') }}</label>
<select class='form-control county' name='county_id' id='county_id' data-error=''>
<option>{{ __('art_clinic.select') }}</option>
</select>
<a href="#modal_county" data-toggle="modal" id="modal_county_link"><font size="1">{{ __('art_clinic.add_new_county') }}</font></a>
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2" id="div_subcounty" style="display: none;">
<label for='subcounty_id'>{{ __('art_clinic.sub_county') }}</label>
<select class='form-control subcounty' name='subcounty_id' id='subcounty_id' data-error=''>
<option>{{ __('art_clinic.select') }}</option>
</select>
<a href="#modal_subcounty" data-toggle="modal" id="modal_subcounty_link"><font size="1">{{ __('art_clinic.add_new_sub_county') }}</font></a>
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2" id="div_parish" style="display: none;">
<label for='parish'>{{ __('art_clinic.parish') }}</label>
<select class='form-control parish' name='parish' id='parish' data-error=''>
<option>{{ __('art_clinic.select') }}</option>
</select>
<a href="#modal_parish" data-toggle="modal" id="modal_parish_link"><font size="1">{{ __('art_clinic.add_new_parish') }}</font></a>
</div>
<div class="col-sm-1"></div>
<div class="col-sm-2" id="div_village" style="display: none;">
<label for='village'>{{ __('art_clinic.village') }}</label>
<select class='form-control village' name='village' id="village" data-error=''>
<option>{{ __('art_clinic.select') }}</option>
</select>
<a href="#modal_village" data-toggle="modal" id="modal_village_link"><font size="1">{{ __('art_clinic.add_new_village') }}</font></a>
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-3">
<label for="home_based_care_provided_by">{{ __('art_clinic.home_based_care_provided_by') }}</label>
</div>
<div class="form-group col-sm-3">
{{ Form::label('','') }}
{{ Form::text('home_based_care_provided_by','',['class'=>'form-control compulsory']) }}
</div>
<div class="form-group col-sm-2">
</div>
<div class="col-sm-3" style="padding: 5px;">
{{ Form::button('Complete registration',['type'=>'submit','class'=>'btn btn-success btn-lg col-sm-12','id'=>'submit_art_registration','value'=>'complete']) }}
</div>
</div>
</div>
</div>
</div>
{{ Form::close() }}
<!-- add residence modals -->
<!-- new district modal -->
<div class="modal fade" id="modal_district" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_district') }}</h4>
</div>
<div class="modal-body">
<div class="controls">
<input class="form-control" id="new_district_name" name="new_district_name" type="text" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
<input type="button" class="btn btn-success" id="submit_new_district" value="Save " />
</div>
</div>
</div>
</div>
<!-- new county modal -->
<div class="modal fade" id="modal_county" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_county') }}</h4>
</div>
<div class="modal-body">
<div class="controls">
<input class="form-control" id="new_county_name" name="new_county_name" type="text" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
<input type="button" class="btn btn-success" id="submit_new_county" value="Save " />
</div>
</div>
</div>
</div>
<!-- new subcounty modal -->
<div class="modal fade" id="modal_subcounty" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_sub_county') }}</h4>
</div>
<div class="modal-body">
<div class="controls">
<input class="form-control" id="new_subcounty_name" name="new_subcounty_name" type="text" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
<input type="button" class="btn btn-success" id="submit_new_subcounty" value="Save " />
</div>
</div>
</div>
</div>
<!-- new parish modal -->
<div class="modal fade" id="modal_parish" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_parish') }}</h4>
</div>
<div class="modal-body">
<div class="controls">
<input class="form-control" id="new_parish_name" name="new_parish_name" type="text" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
<input type="button" class="btn btn-success" id="submit_new_parish" value="Save " />
</div>
</div>
</div>
</div>
<!-- new village modal -->
<div class="modal fade" id="modal_village" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_village') }}</h4>
</div>
<div class="modal-body">
<div class="controls">
<input class="form-control" id="new_village_name" name="new_village_name" type="text" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
<input type="button" class="btn btn-success" id="submit_new_village" value="Save " />
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
$('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#datepicker-autoclose5,#datepicker-autoclose6').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy',
});
$("#submit_art_registration").click(function (e) { // make sure that all compulsory fields have been filled out
var empty_compulsory_fields = [];
$(".compulsory").each(function () {
if ($(this).val() == "") {
var textname = $(this).attr('name');
$(this).focus();
empty_compulsory_fields.push(textname);
$(this).css('border','1px solid #F08080');
}
});
/* check if the array containing empty compulsory fields is not empty then return false */
if (empty_compulsory_fields.length != 0) {
alert("Please fill in all compulsory fields");
console.log(empty_compulsory_fields);
e.preventDefault();
return false;
}
});
$("#submit_new_occupation").click(function () {
var new_occupation_name = $("#new_occupation_name").val();
if (new_occupation_name == '') {
alert("Please fill out a name");
} else {
$.ajax({
type: "POST",
url: "/add_new_occupation_dynamically",
data: {name: new_occupation_name},
cache: false,
success: function (response) {
if(response == 'false'){
alert("Error occured. New occupation has not been added");
} else {
$('.occupation').append($('<option>', {
value: response,
text: new_occupation_name
}));
$('.occupation').val(response);//preselect the newly added referral
//$('#modal_occupation').hide();
$('#modal_occupation').modal('hide');
}
}
});
}
$("#new_occupation_name").val('');
$("#modal_occupation #close").click();
});
$("#submit_new_district").click(function () {
var new_district_name = $("#new_district_name").val();
if (new_district_name == '') {
alert("Please fill out a name");
} else {
$.ajax({
type: "POST",
url: "/add_new_district_dynamically",
data: {name: new_district_name},
cache: false,
success: function (response) {
if(response == 'false'){
alert("District already Exists");
} else {
$('.district').append($('<option>', {
value: response,
text: new_district_name
}));
$('.district').val(response);//preselect the newly added referral
//$('#modal_occupation').hide();
$('#modal_district').modal('hide');
}
},
error: function (error) {
console.log(error);
}
});
}
$("#new_district_name").val('');
$("#modal_district #close").click();
});
$("#submit_new_county").click(function () {
var new_county_name = $("#new_county_name").val();
if (new_county_name == '') {
alert("Please fill out a name");
} else {
$.ajax({
type: "POST",
url: "/add_new_county_dynamically",
data: {name: new_county_name},
cache: false,
success: function (response) {
if(response == 'false'){
alert("County already Exists");
} else {
$('.county').append($('<option>', {
value: response,
text: new_county_name
}));
$('.county').val(response);//preselect the newly added referral
//$('#modal_occupation').hide();
$('#modal_county').modal('hide');
}
}
});
}
$("#new_county_name").val('');
$("#modal_county #close").click();
});
$("#submit_new_subcounty").click(function () {
var new_subcounty_name = $("#new_subcounty_name").val();
if (new_subcounty_name == '') {
alert("Please fill out a name");
} else {
$.ajax({
type: "POST",
url: "/add_new_subcounty_dynamically",
data: {name: new_subcounty_name},
cache: false,
success: function (response) {
if(response == 'false'){
alert("Sub-County already Exists");
} else {
$('.subcounty').append($('<option>', {
value: response,
text: new_subcounty_name
}));
$('.subcounty').val(response);//preselect the newly added referral
//$('#modal_occupation').hide();
$('#modal_subcounty').modal('hide');
}
}
});
}
$("#new_subcounty_name").val('');
$("#modal_subcounty #close").click();
});
$("#submit_new_parish").click(function () {
var new_parish_name = $("#new_parish_name").val();
if (new_parish_name == '') {
alert("Please fill out a name");
} else {
$.ajax({
type: "POST",
url: "/add_new_parish_dynamically",
data: {name: new_parish_name},
cache: false,
success: function (response) {
if(response == 'false'){
alert("Parish already Exists");
} else {
$('.parish').append($('<option>', {
value: response,
text: new_parish_name
}));
$('.parish').val(response);//preselect the newly added referral
//$('#modal_occupation').hide();
$('#modal_parish').modal('hide');
}
}
});
}
$("#new_parish_name").val('');
$("#modal_parish #close").click();
});
$("#submit_new_village").click(function () {
var new_village_name = $("#new_village_name").val();
if (new_village_name == '') {
alert("Please fill out a name");
} else {
$.ajax({
type: "POST",
url: "/add_new_village_dynamically",
data: {name: new_village_name},
cache: false,
success: function (response) {
if(response == 'false'){
alert("Village already Exists");
} else {
$('.village').append($('<option>', {
value: response,
text: new_village_name
}));
$('.village').val(response);//preselect the newly added referral
//$('#modal_occupation').hide();
$('#modal_village').modal('hide');
}
}
});
}
$("#new_village_name").val('');
$("#modal_village #close").click();
});
$('#div_district').on('change', function () {
$('#div_county').show();
//get selected value
var id = $('#district_id').val();
//add dropdown to immediate dependant dropdown
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
//set counties dropdown options for selected district
console.log("selected district_id = " + id);
document.getElementById("county_id").innerHTML = xmlhttp.responseText;
/*document.getElementById("subcounty_id").innerHTML = xmlhttp.responseText;
document.getElementById("parish").innerHTML = xmlhttp.responseText;
document.getElementById("village").innerHTML = xmlhttp.responseText;*/
}
}
xmlhttp.open("GET", "/patients/get_counties/" + id, false);
xmlhttp.send();
});
$('#div_county').on('change', function () {
var id = $('#district_id').val();
var id = $('#county_id').val();
$('#div_subcounty').show();
//add dropdown to immediate dependant dropdown
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("subcounty_id").innerHTML = xmlhttp.responseText;
document.getElementById("parish").innerHTML = xmlhttp.responseText;
document.getElementById("village").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET", "/patients/get_subcounties/" + id, false);
xmlhttp.send();
});
$('#div_subcounty').on('change', function () {
//remove content from all dependant dropdowns
//get selected value
var id = $('#subcounty_id').val();
var district_id = $('#district_id').val();
$('#div_parish').show();
//add dropdown to immediate dependant dropdown
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("parish").innerHTML = xmlhttp.responseText;
document.getElementById("village").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET", "/patients/get_parishes/" + id, false);
xmlhttp.send();
});
$('#div_parish').on('change', function () {
//remove content from all dependant dropdowns
//get selected value
var id = $('#parish').val();
$('#div_village').show();
//add dropdown to immediate dependant dropdown
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("village").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET", "/patients/get_villages/" + id, false);
xmlhttp.send();
});
$('#district_id').on('click', function () {
var district_id = $('#district_id').val();
$.ajax({
type: 'GET',
url: '/patient_residence/'+district_id,
cache: false,
success: function (response) {
/* auto fill the subcounties based on the district that is selected */
var subcounties = response.subcounties;
for(var id in subcounties){
var subcounty_select = document.getElementById("subcounty_id");
var subcounty_option = document.createElement("option");
subcounty_option.value = id;
subcounty_option.text = subcounties[id];
subcounty_select.appendChild(subcounty_option);
}
/* auto fill the parishes based on the selected district */
var parishes = response.parishes;
for(var id in parishes){
var parish_select = document.getElementById("parish");
var parish_option = document.createElement("option");
parish_option.value = id;
parish_option.text = parishes[id];
parish_select.appendChild(parish_option);
}
/* auto fill the villages based on the selected district */
var villages = response.villages;
for(var id in villages){
var village_select = document.getElementById("village");
var village_option = document.createElement("option");
village_option.value = id;
village_option.text = villages[id];
village_select.appendChild(village_option);
}
}
});
});
</script>
@endpush
@@ -0,0 +1,475 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('art_clinic.art_clinic_continuation_card') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('art_clinic.dashboard') }}</a></li>
<li class="active">{{ __('art_clinic.art_clinic_continuation_card') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
@if($existing_art_continuation_card_records_array)
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<h4>{{ __('art_clinic.existing_art_card_details') }}</h4>
<table class="table color-bordered-table success-bordered-table" id="paid_treatments_table">
<thead>
<tr>
<th></th>
<th>{{ __('art_clinic.follow_up') }}</th>
<th>{{ __('art_clinic.date_started_art') }}</th>
<th>{{ __('art_clinic.muac') }}</th>
<th>{{ __('art_clinic.oedema') }}</th>
<th>{{ __('art_clinic.pregnant') }}</th>
<th>{{ __('art_clinic.edd') }}</th>
<th>{{ __('art_clinic.gestation') }}</th>
<th>{{ __('art_clinic.family_planning') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@php $counter = 1; @endphp
@foreach($existing_art_continuation_card_records as $existing_record)
@php
$unserialized_ART_details = unserialize($existing_record->ART);
$date_ART_started = $unserialized_ART_details['Date started ART'];
$duration = $unserialized_ART_details['Duration'];
$date_started_current_ART_regime = $unserialized_ART_details['Date started current ART regime'];
$current_regime_duration = $unserialized_ART_details['Current Regime Duration'];
$unserialized_muac_oedema = unserialize($existing_record->muac_oedema);
$muac = $unserialized_muac_oedema['muac'];
$oedema = $unserialized_muac_oedema['oedema'];
$unserialized_pregnancy_details = unserialize($existing_record->pregnancy);
$pregnant = $unserialized_pregnancy_details['Pregnant'];
$edd = $unserialized_pregnancy_details['EDD'];
$emtct = $unserialized_pregnancy_details['EMTCT'];
$anc_location = $unserialized_pregnancy_details['ANC Location'];
$gestation = $unserialized_pregnancy_details['Gestation'];
$family_planning = $unserialized_pregnancy_details['FP'];
@endphp
<tr>
<td>{{ $counter }}.</td>
<td>{{ $existing_record->follow_up == "1" ? "Yes" : "No" }}</td>
<td>{{ is_null($date_ART_started) ? "" : streamline_date($date_ART_started) }}</td>
<td>{{ $muac }}</td>
<td>{{ $oedema }}</td>
<td>{{ $pregnant }}</td>
<td>{{ is_null($edd) ? "" : streamline_date($edd) }}</td>
<td>{{ $gestation }} weeks</td>
<td>{{ $fp_options[$family_planning] }}</td>
<td>
<a href="{{ url('art_continuation_details') }}/{{ $existing_record->id }}" class="btn btn-success btn-sm">{{ __('art_clinic.details') }}</a>
</td>
</tr>
@php $counter++; @endphp
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endif
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<h3>{{ __('art_clinic.art_continuation_card') }}</h3>
{{ Form::open(['route' => 'antiretral_viral_therapy.store_continuation_card','data-toggle'=>'validator']) }}
<input type="hidden" name="patient_id" value="{{ $patient_id }}">
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-3"><b>{{ __('art_clinic.clinician') }} : </b><font style="background: #eaeaf3;"> {{ auth()->user()->first_name . " " . auth()->user()->last_name }}</font></div>
<div class="col-sm-2"><b>{{ __('art_clinic.scheduled_follow_up') }} </b></div>
<div class="col-sm-3"><font style="background: #eaeaf3;"> {{ Form::select('follow_up',['' => ' -- Select --', '1' => 'yes', '0' => 'no'],'',['class'=>'form-control compulsory']) }}</font></div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-2">
<label for="date_started_art">{{ __('art_clinic.date_started_art') }}</label>
<div class="input-group">
{{ Form::text('date_started_art','',['class'=>'form-control compulsory','id'=>'datepicker-autoclose1','required']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-2">
<label for="duration">{{ __('art_clinic.duration') }}</label>
{{ Form::text('art_duration','',['class'=>'form-control compulsory','id' => 'art_duration']) }}
</div>
<div class="col-sm-1"><br><br>{{ __('art_clinic.months') }}</div>
<div class="col-sm-3">
<label for="art_regime_start_date">{{ __('art_clinic.date_started_current_art_regime') }}</label>
<div class="input-group">
{{ Form::text('art_regime_start_date','',['class'=>'form-control','id'=>'datepicker-autoclose2','required']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-2">
<label for="art_regime_duration">{{ __('art_clinic.duration') }}</label>
{{ Form::text('art_regime_duration','',['class'=>'form-control compulsory','id' => 'art_regime_duration']) }}
</div>
<div class="col-sm-1"><br><br>{{ __('art_clinic.months') }}</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-2">
<label for="muac">{{ __('art_clinic.muac') }}</label>
{{ Form::text('muac', '', ['class'=>'form-control compulsory','id'=>'muac']) }}
</div>
<div class="col-sm-1"><br><br>cm</div>
<div class="form-group col-sm-2">
<label for="oedema">{{ __('art_clinic.oedema') }}</label>
{{ Form::select('oedema',['' => '-- Select --', '-' => ' - ', '+' => ' + '],'',['class'=>'form-control compulsory','id'=>'oedema']) }}
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-2">
<label for="pregnant">{{ __('art_clinic.pregnant') }}</label>
<br>
{{ Form::radio('pregnant', 'Yes', false, ['required']) }} Yes &nbsp;&nbsp;
{{ Form::radio('pregnant', 'No', false, ['required']) }} No
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="edd">{{ __('art_clinic.edd') }}</label>
<div class="input-group">
{{ Form::text('edd','',['class'=>'form-control compulsory','id'=>'edd']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-2">
<label for="emtct">{{ __('art_clinic.emtct') }}</label>
<br>
{{ Form::radio('emtct', 'Yes', false, ['required']) }} Yes &nbsp;&nbsp;
{{ Form::radio('emtct', 'No', false, ['required']) }} No
</div>
<div class="col-sm-1"></div>
<div class="col-sm-2">
<label for="anc_location">{{ __('art_clinic.anc_location') }}</label>
{{ Form::text('anc_location','',['class'=>'form-control']) }}
</div>
<div class="col-sm-1">
<label for="gestation">{{ __('art_clinic.gestation') }}</label>
{{ Form::number('gestation','',['class'=>'form-control', 'min' => '0']) }}
</div>
<div class="col-sm-1"><br><br>{{ __('art_clinic.weeks') }}</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-3">
<label for="fp">{{ __('art_clinic.fp') }}</label>
{{ Form::select('fp',$fp_options,'',['class'=>'form-control compulsory','id'=>'fp']) }}
</div>
<div class="form-group col-sm-3">
</div>
<div class="form-group col-sm-2">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-2">
<label for="tb_status">{{ __('art_clinic.tb_status') }}</label>
{{ Form::select('tb_status',$tb_statuses,'',['class'=>'form-control compulsory','id'=>'tb_status']) }}
</div>
<div class="col-sm-1"></div>
<div class="form-group col-sm-2">
<label for="tb_rx_start_date">{{ __('art_clinic.tb_rx_start_date') }}</label>
<div class="input-group">
{{ Form::text('tb_rx_start_date', '', ['class'=>'form-control','id'=>'tb_rx_start_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="col-sm-2">
<label for="tb_rx_stop_date">{{ __('art_clinic.tb_rx_stop_date') }}</label>
<div class="input-group">
{{ Form::text('tb_rx_stop_date', '' , ['class'=>'form-control','id'=>'tb_rx_stop_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="col-sm-3">
<label for="district_tb_register_number">{{ __('art_clinic.district_tb_register_number') }}</label>
{{ Form::text('district_tb_register_no','',['class'=>'form-control']) }}
</div>
<div class="form-group col-sm-2"></div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-3">
<label for="potential_side_effects">{{ __('art_clinic.potential_side_effects') }}</label>
{{ Form::select('potential_side_effects',$potential_side_effects,'',['class'=>'form-control compulsory','id'=>'potential_side_effects']) }}
</div>
<div class="form-group col-sm-3">
<label for="other_side_effects">{{ __('art_clinic.other_side_effects') }}</label>
{{ Form::text('other_side_effects','',['class'=>'form-control', 'id' => 'other_side_effects']) }}
</div>
<div class="form-group col-sm-2">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-3">
<label for="new_oi">{{ __('art_clinic.new_oi') }}</label>
{{ Form::select('new_oi',$oi_options,'',['class'=>'form-control compulsory','id'=>'new_oi']) }}
</div>
<div class="form-group col-sm-3">
<label for="new_other_oi">{{ __('art_clinic.other_specify') }}</label>
{{ Form::text('new_oi_other','',['class'=>'form-control', 'id' => 'new_oi_other']) }}
</div>
<div class="form-group col-sm-2">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-3">
<label for="nutrition">{{ __('art_clinic.nutrition') }}</label>
{{ Form::select('nutrition',$nutrition,'',['class'=>'form-control compulsory','id'=>'nutrition']) }}
</div>
<div class="form-group col-sm-3">
<label for="functional_status">{{ __('art_clinic.functional_status') }}</label>
{{ Form::select('functional_status',['' => '-- Select --','W' => 'Work / playing','A' => 'Ambulatory','B' => 'Bed'],'',['class'=>'form-control compulsory','id'=>'functional_status']) }}
</div>
<div class="form-group col-sm-3">
<label for="who_stage">{{ __('art_clinic.who_stage') }}</label>
{{ Form::select('who_stage',[''=>'-- Select --','1'=>'WHO clinical stage 1','2'=>'WHO clinical stage 2','3'=>'WHO clinical stage 3','4'=>'WHO clinical stage 4'],'',['class'=>'form-control compulsory','id'=>'who_stage']) }}
</div>
<div class="form-group col-sm-2">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-3">
<label for="cpt_dapsone_adherence">{{ __('art_clinic.cpt') }}</label>
{{ Form::select('cpt_dapsone_adherence',['' => '-- Select --','G' => 'Good', 'F' => 'Fair', 'P' => 'Poor'],'',['class'=>'form-control compulsory','id'=>'cpt_dapsone_adherence']) }}
</div>
<div class="form-group col-sm-3">
<label for="cpt_no_pill_dispensed">{{ __('art_clinic.number_of_pill_dispensed') }}</label>
{{ Form::number('cpt_no_pills_dispensed','',['class'=>'form-control compulsory','id'=>'cpt_no_pills_dispensed']) }}
</div>
<div class="form-group col-sm-3">
<label for="cpt_no_days_passed">{{ __('art_clinic.number_of_days_passed') }}</label>
{{ Form::number('cpt_no_days_passed','',['class'=>'form-control compulsory','id'=>'cpt_no_days_passed']) }}
</div>
<div class="form-group col-sm-2">
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
{{ __('art_clinic.inh') }}
</div>
<div class="form-group col-sm-3">
<label for="inh_no_pills_dispensed">{{ __('art_clinic.number_of_pills_dispensed') }}</label>
{{ Form::number('inh_no_pills_dispensed','',['class'=>'form-control compulsory','id'=>'inh_no_pills_dispensed']) }}
</div>
<div class="form-group col-sm-3">
<label for="inh_no_days_passed">{{ __('art_clinic.number_of_days_passed') }}</label>
{{ Form::number('inh_no_days_passed','',['class'=>'form-control compulsory','id'=>'inh_no_days_passed']) }}
</div>
<div class="form-group col-sm-2">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-sm-12">
<label for="other_meds">{{ __('art_clinic.other_meds') }}</label>
{{ Form::textarea('other_meds','',['class'=>'form-control compulsory','id'=>'other_meds']) }}
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
<label for="arvs_adherence">{{ __('art_clinic.arvs_adherence') }}</label>
{{ Form::select('arvs_adherence',['' => '-- Select --','G' => 'Good', 'F' => 'Fair', 'P' => 'Poor'],'',['class'=>'form-control compulsory','id'=>'arvs_adherence']) }}
</div>
<div class="form-group col-sm-3">
<label for="arvs_adherence_why">{{ __('art_clinic.why') }}</label>
{{ Form::select('arvs_adherence_why',$arv_adherence_reasons,'',['class'=>'form-control compulsory','id'=>'arvs_adherence_why']) }}
</div>
<div class="form-group col-sm-3">
<label for="arvs_other">{{ __('art_clinic.other_specify') }}</label>
{{ Form::text('arvs_other','',['class'=>'form-control','id'=>'arvs_other']) }}
</div>
<div class="form-group col-sm-2">
</div>
</div>
<div class="row">
<div class="col-sm-3">
<label for="arvs_regime">{{ __('art_clinic.regime') }}</label>
{{ Form::select('arvs_regime',['regimes_to_be_added'=>'Regimes to be added'],'',['class'=>'form-control compulsory','id'=>'arvs_regime']) }}
</div>
<div class="form-group col-sm-3">
<label for="arvs_no_pills_dispensed">{{ __('art_clinic.number_of_pill_dispensed') }}</label>
{{ Form::number('arvs_no_pills_dispensed','',['class'=>'form-control compulsory','id'=>'arvs_no_pills_dispensed']) }}
</div>
<div class="form-group col-sm-3">
<label for="arvs_no_days_passed">{{ __('art_clinic.number_of_days_passed') }}</label>
{{ Form::text('arvs_no_days_passed','',['class'=>'form-control compulsory','id'=>'arvs_no_days_passed']) }}
</div>
<div class="form-group col-sm-3">
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-1">
{{ __('art_clinic.ix') }}
</div>
<div class="form-group col-sm-3">
<label for="cd4_count">{{ __('art_clinic.cd4_count') }}</label>
{{ Form::number('cd4_count','',['class'=>'form-control compulsory','id'=>'cd4_count']) }}
</div>
<div class="form-group col-sm-3">
<label for="cd4_count_date">{{ __('art_clinic.date') }}</label>
<div class="input-group">
{{ Form::text('cd4_count_date', '', ['class' => 'form-control compulsory', 'id'=>'cd4_count_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-5"></div>
</div>
<div class="row">
<div class="col-sm-1"></div>
<div class="form-group col-sm-3">
<label for="other_ix">{{ __('art_clinic.other_ix') }}</label>
{{ Form::text('other_ix','',['class'=>'form-control','id'=>'other_ix']) }}
</div>
<div class="form-group col-sm-3">
<label for="nutritional_supplements">{{ __('art_clinic.nutrition_supplements') }}</label>
{{ Form::select('nutritional_supplements',$nutrition,'',['class'=>'form-control compulsory','id'=>'nutritional_supplements']) }}
</div>
<div class="col-sm-5"></div>
</div>
<hr>
<div class="row">
<div class="col-sm-1">
Referrals :
</div>
<div class="form-group col-sm-3">
<label for="consultation_link_provide">{{ __('art_clinic.consultation') }}</label>
{{ Form::number('consultation_link_provide','',['class'=>'form-control compulsory','id'=>'consultation_link_provide']) }}
</div>
<div class="form-group col-sm-3">
<label for="consultation_link_provide_date">{{ __('art_clinic.date') }}</label>
<div class="input-group">
{{ Form::text('consultation_link_provide_date', '', ['class'=>'form-control compulsory','id'=>'consultation_link_provide_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-5">
</div>
</div>
<div class="row">
<div class="col-sm-1">
</div>
<div class="form-group col-sm-3">
<label for="nutritional_support">{{ __('art_clinic.nutrition_support') }}</label>
{{ Form::text('nutritional_support','',['class'=>'form-control compulsory','id'=>'nutritional_support']) }}
</div>
<div class="form-group col-sm-3">
<label for="nutritional_support_date">{{ __('art_clinic.start_date') }}</label>
<div class="input-group">
{{ Form::text('nutritional_support_date', '', ['class'=>'form-control compulsory','id'=>'nutritional_support_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-5"></div>
</div>
<div class="row">
<div class="col-sm-1"></div>
<div class="form-group col-sm-3">
<label for="hospitalisation">{{ __('art_clinic.hospitalization') }}</label>
{{ Form::text('hospitalisation','',['class'=>'form-control compulsory','id'=>'hospitalisation']) }}
</div>
<div class="form-group col-sm-3">
<label for="hospitalisation_duration">{{ __('art_clinic.duration') }}</label>
{{ Form::number('hospitalisation_duration','',['class'=>'form-control compulsory', 'min' => '0']) }}
</div>
<div class="col-sm-1"><br><br>Days</div>
<div class="col-sm-4"></div>
</div>
<hr>
<div class="row">
<div class="col-sm-1"></div>
<div class="form-group col-sm-3">
<label for="next_appointment_date">{{ __('art_clinic.next_appointment_art_date') }}</label>
<div class="input-group">
{{ Form::text('next_appointment_date', '', ['class'=>'form-control compulsory','id'=>'next_appointment_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group col-sm-3">
<label for="other_appointment">{{ __('art_clinic.other_appointment') }}</label>
{{ Form::text('other_appointment', '' ,['class'=>'form-control','id'=>'other_appointment']) }}
</div>
<div class="form-group col-sm-2">
<label for="other_appointment_date">{{ __('art_clinic.date') }}</label>
<div class="input-group">
{{ Form::text('other_appointment_date', '', ['class'=>'form-control','id'=>'other_appointment_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="col-sm-3"></div>
</div>
<hr>
<div class="row">
<div class="col-sm-10"></div>
<div class="col-sm-2" style="padding: 5px;">
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success btn-lg col-sm-12','id'=>'submit_art_continuation_card','value'=>'complete']) }}
</div>
</div>
</div>
</div>
</div>
{{ Form::close() }}
@endsection
@push('scripts')
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
$('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#tb_rx_start_date,#tb_rx_stop_date,#cd4_count_date,#consultation_link_provide_date,#nutritional_support_date,#next_appointment_date,#other_appointment_date,#edd').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy',
});
$("#submit_art_continuation_card").click(function (e) { // make sure that all compulsory fields have been filled out
var empty_compulsory_fields = [];
$(".compulsory").each(function () {
if ($(this).val() == "") {
var textname = $(this).attr('name');
$(this).focus();
empty_compulsory_fields.push(textname);
$(this).css('border','1px solid #F08080');
}
});
/* check if the array containing empty compulsory fields is not empty then return false */
if (empty_compulsory_fields.length != 0) {
alert("Please fill in all compulsory fields");
console.log(empty_compulsory_fields);
e.preventDefault();
return false;
}
});
</script>
@endpush
@@ -0,0 +1,150 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('hiv.appointment_follow_up') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
<li><a href="{{ route('hiv.menu') }}">{{ __('hiv.hiv_menu') }}</a></li>
<li class="active">{{ __('hiv.appointment_follow_up') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'hct.store','data-toggle'=>'validator']) }}
<div class="headers" style="text-align: center;">
<h3 style="background: #FFFF7D; padding: 10px;">{{ __('hiv.appointment_book') }}</h3>
</div>
<div class="row">
<div class="col-sm-4">
<div class="form-group">
{{ Form::label('date',__('hiv.date')) }}
<div class="input-group">
{{ Form::text('follow_up_date','',['class' => 'form-control compulsory','readonly','id'=>'follow_up_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group">
{{ Form::label('type_of_care',__('hiv.type_of_care')) }}<br>
{{ Form::checkbox('type_of_care[]', 'Pre ART', false) }} {{ __('hiv.pre_art') }} &nbsp;
{{ Form::checkbox('type_of_care[]', 'ART', false) }} {{ __('hiv.art') }} &nbsp;
{{ Form::checkbox('type_of_care[]', 'HIV Exposed Infant', false) }} {{ __('hiv.hiv_exposed_infant') }} &nbsp;
</div>
<div class="form-group">
{{ Form::label('follow_up_type','Followup Type :'__('hiv.')) }}<br>
{{ Form::checkbox('follow_up_type[]', 'SMS Message', false) }} {{ __('hiv.sms_message') }} &nbsp; <br>
{{ Form::checkbox('follow_up_type[]', 'Phone call', false) }} {{ __('hiv.phone_call') }} &nbsp; <br>
{{ Form::checkbox('follow_up_type[]', 'Home visit', false) }} {{ __('hiv.home_visit') }} &nbsp; <br>
{{ Form::checkbox('follow_up_type[]', 'Other', false, ['id' => 'other_follow_up_chbx']) }} {{ __('hiv.other') }} &nbsp;
</div>
<div class="form-group" id="other_follow_up_div" style="display: none;">
{{ Form::label('other_follow_up_type',__('hiv.specify_follow_up')) }}
{{ Form::text('other_follow_up_type','', ['class' => 'form-control']) }}
</div>
</div>
<div class="col-sm-2"></div>
<div class="col-sm-4">
<div class="form-group">
{{ Form::label('outcome',__('hiv.outcome')) }} <br>
{{ Form::checkbox('outcome[]', 'Spoke with patient', false) }} {{ __('hiv.spoke_with_patient') }} &nbsp; <br>
{{ Form::checkbox('outcome[]', 'Phone not answered', false) }} {{ __('hiv.phone_not_answered') }} &nbsp; <br>
{{ Form::checkbox('outcome[]', 'Spoke with someone else', false) }} {{ __('hiv.spoke_with_someone_else') }} &nbsp; <br>
{{ Form::checkbox('outcome[]', 'Telephone off', false) }} {{ __('hiv.telephone_off') }} &nbsp; <br>
{{ Form::checkbox('outcome[]', 'Client Visit Rescheduled', false, ['id' => 'client_visit_rescheduled_chbx']) }} Client Visit Rescheduled{{ __('hiv.') }} &nbsp; <br>
{{ Form::checkbox('outcome[]', 'Other', false, ['id' => 'other_outcome_chbx']) }} {{ __('hiv.other_specify') }} &nbsp;
</div>
<div class="form-group" id="client_visit_rescheduled_div" style="display: none;">
{{ Form::label('date',__('hiv.reschedule_date')) }}
<div class="input-group">
{{ Form::text('reschedule_date','',['class' => 'form-control compulsory','readonly','id'=>'reschedule_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group" id="other_outcome_div" style="display: none;">
{{ Form::label('other_outcome',__('hiv.specify_other_outcome')) }}
{{ Form::text('other_outcome','', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('next_step',__('hiv.next_step')) }}<br>
{{ Form::checkbox('next_step[]', 'Call Treatment Supporter', false) }} {{ __('hiv.call_treatment_supporter') }} &nbsp; <br>
{{ Form::checkbox('next_step[]', 'Try to followup patient again', false, ['id' => 'follow_up_again_on_chbx']) }} {{ __('hiv.try_to_followup_again') }} &nbsp; <br>
{{ Form::checkbox('next_step[]', 'Home visit', false, ['id' => 'home_visit_chbx']) }} {{ __('hiv.home_visit') }} &nbsp; <br>
</div>
<div class="form-group" id="follow_up_again_on_div" style="display: none;">
{{ Form::label('date',__('hiv.follow_up_again_on')) }}
<div class="input-group">
{{ Form::text('follow_up_again_date','',['class' => 'form-control compulsory','readonly','id'=>'follow_up_again_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group" id="home_visit_on_div" style="display: none;">
{{ Form::label('date',__('hiv.home_visit_on')) }}
<div class="input-group">
{{ Form::text('home_visit_date','',['class' => 'form-control compulsory','readonly','id'=>'home_visit_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group">
<div style="float: right;">{{ Form::submit(__('hiv.submit'),['class'=>'btn btn-success']) }}</div>
</div>
</div>
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
jQuery('#follow_up_date,#reschedule_date,#home_visit_date,#follow_up_again_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy'
});
$(document).ready(function(){
$('#other_follow_up_chbx').click(function(){
$('#other_follow_up_chbx').prop('checked') ? $("#other_follow_up_div").show() : $("#other_follow_up_div").hide();
});
$('#client_visit_rescheduled_chbx').click(function(){
$('#client_visit_rescheduled_chbx').prop('checked') ? $("#client_visit_rescheduled_div").show() : $("#client_visit_rescheduled_div").hide();
});
$('#other_outcome_chbx').click(function(){
$('#other_outcome_chbx').prop('checked') ? $("#other_outcome_div").show() : $("#other_outcome_div").hide();
});
$('#follow_up_again_on_chbx').click(function(){
$('#follow_up_again_on_chbx').prop('checked') ? $("#follow_up_again_on_div").show() : $("#follow_up_again_on_div").hide();
});
$('#home_visit_chbx').click(function(){
$('#home_visit_chbx').prop('checked') ? $("#home_visit_on_div").show() : $("#home_visit_on_div").hide();
});
});
</script>
@endpush
@@ -0,0 +1,147 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('hiv.health_unit_tb_form') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
<li><a href="{{ route('hiv.menu') }}">{{ __('hiv.hiv_menu') }}</a></li>
<li class="active">{{ __('hiv.health_unit_tb_form') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'store_tb_form','data-toggle'=>'validator']) }}
<div class="headers" style="text-align: center;">
<h3 style="background: #FFFF7D; padding: 10px;">{{ __('hiv.health_unit_tb_form') }}</h3>
</div>
<div class="row">
<div class="col-sm-4">
<div class="form-group">
{{ Form::label('unit_tb_number',__('hiv.unit_tb_number')) }}
{{ Form::text('unit_tb_number','',['class' => 'form-control compulsory','id'=>'unit_tb_number']) }}
</div>
<div class="form-group">
{{ Form::label('name_of_contact_person',__('hiv.contact_phone_number')) }}
{{ Form::text('name_of_contact_person','', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('is_patient_health_worker',__('hiv.patient_health_worker')) }}<br>
{{ Form::radio('is_patient_health_worker', 'yes', false) }} {{ __('hiv.yes') }} &nbsp;
{{ Form::radio('is_patient_health_worker', 'no', false) }} {{ __('hiv.no') }} &nbsp; <br>
</div>
<div class="form-group">
{{ Form::label('date_treatment_started',__('hiv.date_treatment_started')) }}
<div class="input-group">
{{ Form::text('date_treatment_started','',['class' => 'form-control compulsory','readonly','id'=>'date_treatment_started']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="form-group">
{{ Form::label('type_of_patient',__('hiv.type_of_patient')) }}
{{ Form::select('type_of_patient',['N' => __('hiv.new'), 'R' => __('hiv.relapse'), 'F' => __('hiv.failure'), 'L' => __('hiv.lost_to_follow_up'), 'THU' => __('hiv.treatment_history_unknown')],'', ['class' => 'form-control']) }}
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
{{ Form::label('hsd_tb_number',__('hiv.hsd_tb_number')) }}
{{ Form::text('hsd_tb_number','',['class' => 'form-control compulsory','id'=>'hsd_tb_number']) }}
</div>
<div class="form-group">
{{ Form::label('contact_phone_number',__('hiv.contact_phone_number')) }}
{{ Form::text('contact_phone_number','', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('cadre_of_health_worker',__('hiv.cadre_of_health_worker')) }}
{{ Form::select('cadre_of_health_worker',[],'', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('regimen',__('hiv.regimen')) }}
{{ Form::select('regimen',[],'', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('regimen_specify',__('hiv.specify_regimen')) }}
{{ Form::text('regimen_specify','', ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('transfer_in_from',__('hiv.transfer_in_from')) }}
{{ Form::text('transfer_in_from','', ['class' => 'form-control']) }}
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
{{ Form::label('district_tb_number',__('hiv.district_tb_number')) }}
{{ Form::text('district_tb_number','',['class' => 'form-control compulsory','id'=>'district_tb_number']) }}
</div>
<div class="form-group">
{{ Form::label('relationship_to_contact_person',__('hiv.relationship_of_contact_person')) }}
{{ Form::select('relationship_to_contact_person',[],'', ['class' => 'form-control']) }}
</div>
<div class="form-group">
<div style="float: right;">{{ Form::submit(__('hiv.submit'),['class'=>'btn btn-success']) }}</div>
</div>
</div>
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
jQuery('#follow_up_date,#reschedule_date,#home_visit_date,#follow_up_again_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy'
});
$(document).ready(function(){
$('#other_follow_up_chbx').click(function(){
$('#other_follow_up_chbx').prop('checked') ? $("#other_follow_up_div").show() : $("#other_follow_up_div").hide();
});
$('#client_visit_rescheduled_chbx').click(function(){
$('#client_visit_rescheduled_chbx').prop('checked') ? $("#client_visit_rescheduled_div").show() : $("#client_visit_rescheduled_div").hide();
});
$('#other_outcome_chbx').click(function(){
$('#other_outcome_chbx').prop('checked') ? $("#other_outcome_div").show() : $("#other_outcome_div").hide();
});
$('#follow_up_again_on_chbx').click(function(){
$('#follow_up_again_on_chbx').prop('checked') ? $("#follow_up_again_on_div").show() : $("#follow_up_again_on_div").hide();
});
$('#home_visit_chbx').click(function(){
$('#home_visit_chbx').prop('checked') ? $("#home_visit_on_div").show() : $("#home_visit_on_div").hide();
});
});
</script>
@endpush
@@ -0,0 +1,299 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('hiv.hiv_counselling_testing') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
<li><a href="{{ route('hiv.menu') }}">{{ __('hiv.hiv_menu') }}</a></li>
<li class="active">{{ __('hiv.hiv_counselling') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'hct.store','data-toggle'=>'validator']) }}
<div class="row">
<div class="headers" style="text-align: center;">
<h3 style="background: #FFFF7D; padding: 10px;">{{ __('hiv.hiv_couns_test_card') }}</h3>
</div>
<!-- =================== -->
<div class="col-sm-12">
<h3>{{ __('hiv.section_a') }}:</h3>
</div>
<div class="col-sm-3">
<div class="form-group">
{{ Form::label('date',__('hiv.date')) }}
<div class="input-group">
{{ Form::text('counselling_date','',['class' => 'form-control compulsory','readonly','id'=>'counselling_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
{{ Form::label('is_center_static',__('hiv.is_center_static')) }}
{{ Form::select('is_center_static',['static'=>__('hiv.static'),'outreach'=>__('hiv.outreach')],'',['class' => 'form-control', 'required', 'data-error'=>'','placeholder'=>'']) }}
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
{{ Form::label('registration_number',__('hiv.registration_number')) }}
{{ Form::text('registration_number','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
</div>
</div>
<div class="col-sm-3">
<!-- display this only if the patient is less than 12 years -->
<div class="form-group">
{{ Form::label('accompanied_by',__('hiv.accompanied_by')) }}
{{ Form::select('accompanied_by', [''=>__('hiv.select'),'mother'=>__('hiv.mother'), 'father'=>__('hiv.father'), 'guardian'=>__('hiv.guardian')], '', ['class' => 'form-control', 'data-error'=>'', 'placeholder'=>'']) }}
</div>
</div>
<!-- =================== -->
<div class="col-sm-12">
<h3>{{ __('hiv.section_b') }}:</h3>
<table class="table table-bordered">
<tbody>
<tr>
<td style="width: 40%">
{{ Form::label('pre_test_counselling_done',__('hiv.pre_test_counselling_done')) }}
</td>
<td>
{{ Form::select('accompanied_by', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.counseled_as') }}:</label>
</td>
<td>
{{ Form::select('counselled_as', [''=>'--Select--','1'=>'Individual', '2'=>'Couple','3'=>'Group'], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.approach') }}:</label>
</td>
<td>
{{ Form::select('approach', [''=>'--Select--','1'=>'CICT', '2'=>'PITC'], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.hct_entry_point') }}:</label>
</td>
<td>
{{ Form::select('hct_entry_point', [''=>__('hiv.select'),'1'=>__('hiv.facility_based'), '2'=>__('hiv.work_place'), '3'=>__('hiv.community_outreach'),'4'=>'HBHCT','5'=>__('hiv.circumcision'),'6'=>'PEP','7'=>'PMTCT','8'=>'MARPS','9'=>'ANC','10'=>__('hiv.maternity'),'11'=>__('hiv.family_planning'),'12'=>__('hiv.gynecological_opd'),'13'=>__('hiv.emergency_gynecological_ward'),'14'=>__('hiv.men_access_clinic'),'15'=>__('hiv.mother_baby_pair_clinic')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.ever_hiv_tested') }}:</label>
</td>
<td>
{{ Form::select('ever_tested_for_hiv_before', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.tested_times_in_12') }}:</label>
</td>
<td>
{{ Form::text('times_tested_in_last_12_months','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.sex_partners_in_12') }}:</label>
</td>
<td>
{{ Form::text('number_of_sexual_partners_in_last_12_months','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
</td>
</tr>
<!-- display this if the patient is abve 9 years -->
<tr>
<td>
<label>{{ __('hiv.partner_hiv_tested') }} :</label>
</td>
<td colspan="3" class="PartnerTestedBeforeEnableDisable1">
{{ Form::select('partner_tested_before', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes'), '2'=>__('hiv.dont_know')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label style="float:right"><i>{{ __('hiv.partner_results') }}</i></label>
</td>
<td>
{{ Form::select('partner_results', [''=>__('hiv.select'),'0'=>__('hiv.hiv_negative'), '1'=>__('hiv.hiv_positive'), '2'=>__('hiv.unknown')], '', ['class' => 'form-control']) }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-8">
<h3>{{ __('hiv.consent_testing') }}</h3>
<table class="table table-bordered">
<tbody>
<tr>
<td>
<label>{{ __('hiv.do_you_agree') }}</label>
</td>
<td>
{{ Form::select('partner_results', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-4"></div>
<div class="col-sm-12">
<h3>{{ __('hiv.section_c') }}</h3>
<table class="table">
<tbody>
<tr>
<td>
<label{{ __('hiv.hiv_final_results') }}:</label>
</td>
<td>
{{ Form::select('partner_results', [''=>__('hiv.select'),'1'=>__('hiv.hiv_negative'), '2'=>__('hiv.hiv_positive'),'3'=>'INC','4'=>'NT'], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.sent_to_confirm') }}</label>
</td>
<td>
{{ Form::select('confirmatory_lab', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-12">
<table class="table table-bordered">
<tbody>
<tr>
<td>
<label>{{ __('hiv.results_received') }}:</label>
</td>
<td>
{{ Form::select('results_received', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<!-- if the patient is above 9 years -->
<tr>
<td>
<label>{{ __('hiv.results_received_couple') }}:</label>
</td>
<td>
{{ Form::select('results_received_as_a_couple', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.couple_results') }}:</label>
</td>
<td>
{{ Form::select('results_received_as_a_couple', [''=>__('hiv.select'),'discordant'=>__('hiv.discordant'), 'concordant'=>__('hiv.concordant')], '', ['class' => 'form-control']) }}
</td>
</tr>
<!-- ========end if================= -->
<tr>
<td>
<label>{{ __('hiv.is_there_suspision_for_tb') }}:</label>
</td>
<td>
{{ Form::select('is_there_suspision_for_tb', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.has_client_started_cotrimoxazole_prophylaxis') }}:</label>
</td>
<td>
{{ Form::select('has_client_started_cotrimoxazole_prophylaxis', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.has_client_been_linked_to_care') }}:</label>
</td>
<td>
{{ Form::select('has_client_been_linked_to_care', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.where') }}:</label>
</td>
<td>
{{ Form::text('where_is_the_client_care','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.cd4_count_results') }}:</label>
</td>
<td>
{{ Form::text('cd4_count_results','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
</td>
</tr>
<tr>
<td>
<label>{{ __('hiv.hiv_recency_test_result') }}:</label>
</td>
<td>
{{ Form::select('hiv_recency_test_result',[''=>'--Select--','1'=>'Recent','2'=>'Long Term'],'',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
</td>
</tr>
<tr>
<td>
<label>
<span class="required">*</span>{{ __('hiv.counsellor') }}
</label>
</td>
<td>
{{ Form::text('counsellor','',['class' => 'form-control required', 'data-error'=>'','placeholder'=>'counsellor']) }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-12">
<div style="float: right;">{{ Form::submit(__('hiv.save'),['class'=>'btn btn-success']) }}</div>
</div>
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
jQuery('#counselling_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy'
});
</script>
@endpush
@@ -0,0 +1,145 @@
@extends('layouts.main')
@push('styles')
<style type="text/css">
#t_header th {
background-color: #708090;
color: #000;
}
.color-tr{
background: #FFFF99;
}
.aTable tr {
background-color: #DDD;
}
.table_no_padding td{
padding: 4px;
}
</style>
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('hiv.hiv_clinic') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
<li><a href="{{ route('patients.index') }}">{{ __('hiv.patients') }}</a></li>
<li class="active">{{ __('hiv.hiv_clinic') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<b>{{ __('hiv.hiv_menu') }}</b><br> <br>
<div class="row">
<div class="col-sm-2">
<a class="btn btn-success btn-sm btn-rounded" href="{{ url('antiretral_viral_therapy/create') }}">{{ __('hiv.art_clinic') }}</a>
</div>
<div class="col-sm-2">
<a class="btn btn-info btn-sm btn-rounded" id="anc_visit"> {{ __('hiv.art_follow_up') }} </a>
</div>
<div class="col-sm-3">
<a class="btn btn-primary btn-sm btn-rounded" href="{{ url('hiv_counselling_and_testing') }}">{{ __('hiv.hiv_counselling_testing_card') }}</a>
</div>
<div class="col-sm-2">
<a class="btn btn-default btn-sm btn-rounded" href="#">{{ __('hiv.exposed_infant_form') }}</a>
</div>
<div class="col-sm-3">
<a class="btn btn-warning btn-sm btn-rounded" href="#">{{ __('hiv.daily_activity_viral') }}</a>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-2">
<a class="btn btn-success btn-sm btn-rounded" href="#">{{ __('hiv.safe_male_circumcision') }}</a>
</div>
<div class="col-sm-2">
<a class="btn btn-info btn-sm btn-rounded" id="anc_visit">{{ __('hiv.lab_forms') }}</a>
</div>
<div class="col-sm-3">
<a class="btn btn-primary btn-sm btn-rounded" href="{{ url('health_unit_tb_form') }}">{{ __('hiv.health_unit_tb_form') }}</a>
</div>
<div class="col-sm-2">
<a class="btn btn-default btn-sm btn-rounded" href="#">{{ __('hiv.patient_referral_transfer') }}</a>
</div>
<div class="col-sm-3">
<a class="btn btn-warning btn-sm btn-rounded" href="#">{{ __('hiv.viral_load_suppression_form') }}</a>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-2">
<a class="btn btn-success btn-sm btn-rounded" href="{{ url('hiv_appointment_follow_up') }}">{{ __('hiv.appointment_follow_up') }}</a>
</div>
<div class="col-sm-2">
<a class="btn btn-info btn-sm btn-rounded">{{ __('hiv.daily_activity_lab') }}</a>
</div>
<div class="col-sm-3">
<!-- <a class="btn btn-primary btn-sm btn-rounded" href="#">##</a> -->
</div>
<div class="col-sm-2">
<a class="btn btn-default btn-sm btn-rounded" href="#">##</a>
</div>
<div class="col-sm-3">
<a class="btn btn-warning btn-sm btn-rounded" href="#">{{ __('hiv.daily_activity_register') }}</a>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="fillNewPregnancyprimary" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
{{ __('hiv.fill_preg_details_first') }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-dismiss="modal">{{ __('hiv.ok') }}</button>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
<script type="text/javascript">
$('#anc_visit').click(function(e){
$.ajax({
method: 'GET',
url: '/check_if_pregnancy_is_registered',
success: function(response){
console.log(response);
if (response === "true") {
window.location.href = "/ante_natal_clinic_follow_up/create";
} else {
$('#fillNewPregnancyprimary').modal('show');
e.preventDefault();
}
},
error: function(jqXHR, textStatus, errorThrown) {
alert(JSON.stringify(jqXHR));
console.log(JSON.stringify(jqXHR));
e.preventDefault();
}
});
});
</script>
@endpush