Files
streamline-emr/docker/streamline-src/storage/framework/views/79db89ed3a00ae6eab24561df2a4447b.php

261 lines
11 KiB
PHP

<?php $__env->startPush('styles'); ?>
<link href="<?php echo e(asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css')); ?>" rel="stylesheet">
<link href="<?php echo e(asset('elite/bower_components/datatables/jquery.dataTables.min.css')); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo e(asset('elite/tables/css/buttons.dataTables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title"><?php echo e(__('patients.view')); ?></h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="<?php echo e(route('home')); ?>"><?php echo e(__('patients.dashboard')); ?></a></li>
<li><a href="<?php echo e(route('patients.index')); ?>"><?php echo e(__('patients.patients')); ?></a></li>
<li class="active"><?php echo e(__('patients.view')); ?></li>
</ol>
</div>
</div>
<div class="white-box">
<?php echo $__env->make('flash::message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo e(Form::open(['route' => 'patients.search', 'method' => 'ANY', 'role' => 'search'])); ?>
<div class="row">
<div class="col-md-2">
<div class="form-group" id="patient_numbers">
<?php echo e(Form::text('number', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient number', 'autocomplete' => 'off', 'spellcheck' => false])); ?>
</div>
</div>
<div class="col-md-2" <?php if(!is_eye_module_enabled()): ?> style='display: none' <?php endif; ?>>
<div class="form-group" id="previous_numbers">
<?php echo e(Form::text('previous_id', '', ['class' => 'form-control typeahead', 'placeholder' => 'Previous Number', 'autocomplete' => 'off', 'spellcheck' => false])); ?>
</div>
</div>
<div class="col-md-4">
<div class="form-group" id="full_names">
<?php echo e(Form::text('full_name', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient Name', 'autocomplete' => 'off', 'spellcheck' => false])); ?>
</div>
</div>
<div class="col-md-2">
<div class="form-group" id="villages">
<?php echo e(Form::text('village', '', ['class' => 'form-control typeahead', 'placeholder' => 'Village', 'autocomplete' => 'off', 'spellcheck' => false])); ?>
</div>
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-rounded btn-success"><span class="glyphicon glyphicon-search"></span> <?php echo e(__('patients.search')); ?></button>
<span class="label label-info float-right" style="font-size: 12.5px;"> <?php echo e(count($patient_numbers)); ?> <?php echo e(__('patients.patients_registered')); ?></span>
</div>
</div>
<?php if(isset($criteria)): ?>
<p><?php echo e(__('patients.search_criteria')); ?> : <code><?php echo e($criteria); ?></code></p>
<?php endif; ?>
<?php echo e(Form::close()); ?>
<div class="table-responsive">
<table class="table success-table table-sm table-striped table-hover" style="color: white;">
<thead >
<tr style="background-color: #00c292; color: white;">
<th><?php echo e(__('patients.patient_number')); ?></th>
<th><?php echo e(__('patients.full_names')); ?></th>
<th><?php echo e(__('patients.gender')); ?></th>
<th><?php echo e(__('patients.age')); ?></th>
<th><?php echo e(__('patients.phone')); ?></th>
<th><?php echo e(__('patients.category')); ?></th>
<th><?php echo e(__('patients.village')); ?></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $patients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $patient): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($patient->number); ?></td>
<td><?php echo insurance_flag($patient->id); ?></td>
<td>
<?php if($patient->gender == 1): ?>
<?php echo e(__('patients.male')); ?>
<?php else: ?>
<?php echo e(__('patients.female')); ?>
<?php endif; ?>
</td>
<td><?php echo e(get_patients_age($patient->date_of_birth)); ?></td>
<td><?php echo e($patient->phone); ?></td>
<td><?php echo e($categories[$patient->category_id] ?? "N/A"); ?></td>
<td><?php echo e($villages[$patient->village_id] ?? ''); ?></td>
<td><a href="/patients/<?php echo e($patient->id); ?>/" class="btn btn-rounded btn-info btn-sm"><i class="fa fa-info-circle"></i> <?php echo e(__('patients.details')); ?></a></td>
<td>
<a href="/patients/<?php echo e($patient->id); ?>/edit/" class="btn btn-warning btn-rounded btn-sm"><i class="fa fa-pencil"></i> <?php echo e(__('patients.edit')); ?></a>
</td>
<td>
<a href="/patient_episodes/set_patient_id/<?php echo e($patient->id); ?>" class="btn btn-rounded btn-primary btn-sm"><i class="fa fa-hand-pointer-o"></i> <strong><?php echo e(__('patients.select')); ?></strong></a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<?php echo e($patients->links()); ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<!-- Typehead Plugin JavaScript -->
<script src="<?php echo e(asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.min.js')); ?>"></script>
<!-- Data table javascript -->
<script src="<?php echo e(asset('elite/bower_components/datatables/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/dataTables.buttons.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/buttons.flash.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/jszip.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/pdfmake.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/vfs_fonts.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/buttons.html5.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/buttons.print.min.js')); ?>"></script>
<script src="<?php echo e(asset('elite/tables/js/buttons.colVis.min.js')); ?>"></script>
<script type="text/javascript">
var substringMatcher = function (strs) {
return function findMatches(q, cb) {
var matches, substringRegex;
// an array that will be populated with substring matches
matches = [];
// regex used to determine if a string contains the substring `q`
substrRegex = new RegExp(q, 'i');
// iterate through the pool of strings and for any string that
// contains the substring `q`, add it to the `matches` array
$.each(strs, function (i, str) {
if (substrRegex.test(str)) {
matches.push(str);
}
});
cb(matches);
};
};
$('#patient_numbers .typeahead').typeahead(
{
hint: true,
highlight: true,
minLength: 1
},
{
name: 'patient_numbers',
source: substringMatcher(<?php echo json_encode($patient_numbers); ?>)
}
);
$('#previous_numbers .typeahead').typeahead(
{
hint: true,
highlight: true,
minLength: 1
},
{
name: 'previous_numbers',
source: substringMatcher(<?php echo json_encode($previous_ids); ?>)
}
);
$('#villages .typeahead').typeahead(
{
hint: true,
highlight: true,
minLength: 1
},
{
name: 'villages',
source: substringMatcher(<?php echo json_encode(array_values($villages)); ?>)
}
);
$('#full_names .typeahead').typeahead(
{
hint: true,
highlight: true,
minLength: 1
},
{
name: 'full_names',
source: substringMatcher(<?php echo json_encode($full_names); ?>)
}
);
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 200,
buttons: [
'copy',
{extend: 'csv',
message: "<php echo __('patients.registered_patients')?>",
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6]
},
},
{extend: 'excel',
message: "<php echo __('patients.registered_patients')?>",
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6]
},
sheetName: "<php echo __('patients.registered_patients')?>"
},
{extend: 'pdf',
message: "<php echo __('patients.registered_patients')?>",
orientation: 'portrait',
pageSize: 'LETTER',
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6]
},
customize: function (doc) {
doc.defaultStyle.fontSize = 10;
// doc.styles.tableHeader.alignment = 'left';
}
},
{extend: 'print',
message: "<php echo __('patients.registered_patients')?>",
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6]
},
customize: function (win) {
$(win.document.body)
.css('font-size', '10pt')
.css('background', '#fff')
.prepend(
'<img src="<?php echo asset('uploads/logo/logo-sm.png'); ?>" style="position:absolute; top:0; right:0;" />'
);
$(win.document.body).find('table')
.addClass('compact')
.css('font-size', 'inherit');
}
}
]
});
$('.sorting').removeClass('sorting');//remove the sorting class
$('.sorting_asc').removeClass('sorting_asc');//remove the sorting class
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/Modules/Patients/Resources/views/patients/index.blade.php ENDPATH**/ ?>