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,120 @@
@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">{{ __('investigation_result_templates.new_result_template') }}</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="/result_templates/">{{ __('investigation_result_templates.investigation_result_templates') }}</a></li>
<li class="active">{{ __('investigations.register') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_result_templates.menu')
</div>
</div>
@include('flash::message')
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
{{ Form::open(['route' => 'result_templates.store','data-toggle'=>'validator']) }}
<div class="form-group">
{{ Form::label('investigation_id', __('investigation_result_templates.investigation')) }}
{{ Form::select('investigation_id', $investigations, '', ['class' => 'form-control select', 'onchange' => 'check_for_specialsed_variables(this.value)', 'id' => 'investigation_id']) }}
</div>
<div class="form-group" id="specialised_variables_div" style="display: none">
{{ Form::hidden('is_specialised_variable', 0, ['id' => 'is_specialised_variable']) }}
<div id="specialised_variables"></div>
<label class="label label-info" id="add_variable">{{ __('investigation_result_templates.add_variable') }}</label><br><br>
</div>
<div class="form-group" id="template_div">
{{ Form::label('template', __('investigation_result_templates.template')) }}
{{ Form::textarea('template', '', ['class' => 'form-control', 'rows'=>'7']) }}
</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>
var variable_counter = 0;
function check_for_specialsed_variables(id) {
if (id != 0 && id != '') {
$.ajax({
method: 'GET',
url: '/result_templates/check_investigation_speciality_type/' + id + '/' +variable_counter,
success: function(response){
if (response !== "0") {
$('#specialised_variables_div').show();
$('#template_div').hide();
$('#specialised_variables').html(response);
$('#is_specialised_variable').val(1);
$("#" + variable_counter).select2({
placeholder: "-- select --"
});
variable_counter++;
} else {
$('#template_div').show();
$('#specialised_variables_div').hide();
$('#specialised_variables').html("");
$('#is_specialised_variable').val(0);
}
},
error: function () {
//
}
});
}
}
$('#add_variable').click(function () {
let id = $('#investigation_id').val();
$.ajax({
method: 'GET',
url: '/result_templates/check_investigation_speciality_type/' + id + '/' +variable_counter,
success: function(response){
$('#specialised_variables').append(response);
$("#" + variable_counter).select2({
placeholder: "-- select --"
});
variable_counter++;
},
error: function () {
//
}
});
});
$('.select').select2();
</script>
@endpush
@@ -0,0 +1,69 @@
@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">{{ __('investigation_result_templates.edit_result_template') }}</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="/result_templates/">{{ __('investigation_result_templates.investigation_result_templates') }}</a></li>
<li class="active">{{ __('investigations.register') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_result_templates.menu')
</div>
</div>
@include('flash::message')
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
{{ Form::model($result_template, ['method' => 'PUT', 'route' => ['result_templates.update',$result_template]]) }}
<div class="form-group">
{{ Form::label('investigation_id', __('investigation_result_templates.investigation')) }}
@if($result_template->investigation_id == 0)
{{ Form::text('investigation_id', __('investigation_result_templates.all_investigations'), ['class' => 'form-control', 'readonly']) }}
@elseif($result_template->is_specialised_variable == 1)
{{ Form::text('investigation_id', get_name($result_template->investigation_id, 'id', 'name', 'investigation_specialised_variables'), ['class' => 'form-control', 'readonly']) }}
@else
{{ Form::text('investigation_id', get_name($result_template->investigation_id, 'id', 'name', 'investigations'), ['class' => 'form-control', 'readonly']) }}
@endif
</div>
<div class="form-group">
{{ Form::label('template', __('investigation_result_templates.template')) }}
{{ Form::textarea('template', $result_template->template, ['class' => 'form-control', 'rows'=>'7']) }}
</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></script>
@endpush
@@ -0,0 +1,81 @@
@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">{{ __('investigation_result_templates.inactive_result_templates') }}</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="/result_templates/">{{ __('investigation_result_templates.investigation_result_templates') }}</a></li>
<li class="active">{{ __('investigations.inactive') }}</li>
</ol>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_result_templates.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>{{ __('investigation_result_templates.template') }}</th>
<th>{{ __('investigation_result_templates.investigation') }}</th>
<th>{{ __('investigations.action') }}</th>
</tr>
</thead>
<tbody>
@foreach($result_templates as $result_template)
<tr>
<td>{{ $result_template->template }}</td>
<td>
@if($result_template->investigation_id == 0)
{{ __('investigation_result_templates.all_investigations') }}
@elseif($result_template->is_specialised_variable == 1)
{{ get_name($result_template->investigation_id, 'id', 'name', 'investigation_specialised_variables') }}
({{ get_name(get_name($result_template->investigation_id, 'id', 'investigation_id', 'investigation_specialised_variables'), 'id', 'name', 'investigations') }})
@else
{{ get_name($result_template->investigation_id, 'id', 'name', 'investigations') }}
@endif
</td>
<td>
{{ Form::model($result_template->id ,['method' => 'POST', 'route' => ['result_templates.activate', $result_template->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,84 @@
@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">{{ __('investigation_result_templates.view_result_templates') }}</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">{{ __('investigation_result_templates.investigation_result_templates') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::investigation_result_templates.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>{{ __('investigation_result_templates.template') }}</th>
<th>{{ __('investigation_result_templates.investigation') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($result_templates as $item)
<tr>
<td>{{ $item->template }}</td>
<td>
@if($item->investigation_id == 0)
{{ __('investigation_result_templates.all_investigations') }}
@elseif($item->is_specialised_variable == 1)
{{ get_name($item->investigation_id, 'id', 'name', 'investigation_specialised_variables') }}
({{ get_name(get_name($item->investigation_id, 'id', 'investigation_id', 'investigation_specialised_variables'), 'id', 'name', 'investigations') }})
@else
{{ get_name($item->investigation_id, 'id', 'name', 'investigations') }}
@endif
</td>
<td>
<a href="{{ route('result_templates.edit', $item->id) }}" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i> {{ __('investigations.edit') }}</a>
</td>
<td>
{{ Form::model($item->id ,['method' => 'DELETE', 'route' => ['result_templates.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>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script>
$('.table').DataTable();
</script>
@endpush
@@ -0,0 +1,7 @@
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
<a href="{{ route('result_templates.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('investigation_result_templates.add_result_templates') }}</span></a>
<a href="{{ route('result_templates.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('investigation_result_templates.view_result_templates') }}</span></a>
<a href="{{ route('result_templates.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('investigation_result_templates.inactive_result_templates') }}</span></a>
</div>
</div>