mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
135 lines
7.1 KiB
PHP
Executable File
135 lines
7.1 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('elite/tables/css/buttons.dataTables.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">{{ __('procedures.procedures') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('procedures.dashboard') }}</a></li>
|
|
<li><a href="/procedures/index">{{ __('procedures.procedures') }}</a></li>
|
|
<li class="active">{{ __('procedures.view') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('clinical_data::procedures.menu')
|
|
</div>
|
|
</div>
|
|
|
|
@include('flash::message')
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="white-box">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('procedures.procedure_name') }}</th>
|
|
<th>{{ __('procedures.non_insured_price') }}</th>
|
|
<th>{{ __('procedures.chart_of_account_name') }}</th>
|
|
<th>{{ __('procedures.category') }}</th>
|
|
<th>HMIS No.</th>
|
|
<th>HMIS No (Out-patient)</th>
|
|
<th>HMIS category (Out Patient)</th>
|
|
<th>HMIS No (In-patient)</th>
|
|
<th>HMIS category (In Patient)</th>
|
|
<th>References</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($procedures as $procedure)
|
|
<tr>
|
|
<td>{{ $procedure->name }}</td>
|
|
<td>{{ ugandan_shillings($procedure->non_insured_price) }}</td>
|
|
<td>{{ $chart_of_accounts[$procedure->account_id] ?? '' }}</td>
|
|
<td>{{ $categories[$procedure->category_id] ?? '' }}</td>
|
|
<td>{{ $procedure->hmis_number }}</td>
|
|
@php
|
|
$hmis_no_outpatient_array = explode(",", $procedure->hmis_no_outpatient);
|
|
$hmis_outpatient_category_array = explode(",", $procedure->hmis_category);
|
|
$reference_name = !empty($procedure->reference_text)? explode(",", $procedure->reference_text):[];
|
|
$reference_array = !empty($procedure->reference_link)? explode(",", $procedure->reference_link): [];
|
|
|
|
if($procedure->hmis_no_inpatient == 'SP05a') $hmis_no_inpatient = $procedure->hmis_no_inpatient;
|
|
elseif ($procedure->hmis_no_inpatient == 'SP05b') $hmis_no_inpatient = $procedure->hmis_no_inpatient;
|
|
elseif(!empty($procedure->hmis_no_inpatient)) $hmis_no_inpatient = get_name($procedure->hmis_no_inpatient, "id", "number", "hmis_category_options");
|
|
else $hmis_no_inpatient = '';
|
|
@endphp
|
|
|
|
<td>{{ $procedure->hmis_no_outpatient }}</td>
|
|
<td>
|
|
@if(count($hmis_no_outpatient_array) > 0 && !empty($hmis_no_outpatient_array[0]))
|
|
<ul>
|
|
@for($i=0; $i < count($hmis_outpatient_category_array); $i++)
|
|
<li>{{ isset($hmis_categories[$hmis_outpatient_category_array[$i]]) ? $hmis_categories[$hmis_outpatient_category_array[$i]] : "" }}</li>
|
|
@endfor
|
|
</ul>
|
|
@endif
|
|
</td>
|
|
<td>{{ $hmis_no_inpatient }}</td>
|
|
<td>{{ isset($hmis_categories[$procedure->hmis_category_inpatient]) ? $hmis_categories[$procedure->hmis_category_inpatient] : "" }}</td>
|
|
<td>
|
|
@if (!empty($reference_array) && !empty($reference_name))
|
|
@for ($i=0; $i<count($reference_array); $i++)
|
|
<li><a style="font-weight:normal;" href="{{ $reference_array[$i] ?? '' }}" target="blank">{{ $reference_name[$i] ?? '' }}</a></li>
|
|
@endfor
|
|
@endif
|
|
</td>
|
|
<td>
|
|
<a href="/procedures/{{ $procedure->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('procedures.edit') }}</a>
|
|
</td>
|
|
<td>
|
|
@if (!in_array($procedure->id, $ordered_procedures_ids))
|
|
{{ Form::model($procedure->id ,['method' => 'DELETE', 'route' => ['procedures.destroy', $procedure->id]]) }}
|
|
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('procedures.are_you_sure') ?>')"><i class="fa fa-trash"></i> {{ __('procedures.delete') }}</button>
|
|
{{ Form::close() }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
|
|
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
|
|
|
<script>
|
|
|
|
$('.table').DataTable({
|
|
dom: 'Bfrtip',
|
|
pageLength: 20,
|
|
ordering:false,
|
|
buttons: [
|
|
'copy', 'csv', 'excel', 'pdf', 'print'
|
|
]
|
|
});
|
|
|
|
</script>
|
|
@endpush
|