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,275 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
<title>{{ config('app.name', 'Theatre Details - Stre@mline') }}</title>
<!-- Bootstrap Core CSS -->
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<style style="text-css">
thead {
display: table-header-group;
}
tfoot {
display: table-row-group;
}
tr {
page-break-before: always;
page-break-after: always;
page-break-inside: avoid;
}
</style>
</head>
<body>
<div class="container-fluid">
@include('layouts.header_pdf_print')
<h5 class="heading" style="text-align: center;">
{{ __('surgery.surgery_details') }} : <span style="color: #0000FF">{{ streamline_date($anaesthesia->created_at) }}</span>
</h5>
<br>
@php
$total_amount_to_pay = 0;
@endphp
<div class="row">
<table class="table table-light table-sm table-borderless">
<tr>
<th scope="row">{{ __('surgery.patient_number') }}</th>
<td>{{ $patient->number}}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>Anaethesia Type</th>
<td>
{{ get_name($anaesthesia->anaesthesia_type , 'id', 'name', 'procedures') }}
</td>
</tr>
<tr>
<th scope="row">{{ __('surgery.patient_names') }}</th>
<td>{{ $patient->first_name}} {{ $patient->last_name}}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('inpatient.age') }}</th>
<td>
{{ get_patients_age($patient->date_of_birth) }}
</td>
</tr>
<tr>
<th scope="row">{{ __('inpatient.residence') }}</th>
<td>{{ patient_residence($patient->id) }}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('inpatient.gender') }}</th>
<td>
{{ $patient->gender == 1 ? __('inpatient.male') : __('inpatient.female') }}
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-6">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<th>{{ __('anaesthetics.procedure') }}</th>
<td>{{ get_name($anaesthesia->procedure_id, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.primary_diagnosis') }}</th>
<td>{{ isset($diagnoses[$anaesthesia->primary_diagnosis]) ? $diagnoses[$anaesthesia->primary_diagnosis] : "" }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.other_diagnoses') }}</th>
<td>
@php
$other_diagnoses_array = @unserialize($anaesthesia->other_diagnoses);
@endphp
@if(!empty($other_diagnoses_array) && $other_diagnoses_array[0] != "")
@foreach($other_diagnoses_array as $diagnosis)
<ul>
@if($diagnosis != "")
<li>{{ $diagnoses[$diagnosis] }}</li>
@endif
</ul>
@endforeach
@endif
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.date') }}</th>
<td>{{ streamline_date($anaesthesia->created_at) }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.time_anaesthesia_commenced') }}</th><!-- time_anaesthesia_commenced -->
<td>{{ date('h:i:s A', strtotime($anaesthesia->time_commenced)) }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.anaesthetist') }}</th>
<td>{{ get_full_name($anaesthesia->anaesthetist, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.anaesthetics') }}</th>
<td>{{ get_name($anaesthesia->anaesthesia_type, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.blood_given') }}</th>
<td>{{ $anaesthesia->blood_given }} units</td>
</tr>
<tr>
<th>{{ __('anaesthetics.anaesthesia_checklist') }}</th>
<td>
@php
$anaesthesia_checklist = '';
$anaesthesia_checklist_array = unserialize($anaesthesia->anaesthesia_checklist);
foreach ($anaesthesia_checklist_array as $key => $value) {
if ($value == 1) {
$anaesthesia_checklist .= $key . ', ';
}
}
@endphp
{{ rtrim($anaesthesia_checklist, ', ') }}
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.monitoring_signs') }}</th>
<td>
@php
$monitoring_signs = '';
$monitoring_signs_array = unserialize($anaesthesia->monitoring_signs);
foreach ($monitoring_signs_array as $k => $v) {
if ($v == 1) {
$monitoring_signs .= $k . ', ';
}
}
@endphp
{{ rtrim($monitoring_signs, ', ') }}
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.type_of_needle_used') }}</th>
<td>{{ get_name($anaesthesia->needle_type, 'id', 'name', 'needle_types') }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-6">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<th>{{ __('anaesthetics.volume_administered') }}</th>
<td>{{ $anaesthesia->volume_administered }} mls</td>
</tr>
<tr>
<th>{{ __('anaesthetics.muscle_relaxants') }}</th>
<td>{{ get_name($anaesthesia->muscle_relaxant, 'id', 'name', 'muscle_relaxants') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.checklist_confirmed_by') }}</th>
<td>{{ get_full_name($anaesthesia->checklist_confirmed_by, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.induction') }}</th>
<td>{{ get_name($anaesthesia->induction, 'id', 'name', 'anaesthesia_inductions') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.antibiotics') }}</th>
<td>
@php
$antibiotics_array = explode(",", $anaesthesia->antibiotics)
@endphp
@for($i = 0; $i < count($antibiotics_array); $i++)
<b>{{ $i + 1 }}</b> - {{ get_name($antibiotics_array[$i], 'id', 'name', 'drugs') }} <br>
@endfor
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.airway') }}</th>
<td>{{ get_name($anaesthesia->airway, 'id', 'name', 'anaesthesia_airways') }}</td>
</tr>
<tr>
<th>ETT</th>
<td>{{ get_name($anaesthesia->ETT, 'id', 'name', 'anaesthesia_etts') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.agent_used') }}</th>
<td>{{ get_name($anaesthesia->agent_used, 'id', 'name', 'anaesthetic_agents') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.technique') }}</th>
<td>{{ get_name($anaesthesia->technique, 'id', 'name', 'anaesthetic_techniques') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.analgesics') }}</th>
<td>
@php
$analgesics_array = explode(",", $anaesthesia->analgesic);
@endphp
@if (count($analgesics_array) > 0)
<ul>
@for ($i = 0; $i < count($analgesics_array); $i++)
<li>{{ get_name($analgesics_array[$i], 'id', 'name', 'analgesics') }}</li>
@endfor
</ul>
@endif
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.volatile_liquid_anaethetics') }}</th>
<td>{{ get_name($anaesthesia->volatile_liquid_anaethetics, "id", "name", "volatile_liquid_anaesthetics") }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.volatile_liquid_anaesthetic_used') }}</th>
<td>{{ $anaesthesia->volatile_liquid_anaesthetic_used }} mls</td>
</tr>
<tr>
<th>{{ __('anaesthetics.iv_fluids_used') }}</th>
<td>
@php
$iv_fluids = '';
$iv_fluid_array = unserialize($anaesthesia->iv_fluids);
$iv_fluid_ids = $iv_fluid_array['iv_fluids'];
$iv_fluid_units = $iv_fluid_array['units'];
if (!empty($iv_fluid_ids)) {
foreach ($iv_fluid_ids as $x => $y) {
$iv_fluids .= '* ' . (isset($iv_fluid_units[$x]) ? $iv_fluid_units[$x] : "") . ': ' . $iv_fluid_units[$x] . ' mls<br>';
}
}
@endphp
{!! $iv_fluids !!}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br><br>
<b>{{ __('surgery.comments') }}</b>
<div class="row">
<div class="col-12">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<td>
{!! nl2br(e($anaesthesia->comments)) !!}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,66 @@
@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-md-7">
<h4 class="page-title">View Anaesthetics History</h4>
</div>
<div class="col-md-5">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">Dashboard</a></li>
<li class="active">View</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead>
<th>Procedure</th>
<th>Surgery</th>
<th>Anaesthetist</th>
<th>Time Of Commencement</th>
<th>Date</th>
<th></th>
</thead>
<tbody>
@foreach($anaesthesia_records as $anaesthesia)
<tr>
<td>{{ get_name($anaesthesia->procedure_id,'id','name','procedures') }}</td>
<td>{!! $anaesthesia->surgery_id != null ? get_name($anaesthesia->procedure_id, 'id','name','procedures') : '<font color="red">Not done</font>' !!}</td>
<td>{{ get_full_name($anaesthesia->anaesthetist,'id','first_name','last_name','users') }}</td>
<td>{{ $anaesthesia->time_commenced }}</td>
<td>{{ streamline_date($anaesthesia->created_at) }}</td>
<td><a class="btn btn-sm btn-info" href="/anaesthetics/view_history/{{ $anaesthesia->id }}">View Details</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
//
</script>
@endpush
@@ -0,0 +1,142 @@
@extends('layouts.main')
@push('scripts')
<script src="{{ asset('js/common/scripts.js') }}"></script>
@endpush
@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">Anaesthesia details</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">Dashboard</a></li>
<li><a href="{{ route('patients.index') }}">Patients</a></li>
<li class="active">anaesthesia details</li>
</ol>
</div>
</div>
@php
$patient_id = session('patient_id');
$episode_id = session('episode_id');
@endphp
<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">ANAESTHESIA DETAILS FOR EPISODE STARTED ON <font color="blue">{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</font>
<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">
<div class="panel-body">
<div class="col-md-12">
<div class="table-responsive row">
<div class="col-md-12">
<table class="table table-striped table-bordered">
<thead>
<th>Procedure</th>
<th>Surgery</th>
<th>Anaesthetist</th>
<th>Time Of Commencement</th>
</thead>
<tbody>
<tr>
<td>{{ get_name($anaesthesia_record->procedure_id, 'id', 'name', 'procedures') }}</td>
<td>{!! $anaesthesia_record->surgery_id != null ? get_name($anaesthesia_record->surgery_id, 'id', 'name', 'surgeries'): '<font color="red">Not done</font>' !!}</td>
<td>{{ get_name($anaesthesia_record->anaesthetist, 'id', 'first_name', 'users') }}</td>
<td>{{ $anaesthesia_record->time_commenced }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
@if(count($inpatient_info) > 0)
<div class="panel panel-default">
<div class="panel-heading">IN PATIENT DETAILS
<div class="panel-action">
<a href="#" data-perform="panel-collapse"><i class="ti-plus"></i></a>
<a href="#" data-perform="panel-dismiss"><i class="ti-close"></i></a>
</div>
</div>
<div class="panel-wrapper collapse in table-responsive" aria-expanded="false">
<table class="table table-hover table-condensed table-bordered">
<thead>
<tr>
<th>Admitted on</th>
<th>Ward</th>
<th>Procedures</th>
</tr>
</thead>
<tbody>
@foreach($inpatient_info as $info)
<tr>
<td>{{ $info->admitted_on }}</td>
<td>{{ get_name($info->ward_id, 'id', 'name', 'wards') }}</td>
<td>{{ get_name(unserialize($info->procedures), 'id', 'name','procedures') }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@else
<div class="panel panel-default">
<div class="panel-heading">ORDERED PROCEDURE 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 table-responsive" >
<table class="table table-hover">
<thead>
<tr>
<th>Procedure</th>
<th>Performed</th>
<th>Created by</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ get_name($ordered_procedure->procedure_id, 'id', 'name', 'procedures') }}</td>
<td>{{ $ordered_procedure->perfomed == 1 ? 'Yes' : 'No' }}</td>
<td>{{ get_name($ordered_procedure->created_by, 'id', 'first_name', 'users') }}</td>
</tr>
</tbody>
</table>
</div>
</div>
@endif
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script src="{{ asset('js/consultation/create.js') }}"></script>
<script type="text/javascript">
$(document).ready(function() {
//
})
</script>
@endpush
@@ -0,0 +1,329 @@
@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-md-7">
<h4 class="page-title">{{ __('anaesthetics.view_anaesthetics_history') }}</h4>
</div>
<div class="col-md-5">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('home.dashboard') }}</a></li>
<li class="active">{{ __('anaesthetics.view') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="white-box">
<div class="row">
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('anaesthetics.items') }}</th>
<th>{{ __('anaesthetics.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('anaesthetics.procedure') }}</td>
<td>{{ get_name($anaesthesia->procedure_id, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.date') }}</td>
<td>{{ streamline_date($anaesthesia->created_at) }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.time_anaesthesia_commenced') }}</td>
<td>{{ date('h:i:s A', strtotime($anaesthesia->time_commenced)) }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.primary_diagnosis') }}</td>
<td>{{ isset($diagnoses[$anaesthesia->primary_diagnosis]) ? $diagnoses[$anaesthesia->primary_diagnosis] : "" }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.other_diagnoses') }}</td>
<td>
@php
$other_diagnoses_array = @unserialize($anaesthesia->other_diagnoses);
@endphp
@if(!empty($other_diagnoses_array) && $other_diagnoses_array[0] != "")
@foreach($other_diagnoses_array as $diagnosis)
<ul>
@if($diagnosis != "")
<li>{{ $diagnoses[$diagnosis] }}</li>
@endif
</ul>
@endforeach
@endif
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.anaesthetist') }}</td>
<td>{{ get_full_name($anaesthesia->anaesthetist, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.anaesthetics') }}</td>
<td>{{ get_name($anaesthesia->anaesthesia_type, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.blood_given') }}</td>
<td>{{ $anaesthesia->blood_given }} units</td>
</tr>
<tr>
<td>{{ __('anaesthetics.anaesthesia_checklist') }}</td>
<td>
@php
$anaesthesia_checklist = '';
$anaesthesia_checklist_array = unserialize($anaesthesia->anaesthesia_checklist);
foreach ($anaesthesia_checklist_array as $key => $value) {
if ($value == 1) {
$anaesthesia_checklist .= $key . ', ';
}
}
@endphp
{{ rtrim($anaesthesia_checklist, ', ') }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('anaesthetics.items') }}</th>
<th>{{ __('anaesthetics.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('anaesthetics.checklist_confirmed_by') }}</td>
<td>{{ get_full_name($anaesthesia->checklist_confirmed_by, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.induction') }}</td>
<td>
@php
$induction_array = $anaesthesia->induction ? explode(",", $anaesthesia->induction) : [];
@endphp
<ul>
@for ($i = 0; $i < count($induction_array); $i++)
<li>{{ get_name($induction_array[$i], 'id', 'name', 'anaesthesia_inductions') }}</li>
@endfor
</ul>
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.antibiotics') }}</td>
<td>
@php
$antibiotics_array = explode(",", $anaesthesia->antibiotics)
@endphp
@for($i = 0; $i < count($antibiotics_array); $i++)
<b>{{ $i + 1 }}</b> - {{ get_name($antibiotics_array[$i], 'id', 'name', 'drugs') }} <br>
@endfor
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.airway') }}</td>
<td>{{ get_name($anaesthesia->airway, 'id', 'name', 'anaesthesia_airways') }}</td>
</tr>
<tr>
<td>ETT</td>
<td>{{ get_name($anaesthesia->ETT, 'id', 'name', 'anaesthesia_etts') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.agent_used') }}</td>
<td>
@php
$agent_used_array = $anaesthesia->agent_used ? explode(",", $anaesthesia->agent_used) : [];
@endphp
@for ($i = 0; $i < count($agent_used_array); $i++)
<ul>
{{ get_name($agent_used_array[$i], 'id', 'name', 'anaesthetic_agents') }}
</ul>
@endfor
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.technique') }}</td>
<td>
@php
$technique_array = $anaesthesia->technique ? explode(",", $anaesthesia->technique) : [];
@endphp
@for ($i = 0; $i < count($technique_array); $i++)
<ul>
{{ get_name($technique_array[$i], 'id', 'name', 'anaesthetic_techniques') }}
</ul>
@endfor
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('anaesthetics.items') }}</th>
<th>{{ __('anaesthetics.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('anaesthetics.monitoring_signs') }}</td>
<td>
@php
$monitoring_signs = '';
$monitoring_signs_array = unserialize($anaesthesia->monitoring_signs);
foreach ($monitoring_signs_array as $k => $v) {
if ($v == 1) {
$monitoring_signs .= $k . ', ';
}
}
@endphp
{{ rtrim($monitoring_signs, ', ') }}
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.type_of_needle_used') }}</td>
<td>{{ get_name($anaesthesia->needle_type, 'id', 'name', 'needle_types') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.volume_administered') }}</td>
<td>{{ $anaesthesia->volume_administered }} mls</td>
</tr>
<tr>
<td>{{ __('anaesthetics.muscle_relaxants') }}</td>
<td>{{ get_name($anaesthesia->muscle_relaxant, 'id', 'name', 'muscle_relaxants') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.analgesics') }}</td>
<td>
@php
$analgesics_array = explode(",", $anaesthesia->analgesic);
@endphp
@if (count($analgesics_array) > 0)
<ul>
@for ($i = 0; $i < count($analgesics_array); $i++)
<li>{{ get_name($analgesics_array[$i], 'id', 'name', 'analgesics') }}</li>
@endfor
</ul>
@endif
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.volatile_liquid_anaethetics') }}</td>
<td>{{ get_name($anaesthesia->volatile_liquid_anaethetics, "id", "name", "volatile_liquid_anaesthetics") }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.volatile_liquid_anaesthetic_used') }}</td>
<td>{{ $anaesthesia->volatile_liquid_anaesthetic_used }} mls</td>
</tr>
<tr>
<td>{{ __('anaesthetics.iv_fluids_used') }}</td>
<td>
@php
$iv_fluids = '';
$iv_fluid_array = unserialize($anaesthesia->iv_fluids);
$iv_fluid_ids = $iv_fluid_array['iv_fluids'];
$iv_fluid_units = $iv_fluid_array['units'];
if (!empty($iv_fluid_ids)) {
foreach ($iv_fluid_ids as $x => $y) {
$iv_fluids .= '* ' . (isset($iv_fluid_units[$x]) ? $iv_fluid_units[$x] : "") . ': ' . $iv_fluid_units[$x] . ' mls<br>';
}
}
@endphp
{!! $iv_fluids !!}
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.comments') }}</td>
<td>{!! nl2br(e($anaesthesia->comments)) !!}</td>
</tr>
<tr>
<td>
</td>
<td>
<a class="btn btn-success btn-sm" href="{{ url('anaesthetics') }}/{{ $anaesthesia->id }}/edit" target="_blank" id="print_btn"><i class="fa fa-pencil"></i>&nbsp;Edit</a> &nbsp;
<a class="btn btn-primary btn-sm" href="{{ url('anaesthesia_print') }}/{{ $anaesthesia->id }}" target="_blank" id="print_btn"><i class="fa fa-print"></i>&nbsp;Print</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
@php
$drugs_given_anae = unserialize($anaesthesia->other_drugs_given);
$drugs_given_anae_cost = unserialize($anaesthesia->other_drugs_cost);
$do_not_bill_other_drugs = explode(",", $anaesthesia->other_drugs_bill);
@endphp
@if(count($drugs_given_anae) > 0)
<div class="col-md-4">
<h4>{{ __('anaesthetics.other_drugs_given') }}</h4>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('inpatient.drug_name') }}</th>
<th>{{ __('inpatient.dose') }}</th>
<th>{{ __('inpatient.cost') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@for($i = 0; $i < count($drugs_given_anae); $i++)
@php
$cost = isset($drugs_given_anae_cost[$i]) ? trim($drugs_given_anae_cost[$i]) : 0;
@endphp
<tr>
<td>{{ get_name($drugs_given_anae[$i]['id'], 'id', 'name', 'drugs') }}</td>
<td>{{ $drugs_given_anae[$i]['dose'] ?? "" }} {{ get_name($drugs_given_anae[$i]['unit'], 'id', 'name', 'drug_units') }}</td>
<td>{{ ugandan_shillings($cost) }}</td>
<td>
@if(in_array($drugs_given_anae[$i]['id'], $do_not_bill_other_drugs))
<a class="btn btn-sm btn-rounded btn-success" href="/anaesthetics/add_drug_to_inpatient_bill/{{ $id }}/{{ $drugs_given_anae[$i]['id'] }}">Add to inpatient bill</a>
@else
<a class="btn btn-sm btn-rounded btn-danger" href="/anaesthetics/remove_drug_from_inpatient_bill/{{ $id }}/{{ $drugs_given_anae[$i]['id'] }}">Remove from inpatient bill</a>
@endif
</td>
</tr>
@endfor
</tbody>
</table>
</div>
</div>
@endif
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
//
</script>
@endpush