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,131 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
@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">{{ __('investigations.new_investigation_variable') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('investigations.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('investigations.clinical_data_home') }}</a></li>
<li><a href="/investigation_specialised_variables/">{{ __('investigations.investigation_variables') }}</a></li>
<li class="active">{{ __('investigations.register') }}</li>
</ol>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_specialised_variables.menu')
</div>
</div>
@include('flash::message')
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
{{ Form::open(['route' => 'investigation_variables.store','data-toggle'=>'validator']) }}
<div class="form-group">
{{ Form::label('name', __('investigations.variable_name')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label>{{ __('investigations.investigation') }}</label>
<select class="form-control select" name="investigation" required>
<option> -{{ __('investigations.select') }}- </option>
@foreach($investigations as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label>{{ __('investigations.units') }}</label>
<select class="form-control select" name="unit" required>
<option> -select- </option>
@foreach($units as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
</div>
<div class="form-group">
{{ Form::label('range_type', __('investigations.is_the_range_normal')) }}
{{ Form::select('range_type', ['' => '--select--',1 => 'Dynamic', 2 => 'Constant'], '', ['class' => 'form-control', 'required']) }}
</div>
<div class="form-group" style="display: none;" id="constant_div">
{{ Form::label('normal_ranges', __('investigations.normal_range')) }}
{{ Form::text('normal_ranges', '', ['class' => 'form-control']) }}
</div>
<div style="display: none;" id="dynamic_div">
@php $age_groups = \Streamline\Models\AgeGroup::get(); @endphp
<div class="row">
<div class="col-md-6">
<h5>{{ __('investigations.male') }}</h5>
<br>
@foreach($age_groups as $age)
{{ Form::label('dynamic_range', $age->name) }}
{{ Form::text('dynamic_range_male[]', '', ['class' => 'form-control']) }}
{{ Form::hidden('age_id[]', $age->id) }}
<br>
@endforeach
</div>
<div class="col-md-6">
<h5>{{ __('investigations.female') }}</h5>
<br>
@foreach($age_groups as $age)
{{ Form::label('dynamic_range', $age->name) }}
{{ Form::text('dynamic_range_female[]', '', ['class' => 'form-control']) }}
<br>
@endforeach
</div>
</div>
<hr>
</div>
{{ Form::button(__('investigations.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::button(__('investigations.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<script>
$('.select').select2({
placeholder: " -select- "
});
$('#range_type').change(function (e) {
e.preventDefault();
if(this.value == 2){
$('#constant_div').show();
$('#dynamic_div').hide();
}else{
$('#constant_div').hide();
$('#dynamic_div').show();
}
});
</script>
@endpush
@@ -0,0 +1,120 @@
@extends('layouts.main')
@section('title', '| Edit Drug Route')
@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">{{ __('investigations.edit_investigation_specialised_variables') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('investigations.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('investigations.clinical_data_home') }}</a></li>
<li><a href="/investigation_variables/">{{ __('investigations.investigation_specialised_variables') }}</a></li>
<li class="active">{{ __('investigations.edit') }}</li>
</ol>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_specialised_variables.menu')
</div>
</div>
@include('flash::message')
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
{{ Form::model($investigation_specialised_variable, ['method' => 'PUT', 'route' => ['investigation_variables.update',$investigation_specialised_variable]]) }}
<div class="form-group">
{{ Form::label('name', __('investigations.variable_name')) }}
{{ Form::text('name', $investigation_specialised_variable->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label>{{ __('investigations.investigation') }}</label>
<select class="form-control" name="investigation">
<option value="{{ get_name($investigation_specialised_variable->investigation_id, 'id', 'id', 'investigations') }}">{{ get_name($investigation_specialised_variable->investigation_id, 'id', 'name', 'investigations') }}</option>
<option> -{{ __('investigations.select') }}- </option>
@foreach($investigations as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label>{{ __('investigations.units') }}</label>
<select class="form-control" name="unit">
<option> -{{ __('investigations.select') }}- </option>
@foreach($units as $item)
<option value="{{ $item->id }}">{{ $item->name }}</option>
@endforeach
</select>
</div>
<div class="form-group">
{{ Form::label('range_type', __('investigations.is_the_range_normal')) }}
{{ Form::select('range_type', ['' => '--select--',1 => 'Dynamic', 2 => 'Constant'], $investigation_specialised_variable->range_type, ['class' => 'form-control']) }}
</div>
<div class="form-group" @if($investigation_specialised_variable->range_type == 1) style="display: none;" @endif id="constant_div">
{{ Form::label('normal_ranges', __('investigations.normal_range')) }}
{{ Form::text('normal_ranges', $investigation_specialised_variable->normal_ranges, ['class' => 'form-control']) }}
</div>
<div @if($investigation_specialised_variable->range_type != 1) style="display: none;" @endif id="dynamic_div">
@php $age_groups = \Streamline\Models\AgeGroup::get(); @endphp
<div class="row">
<div class="col-md-6">
<h5>{{ __('investigations.male') }}</h5>
<br>
@foreach($age_groups as $age)
{{ Form::label('dynamic_range', $age->name) }}
{{ Form::text('dynamic_range_male[]', get_dynamic_normal_range_specialized($investigation_specialised_variable->id, $age->id, 1), ['class' => 'form-control']) }}
{{ Form::hidden('age_id[]', $age->id) }}
<br>
@endforeach
</div>
<div class="col-md-6">
<h5>{{ __('investigations.female') }}</h5>
<br>
@foreach($age_groups as $age)
{{ Form::label('dynamic_range', $age->name) }}
{{ Form::text('dynamic_range_female[]', get_dynamic_normal_range_specialized($investigation_specialised_variable->id, $age->id, 2), ['class' => 'form-control']) }}
<br>
@endforeach
</div>
</div>
<hr>
</div>
{{ Form::button(__('investigations.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::button(__('investigations.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
@endsection
@push('scripts')
<script>
$('#range_type').change(function (e) {
e.preventDefault();
if(this.value == 2){
$('#constant_div').show();
$('#dynamic_div').hide();
}else{
$('#constant_div').hide();
$('#dynamic_div').show();
}
});
</script>
@endpush
@@ -0,0 +1,69 @@
@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">{{ __('investigations.inactive_specialised_variable') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('investigations.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('investigations.clinical_data_home') }}</a></li>
<li><a href="/investigation_variables/">{{ __('investigation_specialised_variables') }}</a></li>
<li class="active">{{ __('investigations.inactive') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_specialised_variables.menu')
</div>
</div>
@include('flash::message')
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-striped">
<thead>
<tr>
<th>{{ __('investigations.variable_name') }}</th>
<th>{{ __('investigations.action') }}</th>
</tr>
</thead>
<tbody>
@foreach($investigation_variables as $route)
<tr>
<td>{{ $route->name }}</td>
<td>
{{ Form::model($route->id ,['method' => 'POST', 'route' => ['investigation_variables.activate', $route->id]]) }}
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('<?php echo __('investigations.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('investigations.activate') }}</button>
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script>
$('.table').DataTable();
</script>
@endpush
@@ -0,0 +1,147 @@
@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">{{ __('investigations.investigation_specialised_variables') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('investigations.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('investigations.clinical_data_home') }}</a></li>
<li class="active">{{ __('investigations.investigation_specialised_variables') }}</li>
</ol>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_specialised_variables.menu')
</div>
</div>
@include('flash::message')
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-striped">
<thead>
<tr>
<th>{{ __('investigations.variable_name') }}</th>
<th>{{ __('investigations.investigation') }}</th>
<th>{{ __('investigations.normal_range') }}</th>
<th>{{ __('investigations.flag') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($investigation_variables as $item)
<tr>
<th>{{ $item->name }}</th>
<th>{{ get_name($item->investigation_id, 'id', 'name', 'investigations') }}</th>
<th>
@if($item->range_type == 1)
<a href="#" onclick="view_normal_ranges(<?php echo $item->id ?>)">{{ __('investigations.view_reference_ranges') }}</a>
@else
{{ $item->normal_ranges }}
@endif
</th>
<th>{{ $item->flags }}</th>
<td>
<a href="/investigation_variables/{{ $item->id }}/edit/" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i> {{ __('investigations.edit') }}</a>
</td>
<td>
{{ Form::model($item->id ,['method' => 'DELETE', 'route' => ['investigation_variables.destroy', $item->id]]) }}
<button type="submit" class="btn btn-danger btn-rounded" onclick="return confirm('<?php echo __('investigations.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('investigations.delete') }}</button>
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="modal" id="modal_categorized_ranges" tabindex="-1" role="dialog" aria-labelledby="debt_plan_modal_label" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><b id="categorized_ranges_title"></b></h4>
</div>
<div class="modal-body">
<div class="row">
@php $age_groups = \Streamline\Models\AgeGroup::get(); @endphp
<div class="col-md-6">
<h3>{{ __('investigations.male') }}</h3>
<br>
@foreach($age_groups as $age)
{{ Form::label('dynamic_range', $age->name) }}
{{ Form::text('dynamic_range', '', ['class' => 'form-control', 'readonly', 'id' => 'dynamic_range_male_' . $age->id]) }}
<br>
@endforeach
</div>
<div class="col-md-6">
<h3>{{ __('investigations.female') }}</h3>
<br>
@foreach($age_groups as $age)
{{ Form::label('dynamic_range', $age->name) }}
{{ Form::text('dynamic_range', '', ['class' => 'form-control', 'readonly', 'id' => 'dynamic_range_female_' . $age->id]) }}
<br>
@endforeach
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script>
$('.table').DataTable();
function view_normal_ranges(id) {
$.ajax({
method: 'GET',
url: '/investigations/view_specialised_investigation_normal_ranges/' + id,
success: function(response){
let responseArray = JSON.parse(response);
$('#categorized_ranges_title').text("Investigation Reference Ranges For " + responseArray["name"]);
let male_result = responseArray["male"];
let female_result = responseArray["female"];
for (var key in male_result) {
if (male_result.hasOwnProperty(key)) {
$("#dynamic_range_male_" + key).val(male_result[key]);
}
}
for (var key1 in female_result) {
if (female_result.hasOwnProperty(key1)) {
$("#dynamic_range_female_" + key1).val(female_result[key1]);
}
}
$('#modal_categorized_ranges').modal('show');
}
});
}
</script>
@endpush
@@ -0,0 +1,7 @@
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
<a href="{{ route('investigation_variables.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('investigations.add_investigation_specialised_variable') }}</span></a>
<a href="{{ route('investigation_variables.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('investigations.view_investigation_specialised_variables') }}</span></a>
<a href="{{ route('investigation_variables.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('investigations.activate_investigation_specialised_variables') }}</span></a>
</div>
</div>