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,211 @@
@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" />
<style>
table.dataTable thead th:after {
content: "" !important;
}
.show-on-hover {
visibility: hidden !important;
}
.show-on-hover-sec:hover .show-on-hover,
.show-on-hover-sec:focus .show-on-hover {
visibility: initial !important;
}
.show-on-hover-none {
display: none !important;
}
.show-on-hover-sec:hover .show-on-hover-none,
.show-on-hover-sec:focus .show-on-hover-none {
display: flex !important;
gap: 4px
}
td .show-on-hover-none * {
text-transform: capitalize;
font-size: 12px;
}
.show-on-hover-sec td {
position: relative;
}
td .show-on-hover-none {
position: absolute;
bottom: .5rem;
}
td .show-on-hover-none .dropdown ul {
transform: translate(5px, 20px) !important;
}
.active-box {
font-weight: bold;
border-radius: 5px;
}
.text-content-view::after {
content: 'View';
}
.text-content-edit::after {
content: 'Edit';
}
.text-content-options::after {
content: 'Options ✢';
border: none;
}
.text-content-options.show::after {
content: 'Options --';
}
.text-content-archive::after {
content: 'Archive record';
}
.text-content-delete::after {
content: 'Delete item';
}
.text-content-delete-hard::after {
content: 'Permanently delete item';
}
.text-content-archive-restore::after {
content: 'Restore from archive'
}
.text-content-trash-restore::after {
content: 'Restore from trash'
}
.text-content-clear-logs::after {
content: 'Clear record logs'
}
.right-0 {
right: 0;
}
</style>
@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">{{ __('clinical_data.rad_form') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('lab_forms.home') }}</a></li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="white-box" style="border-radius: 5px;">
<div class="panel">
<div class=" d-flex justify-content-between flex-wrap">
<div class="d-flex justify-content-between ">
@if (Auth::user()->can('radiologies-create'))
{{-- ti-plus --}}
<a href="{{ route('radiology.create') }}" class="mr-2 btn btn-default ">
{{ __('clinical_data.add_radiology') }}</a>
<a href="{{ route('radiology_forms.create') }}" class="mr-2 btn btn-default ">
{{ __('clinical_data.add_rad_form') }}</a>
@endif
</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover color-bordered-table success-bordered-table table-striped">
<thead>
<tr>
<th>{{ __('clinical_data.rad_form_name') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@forelse ($all_forms as $item)
<tr class="show-on-hover-sec">
<td >
{{ $item->name }}
</td>
@if (Auth::user()->can('radiologies-edit'))
<td>
<a href="{{ route('radiology_forms.edit', $item->id) }}"
class="btn btn-rounded btn-warning text-content-edit btn-sm"><i
class="fa fa-pencil"></i>
</a>
</td>
@endif
@if (Auth::user()->can('radiologies-delete'))
<td>
{{ Form::model($item->id, ['method' => 'DELETE', 'route' => ['radiology_forms.inactive', $item->id]]) }}
<button onclick="return confirm('<?php echo __('lab_forms.are_you_sure'); ?>')"
class="btn btn-rounded btn-danger text-content-delete btn-sm"><i
class="fa fa-trash"></i>
</button>
{{ Form::close() }}
</td>
@endif
</tr>
@empty
@endforelse
</tbody>
<tfoot>
<tr>
<th>{{ __('lab_forms.lab_form_name') }}</th>
<th></th>
<th></th>
</tr>
</tfoot>
</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',
order: [
[0, 'desc']
],
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
],
'pageLength': 50,
});
</script>
@endpush
@@ -0,0 +1,84 @@
@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/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">{{ __('clinical_data.add_radiology') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('clinical_data.dashboard') }}</a></li>
<li><a href="{{ route('radiology.index') }}">{{ __('clinical_data.radiologies') }}</a></li>
<li class="active">{{ __('clinical_data.create') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
</div>
</div>
<div class="white-box">
{{ Form::open(['route' => 'radiology.store', 'data-toggle' => 'validator']) }}
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('name',__('clinical_data.name')) }}
{{ Form::text('name','',['class' => 'form-control compulsory', 'required']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('cost_price',__('clinical_data.item_cost_price')) }}
{{ Form::text('cost_price','',['class' => 'form-control compulsory', 'required']) }}
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('payables_account_id', __('clinical_data.payables_account')) }}
{{ Form::select('payables_account_id', $payables_accounts, null, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('expenses_account_id', __('clinical_data.expenses_account')) }}
{{ Form::select('expenses_account_id', $expense_accounts, null, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('re_order_level_id', __('labs.reorder_level') ) }}
{{ Form::number('re_order_level', null, ['class' => 'form-control ']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('form_id', __('labs.form')) }}
{{ Form::select('form', $forms, null, ['class' => 'form-control']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
{{ Form::button(__('clinical_data.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 submit-btn']) }}
{{ Form::button(__('clinical_data.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
@endpush
@@ -0,0 +1,45 @@
@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">{{ __('clinical_data.add_rad_form') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('lab_forms.home') }}</a></li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="white-box" style="border-radius: 5px;">
{{ Form::open(['method'=>'POST', 'route'=>'radiology_forms.store']) }}
<div class="form-group">
<label>{{ __('clinical_data.radiology_form_name') }}</label>
<input name="name" class="form-control" type="text">
</div>
<div class="form-group text-right">
<input type="submit" class="btn btn-success">
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@@ -0,0 +1,99 @@
@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/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">{{ __('clinical_data.edit_radiologies') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('clinical_data.dashboard') }}</a></li>
<li><a href="/radiology/">{{ __('clinical_data.radiologies') }}</a></li>
<li class="active">{{ __('clinical_data.edit') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($radiology, ['method' => 'PUT', 'route' => ['radiology.update',$radiology], 'data-toggle' => 'validator']) }}
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('name', __('clinical_data.name')) }}
{{ Form::text('name',$radiology->item_name,['class' => 'form-control compulsory', 'required']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('cost_price', __('clinical_data.item_cost_price')) }}
{{ Form::text('cost_price', $radiology->cost_price,['class' => 'form-control compulsory', 'required']) }}
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('payables_account_id', __('clinical_data.payables_account')) }}
{{ Form::select('payables_account_id', $payables_accounts, $radiology->payables_account_id, ['class' => 'form-control drop']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('expenses_account_id', __('clinical_data.expenses_account')) }}
{{ Form::select('expenses_account_id', $expenses_accounts, $radiology->expenses_account_id, ['class' => 'form-control drop']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('form_id', __('clinical_data.form')) }}
{{ Form::select('form_id', $forms, $radiology->form_id, ['class' => 'form-control drop', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('re_order_level_id', __('labs.reorder_level') ) }}
{{ Form::number('re_order_level', $radiology->reorder_level, ['class' => 'form-control ']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</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 type="text/javascript">
$(document).ready(function () {
$(".drop").select2({
placeholder: "-- select --"
});
});
</script>
@endpush
@@ -0,0 +1,111 @@
@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" />
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
<style>
th{
white-space: nowrap;
}
</style>
@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.edit_investigation') }}</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="/investigations/index">{{ __('investigations.investigations') }}</a></li>
<li class="active">{{ __('investigations.edit_investigation') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($radiologies, ['method' => 'ANY', 'route' => ['radiology.update_all', 'data-toggle' => 'validator']]) }}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th hidden></th>
<th>{{ __('clinical_data.name') }}</th>
<th>{{ __('clinical_data.item_cost_price') }}</th>
<th>{{ __('clinical_data.payables_account') }}</th>
<th>{{ __('clinical_data.expenses_account') }}</th>
<th>{{ __('clinical_data.form') }}</th>
<th>{{ __('labs.reorder_level') }}</th>
</tr>
</thead>
<tbody>
@foreach($radiologies as $investigation)
<tr>
<td hidden>{{ Form::text('id[]', $investigation->id, ['class' => 'form-control']) }}</td>
<td>
<p style="display: none">{{ $investigation->name }}</p>
{{ Form::text('name[]', $investigation->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</td>
<td>{{ Form::number('cost_price[]', $investigation->cost_price, ['class' => 'form-control compulsory', 'required']) }}</td>
<td>{{ Form::select('payables_account_id[]',$payables_accounts,$investigation->payables_account_id,['class' => 'form-control drop']) }}</td>
<td>{{ Form::select('expenses_account_id[]',$expense_accounts,$investigation->expenses_account_id,['class' => 'form-control drop']) }}</td>
<td>{{ Form::select('form_id[]',$forms,$investigation->form_id,['class' => 'form-control drop']) }}</td>
<td>{{ Form::number('re_order_level[]',$investigation->reorder_level,['class' => 'form-control ']) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{ Form::button(__('investigations.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('investigations.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
<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 src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<script>
$(document).ready(function () {
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 50,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
$(".drop").select2({
placeholder: "-- select --"
});
});
</script>
@endpush
@@ -0,0 +1,45 @@
@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">{{ __('clinical_data.add_rad_form') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('lab_forms.home') }}</a></li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="white-box" style="border-radius: 5px;">
{{ Form::open(['method'=>'PUT', 'route'=>['radiology_forms.update',$form->id]]) }}
<div class="form-group">
<label>{{ __('clinical_data.radiology_form_name') }}</label>
<input name="name" class="form-control" value="{{ $form->name }}" type="text">
</div>
<div class="form-group text-right">
<input type="submit" class="btn btn-success">
</div>
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@@ -0,0 +1,85 @@
@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">{{ __('clinical_data.activate_radiologies') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('clinical_data.dashboard') }}</a></li>
<li><a href="/radiology/">{{ __('clinical_data.radiologies') }}</a></li>
<li class="active">{{ __('clinical_data.activate') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('clinical_data.radiology') }}</th>
<th>{{ __('clinical_data.cost_price') }}</th>
<th>{{ __('clinical_data.expense_account') }}</th>
<th>{{ __('clinical_data.payables_account') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($radiologies as $radiology)
<tr>
<td>{{ $radiology->name }}</td>
<td>{{ $radiology->cost_price }}</td>
<td>{{ isset($accounts[$radiology->expenses_account_id]) ? $accounts[$radiology->expenses_account_id] : "" }}</td>
<td>{{ isset($accounts[$radiology->payables_account_id]) ? $accounts[$radiology->payables_account_id] : "" }}</td>
<td>
{{ Form::model($radiology->id ,['method' => 'POST', 'route' => ['radiology.activate', $radiology->id]]) }}
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> {{ __('clinical_data.activate') }}</button>
{{ Form::close() }}
</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',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush
@@ -0,0 +1,124 @@
@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">{{ __('clinical_data.title_radiologies') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('clinical_data.dashboard') }}</a></li>
<li class="active">{{ __('clinical_data.radiologies') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('investigations::radiologies.menu')
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
<div class="panel">
<div class="">
<div class=" ">
@if (Auth::user()->can('radiologies-create'))
{{-- ti-plus --}}
<a href="{{ route('radiology.create') }}" class="mr-2 btn btn-default ">
{{ __('clinical_data.add_radiology') }}</a>
<a href="{{ route('radiology_forms.create') }}" class="mr-2 btn btn-default ">
{{ __('clinical_data.add_rad_form') }}</a>
@endif
@if (Auth::user()->can('radiologies-delete'))
{{-- ti-trash --}}
<a href="{{ route('radiology.inactive') }}" class=" btn btn-danger ">
{{ __('clinical_data.inactive_radiologies') }}</a>
@endif
</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('clinical_data.radiology') }}</th>
<th>{{ __('labs.cost_value') }}</th>
<th>{{ __('clinical_data.imaging_stock') }}</th>
<th>{{ __('clinical_data.store_stock') }}</th>
<th>{{ __('clinical_data.expense_account') }}</th>
<th>{{ __('clinical_data.payables_account') }}</th>
@if (Auth::user()->can('radiologies-edit'))
<th></th>
@endif
@if (Auth::user()->can('radiologies-delete'))
<th></th>
@endif
</tr>
</thead>
<tbody>
@foreach($radiologies as $radiology)
<tr>
<td>{{ $radiology->name }}</td>
<td>{{ $radiology->cost_price }}</td>
<td>{{ $radiology->total_lab_stock }} @if ( get_name($radiology->form_id, 'id', 'name', 'general_forms') == "N/A") {{ null }} @else {{ get_name($radiology->form_id, 'id', 'name', 'general_forms') }} @endif</td>
<td>{{ $radiology->total_store_stock }} @if ( get_name($radiology->form_id, 'id', 'name', 'general_forms') == "N/A") {{ null }} @else {{ get_name($radiology->form_id, 'id', 'name', 'general_forms') }} @endif</td>
<td>{{ isset($accounts[$radiology->expenses_account_id]) ? $accounts[$radiology->expenses_account_id] : "" }}</td>
<td>{{ isset($accounts[$radiology->payables_account_id]) ? $accounts[$radiology->payables_account_id] : "" }}</td>
@if (Auth::user()->can('radiologies-edit'))
<td>
<a href="/radiology/{{ $radiology->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('clinical_data.edit') }}</a>
</td>
@endif
@if (Auth::user()->can('radiologies-delete'))
<td>
@if(empty($radiology->total_lab_stock)&& empty($radiology->total_store_stock))
{{ Form::model($radiology->id ,['method' => 'DELETE', 'route' => ['radiology.destroy', $radiology->id]]) }}
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('clinical_data.delete') }}</button>
{{ Form::close() }}
@elseif (!empty($radiology->total_lab_stock) || !empty($radiology->total_store_stock))
<b class="text-success">Still Stocked</b>
@endif
</td>
@endif
</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',
buttons: [
'copy', 'csv', 'pdf', 'print', 'excel'
]
});
</script>
@endpush
@@ -0,0 +1,33 @@
<div class="panel panel-default">
<div class="panel-body ">
<div class="row">
<div class="col-sm-12 p-2">
@if (Auth::user()->can('radiologies-management'))
{{-- ti-eye --}}
<a href="{{ route('radiology.index') }}" class="nav-item btn btn-success">
{{ __('clinical_data.view_radiologies') }}</a>
<a href="{{ route('radiology_forms.all') }}" class="nav-item btn btn-success">
{{ __('clinical_data.view_rad_form') }}</a>
@endif
@if (Auth::user()->can('radiologies-usage-listing'))
<a href="{{ route('radiology.usage_listing') }}" class="nav-item btn btn-success ">
{{ __('clinical_data.radiology_usage') }}</a>
@endif
@if (Auth::user()->can('requisition-for-radiologies'))
{{-- ti-pencil --}}
<a href="{{ route('radiology.requisition_for_radiology') }}" class="nav-item btn btn-success ">
{{ __('clinical_data.requisition_radiologies') }}</a>
@endif
@if (Auth::user()->can('radiologies-stock-sheet'))
<a href="{{ route('radiology.radiology_stock_sheet') }}" class="nav-item btn btn-success ">
{{ __('clinical_data.radiology_stock_sheet') }}</a>
@endif
</div>
</div>
</div>
</div>
@@ -0,0 +1,229 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
<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" />
<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">{{ __('clinical_data.requisition_for_radiologies') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('labs.dashboard') }}</a></li>
<li><a href="{{ url('radiology') }}">{{ __('clinical_data.radiologies') }}</a></li>
<li class="active">{{ __('clinical_data.requisition_for_radiologies') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-sm-2">
{{ Form::open(['route' => 'radiology.prev_requisition_for_radiology_search', 'method'=>'post' ,'data-toggle' => 'validator']) }}
<div class="form-group" id="searchby">
{{ Form::label('search_by', __('hmis_reports.date')) }}
{{ Form::select('search_by', ['0' => __('hmis_reports.last_24_hours'), '1' => __('hmis_reports.custom_date'), '2' => __('hmis_reports.custom_range')], '', ['class' => 'form-control', 'id' => 'search_by', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-sm-2" style="display: none;" id="date_search">
<div class="form-group" id="reg_date" style="padding-top: 23px;">
<div class="input-group">
{{ Form::text('reg_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'datepicker-autoclose']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div class="col-sm-4" style="display: none;" id="date_range_search">
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('start_date', __('hmis_reports.from')) }}
<div class="input-group">
{{ Form::text('start_date', '', ['class' => 'form-control compulsory', 'readonly', 'id' => 'datepicker-autoclose-1']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group" id="reg_date">
{{ Form::label('end_date', __('hmis_reports.to')) }}
<div class="input-group">
{{ Form::text('end_date', '', ['class' => 'form-control compulsory', 'readonly', 'id' => 'datepicker-autoclose-2']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-2"><br>
{{ Form::submit(__('hmis_reports.search'), ['name' => 'filterBtn', 'class' => 'btn btn-success']) }}
{{ Form::close() }}
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="panel">
<div class="panel-heading d-flex justify-content-between flex-wrap">
<span>{{ __('clinical_data.previous_radiology_requisitions') }} {!! $search_string ?? $search_string !!}</span>
<div class="">
@if (Auth::user()->can('requisition-for-radiologies'))
{{-- ti-pencil --}}
<a href="{{ route('radiology.requisition_for_radiology') }}" class="nav-item btn btn-default ">
{{ __('clinical_data.requisition_radiologies') }}</a>
@endif
</div>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{{ __('labs.requisition') }} #</th>
<th>{{ __('labs.quantity') }}</th>
<th>{{ __('labs.date_requested') }}</th>
<th>{{ __('labs.status') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@forelse($previous_requisitions_results as $result)
<tr>
<td># {{ sprintf('%04u', $result->id) }}</td>
<td>
<?php
$drug_id_explode = explode(",", $result->drug_id);
?>
{{ count($drug_id_explode) }} {{ __('labs.items') }}
</td>
<td>
{{ streamline_date($result->created_at) }}
</td>
<td>
@if($result->approval_status == 1)
<label class="label label-success">{{ __('labs.approved') }}</label>
@else
<label class="label label-danger">{{ __('labs.not_approved') }}</label>
@endif
</td>
<td>
@if($result->approval_status != 1)
<form name="quotation_form" action="{{ url('edit_previous_requisition') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="requisition_id" value="{{ $result->id }}"/>
<input type="hidden" name="item_type" value="{{ $result->quotation_type_id }}">
<button type="submit" name="previous_quotation_edit_button" class="btn btn-sm btn-rounded btn-warning">
<i class="fa fa-pencil"></i> <span style="margin-left: 10px;">{{ __('labs.edit_requistion') }}</span></button>
</form>
@else
@if($result->issue_status == 1)
<form name="bill_form" action="{{ url('previous_issued_items_details') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="requisition_id" value="{{ $result->id }}"/>
<input type="hidden" name="item_type" value="4">
<button type="submit" name="add_bill_button" class="btn btn-sm btn-rounded btn-info">
<i class="fa fa-info-circle"></i>
<span style="margin-left: 10px;">{{ __('labs.details') }}</span>
</button>
</form>
@else
<a class="btn btn-success btn-sm btn-rounded" href="/print_requisition_receipt/{{ $result->id }}"><i class="fa fa-eye"></i> {{ __('pharmacy.view') }}</a>
@endif
@endif
</td>
</tr>
@empty
<td colspan="7"><span style="color: red;">{{ __('labs.search_records') }}</span></td>
@endforelse
</tbody>
<tfoot>
<tr>
<th>{{ __('labs.requisition') }} #</th>
<th>{{ __('labs.quantity') }}</th>
<th>{{ __('labs.date_requested') }}</th>
<th>{{ __('labs.status') }}</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<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/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 src="{{ asset('elite/js/mask.js') }}"></script>
<!-- data time piker dependency -->
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<!-- -->
<script>
$('.labs_ids').select2({
placeholder: "Select"
});
$('#search_by').change(function() {
if ($(this).val() == 1) {
$('#date_search').show();
$('#date_range_search').hide();
} else if ($(this).val() == 2) {
$('#date_range_search').show();
$('#date_search').hide();
} else {
$('#date_search,#date_range_search').hide();
}
});
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);
};
};
$('#datepicker-autoclose,#datepicker-autoclose-1,#datepicker-autoclose-2').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy'
});
$('.table').DataTable({
"pageLength": 25,
});
</script>
@endpush
@@ -0,0 +1,245 @@
@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" />
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
type="text/css" />
<style>
.active-box {
font-weight: bold;
border-radius: 5px;
}
</style>
@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">{{ __('clinical_data.radiologies_stock_sheet') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('labs.dashboard') }}</a></li>
<li><a href="{{ url('radiology') }}">{{ __('clinical_data.radiologies') }}</a></li>
<li class="active">{{ __('clinical_data.radiologies_stock_sheet') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
<form action="{{ url('update_radiology_stock_sheet') }}" method="POST" name="stock_form" id="stock_form">
{{ csrf_field() }}
<div class="row">
@if(Auth::user()->can('edit-radiologies-stock-sheet'))
<div class="col-sm-2 mb-3">
<div style="margin-top: 10%; ">
<button class="btn btn-rounded btn-default" id="cancel_edit"
style="display: none;">{{ __('labs.cancel') }}</button>
<button class="btn btn-rounded btn-success"
id="edit_stock">{{ __('labs.edit_stock') }}</button>
<div style="margin-right:30px;">
<input type="submit" value="Save stock" class="btn btn-rounded btn-success" id="save_stock"
style="display: none;">
</div>
</div>
</div>
@endif
<div class="col-sm-12">
<div class="table-responsive">
<table class="table success-table table-sm table-striped table-hover">
<thead>
<tr>
<th style="width: 40%;">{{ __('labs.name') }}</th>
@if(track_items_using_batches())<th>{{ __('stores.batch_details') }}</th>@endif
<th style="width: 20%;">{{ __('clinical_data.radiology_stock') }}</th>
<th>{{ __('labs.cost_value') }}</th>
{{--<th>{{ __('labs.sale_value') }}</th> --}}
{{-- <th>{{ __('labs.expiry_date') }}</th> --}}
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('labs.name') }}</th>
@if(track_items_using_batches())
<th>{{ __('stores.batch_details') }}</th>
@endif
<th>{{ __('clinical_data.radiology_stock') }}</th>
<th>{{ __('labs.cost') }}</th>
{{--<th>{{ __('labs.sale_value') }}</th> --}}
{{-- <th>{{ __('labs.expiry_date') }}</th> --}}
</tr>
</tfoot>
<tbody>
@forelse ($radiologies as $lab)
<tr>
<td>
@if ($lab->insurance_coverage == 1)
<span style="color: green;"> {{ $lab->name }} </span>
@else
<span style="color: orange;"> {{ $lab->name }} </span>
@endif
</td>
@if(track_items_using_batches())
<td >
@forelse($lab->batches as $record)
<div class="row" style="background-color: #e1e1ef; border-radius: 5px 5px; border: 2px #c4b7b7 solid; margin-bottom: 2px;">
<div class="col-sm-12 shown_input" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.batch') }}: </b>{{ $record->batch_number }}
</div>
<div class="col-sm-12 shown_input" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.quantity') }}: </b>{{ $record->lab_stock }}<br>
<b>{{ __('stores.expiry_date') }}: </b>{{ streamline_date_plain($record->expiry_date) }}
</div>
<div class="col-sm-12 shown_input" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.unit_cost') }}: </b>{{ $record->cost_price }}
</div>
<div class="col-sm-12" style="padding: 0px;">
{{ Form::hidden('item_batch_watcher_id[]', 0) }}
{{ Form::hidden('batch_drug_id[]', $record->id) }}
{{ Form::hidden('batch_item_id[]', $record->item_id) }}
<div class="hidden_input" style="display: none;">
{{ Form::text('batch_number[]', $record->batch_number, [ 'readonly'=>'true','class' => 'form-control col-sm-12 new_batch_number_'.$lab->id, 'placeholder' => 'Batch']) }}
</div>
</div>
<div class="col-sm-12" style="padding: 0px;">
<div class="hidden_input" style="display: none;">
<input type="number" name="batch_unit_cost[]" value="{{ $record->cost_price }}" class="form-control batch_qty batch_unit_cost_{{ $lab->id }}">
</div>
</div>
<div class="col-sm-12" style="padding: 0px;">
<div class="hidden_input" style="display: none;">
<input type="number" name="batch_quantity_balance[]" value="{{ $record->lab_stock }}" class="form-control batch_qty batch_quantity_balance_{{ $lab->id }}">
</div>
</div>
<div class="col-sm-12" style="padding: 0px;">
<div class="hidden_input" style="display: none;">
<div class="input-group">
<input type="text" name="expiry_date[]" value="{{ $record->expiry_date }}" autocomplete="off" class="form-control expiry_date_input">
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
</div>
@empty
<div class="row" style="background-color: #e1e1ef; border-radius: 5px 5px; border: 2px #c4b7b7 solid; margin-bottom: 2px;">
<div class="col-sm-12" style="word-wrap: break-word; padding: 10px; font-size: 10px">
No Batches Found
</div>
</div>
@endforelse
@if(count($lab->batches ) > 0)
@if(Auth::user()->can('add-batch-during-lab-stock-reconciliation'))
<div id="div_to_append_{{ $lab->id }}"></div>
<div class="row show_on_edit" style="display: none;" id="add_batch_{{ $lab->id }}"><a href="#">{{ __('stores.add_batch_small') }}<div>
@endif
@endif
</td>
@endif
<td>
<div class="shown_input">
@if(track_items_using_batches()) {{ $lab->total_stock }} @else {{ $lab->pharmacy_stock }} @endif
</div>
<div class="hidden_input" style="display: none;">
<input type="hidden" name="lab_id[]" value="{{ $lab->id }}">
<input type="text" name="quantity[]" class="form-control" readonly id="physical_stock_{{ $lab->id }}"
value="@if(track_items_using_batches()) {{ $lab->total_stock }} @else {{ $lab->pharmacy_stock }} @endif">
</div>
</td>
<td>{{ ugandan_shillings($lab->item_cost_value) }}</td>
{{--<td>{{ ugandan_shillings($lab->non_insured_price * $labs_lab_stock) }}
</td> --}}
{{-- <td>
<div class="shown_input">
{{ streamline_date($lab->expiry_date) }}
</div>
<div class="hidden_input" style="display: none;">
<div class="input-group">
<input type="text" name="expiry_date[]"
class="form-control expiry_date_input"
value="{{ $lab->expiry_date }}">
<span class="input-group-addon"><i
class="icon-calender"></i></span>
</div>
</div>
</td> --}}
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
@if(Auth::user()->can('edit-radiologies-stock-sheet'))
<div class="col-sm-1 mb-3 ">
<div style="margin-top: 10%; margin-right:30px;">
<input type="submit" value="Save stock" class="btn btn-rounded btn-success" id="save_stock"
style="display: none;">
</div>
</div>
@endif
</form>
</div>
</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 src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script>
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 100,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
$('#edit_stock').click(function(e) {
e.preventDefault();
$('.hidden_input,#save_stock,.show_on_edit,#cancel_stock').show();
$('.shown_input').hide();
$(this).hide();
});
$(".batch_qty").on("change keyup", function () {
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
var total_quantity = 0;
$(".batch_quantity_balance_"+id).each(function () {
var batch_qty = $(this).val();
total_quantity += parseInt(batch_qty);
});
$("#shown_input_"+id).text(total_quantity);
$("#physical_stock_"+id).val(total_quantity);
});
$('.expiry_date_input').datepicker({
autoclose: true,
todayHighlight: true,
format: 'yyyy-mm-dd',
});
</script>
<script src="{{ asset('js/stores/scripts.js') }}"></script>
@endpush
@@ -0,0 +1,390 @@
@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/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" />
<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">{{ __('clinical_data.radiologies_usage') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('clinical_data.dashboard') }}</a></li>
<li class="active"><i class="fa fa-bank"></i> {{ __('clinical_data.radiologies_usage') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
@include('flash::message')
<div class="panel">
<div class="panel-heading d-flex justify-content-between flex-wrap">
<span><b>{{ __('clinical_data.radiologies_usage') }}</b></span>
<div class="d-flex justify-content-between ">
@if (Auth::user()->can('radiologies-report-usage'))
<a href="{{ route('radiology.usages_report') }}" class="nav-item btn btn-default">
{{ __('clinical_data.radiology_usages_report') }}</a>
@endif
</div>
</div>
<div class="panel-body">
{{ Form::open(['route' => 'radiology.usage', 'data-toggle' => 'validator', 'method' => 'POST']) }}
<div class="row">
<div class="col-md-12">
<div class="pull-left">
<a href="javascript:void(0)" class="text-center db">
@php $hospital_information = \Streamline\Models\HospitalInformation::first(); @endphp
<img src="{{ asset($hospital_information->logo) }}"
style="max-height: 160px; margin: auto; max-width: 260px;"
alt="Home" /><br />
</a>
<address>
<h3> &nbsp;<b class="text-danger">{{ $hospital_information->name }}</b></h3>
<p class="text-muted m-l-5">{{ $hospital_information->phone_number }},
{{ $hospital_information->email }},
<br />
{{ get_name($hospital_information->sub_county, 'id', 'name', 'subcounties') }},
{{ get_name($hospital_information->district, 'id', 'name', 'districts') }},
<br /> {{ $hospital_information->country }}.
</p>
</address>
</div>
<div class="pull-right text-right">
<address>
<p class="m-t-30"><b>{{ __('labs.date') }} : </b> <i
class="fa fa-calendar"></i>
{{ streamline_date_time(\Carbon\Carbon::now()->toDateTimeString()) }}</p>
</address>
<div class="form-group">
{{ Form::label('dates', __('labs.enter_dates')) }}
<select class="form-control compulsory" name="dates" id="dates" required>
<option value="">-{{ __('labs.select') }}-</option>
<option value="today">{{ __('labs.today') }}</option>
<option value="custom_date_range">{{ __('labs.date_range') }}</option>
</select>
</div>
<div id="sDate" style="display: none;">
<div class="form-group">
{{ Form::label('start_date', __('labs.date_on')) }}
<div class="input-group">
{{ Form::text('start_date', '', ['class' => 'form-control required compulsory', 'readonly', 'id' => 'start_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div id="eDate" style="display: none;">
<div class="form-group">
{{ Form::label('end_date', __('labs.end_date')) }}
<div class="input-group">
{{ Form::text('end_date', '', ['class' => 'form-control required compulsory', 'readonly', 'id' => 'end_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row">
<div class="col-12">
</div>
</div>
<br />
@php
$options = "<option value=''>--" . __('labs.select') . '--</option>';
foreach ($radiologies as $item) {
$options .= "<option value='$item->id'>$item->name</option>";
}
@endphp
<div class="input_fields_wrap">
<div class="row">
<div class="span1"></div>
<div class="col-md-2">
<div class=" control-group">
<label class="control-label" for="item">{{ __('clinical_data.name') }}
:</label>
<div class="form-group">
<select name='labItem[]' id='lab-item_0'
class="form-control calculate select">
<option>- {{ __('labs.select') }} -</option>
@foreach ($radiologies as $item)
<option style='color: orange;' value='{{ $item->id }}'>
{{ $item->name }}</option>
@endforeach
</select>
</div>
</div>
</div><!-- Item -->
@php
$options = "<option value=''>- " . __('labs.select') . ' -</option>';
foreach ($radiologies as $item) {
$options .= "<option value='$item->id'>$item->name</option>";
}
@endphp
<div class='col-md-2'>
<div class="form-group">
<label class='control-label'
class=''>{{ __('labs.available_quantity') }}</label>
<div class=''>
<input type='text' name='availableQty[]' id ='available-qty_0'
class='form-control compulsory' readonly>
</div>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label class="control-label">{{ __('labs.quantity_required') }}</label>
<input type='text' name='requiredQty[]' id ='required-qty_0'
class='form-control compulsory'>
</div>
</div>
<div class='col-md-2'>
<div class="form-group">
<label class='control-label' class=''>{{ __('labs.unit_cost') }}</label>
<div class=''>
<input type='text' name='unitCost[]' id ='cost_0'
class='form-control' readonly>
</div>
</div>
</div>
<div class='col-md-2'>
<div class="form-group">
<label class='control-label'
class=''>{{ __('labs.total_cost') }}</label>
<div class=''>
<input type='text' name='totalCost[]' id ='total-cost_0'
class='form-control' readonly>
</div>
</div>
</div>
<div class="col-1">
<div class="form-group text-right" style="margin-top: 30px; margin-left: 3px;">
<a class="label label-success add_item" style="color: white"><i
class="fa fa-plus"></i> {{ __('labs.add_item') }}</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class='col'>
<div style="display: block">
<button type="submit" id="submit_usage" style="display: none"
class ="btn btn-success btn-rounded float-right">{{ __('labs.submit_usage') }}</button>
</div>
</div>
</div>
{{ Form::close() }}
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<script type="text/javascript"
src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script>
$('#start_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
$('#end_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
$(document).ready(function() {
$(".input_fields_wrap").on('change', "select,input", function() {
// var i = parseInt(this.id.replace("item_", ""), 10);
var i = parseInt(this.id.substr(this.id.indexOf("_") + 1));
var lab_item_select = $("#lab-item_" + i);
var lab_item = $("#lab-item_" + i).val();
var available_qty = $("#available-qty_" + i);
var cost = $('#cost_' + i);
var total_cost = $('#total-cost_' + i);
if (lab_item === "") {
alert("<?php echo __('labs.select_lab_item'); ?>");
return false;
}
$.ajax({
method: 'POST',
url: '/radiology/get_radiology_quantity',
data: {
'id': lab_item,
_token: '{{ csrf_token() }}',
},
success: function(response) {
available_qty.val(response['pharmacy_stock']);
cost.val(response['cost_price'])
var required_qty = $('#required-qty_' + i);
if (response['pharmacy_stock'] >= required_qty.val()) {
$("[id^='cost_']").each(function() {
total = Number($(this).val()) * required_qty.val();
});
total_cost.val(total);
console.log(total);
$('#submit_usage').show();
} else {
alert('<?php echo __('labs.amount_not_available'); ?>');
required_qty.val(0);
$('#submit_usage').hide();
}
},
error: function(error) {
console.log(error);
}
});
.9
});
})
var max_fields = 20; //maximum input boxes allowed
var wrapper = $(".input_fields_wrap"); //Fields wrapper
var add_button = $(".add_item"); //Add button ID
var x = 1; //initlal text box count
$(add_button).click(function(e) { //on add input button click
e.preventDefault();
if (x < max_fields) { //max input box allowed
x++; //text box increment
$(wrapper).append("\
<div class='row'>\n\
<div class='span1'></div>\n\
<div class='col-md-2'>\n\
<div class='form-group'>" +
"<div class='controls'>\n\
<select name='labItem[]' id='lab-item_" + x + "' class='form-control compulsory'>" +
"<?php echo $options; ?>" +
"</select>\n\
</div>\n\
</div>\n\
</div>\n\
<div class='col-md-2'>\n\
<div>\n\
<div class='form-group'>" +
"<input type='number' name='availableQty[]' id ='available-qty_" + x + "' class='form-control compulsory' readonly>\n\
</div>\n\
</div>\n\
</div>\n\
<div class='col-md-2'>\n\
<div class='form-group'>" +
"<div class='controls'>\n\
<input type='number' name='requiredQty[]' id='required-qty_" + x +
"' class='form-control compulsory'>" +
"\n\
</div>\n\
</div>\n\
</div>\n\
<div class='col-md-2'>\n\
<div>\n\
<div class='form-group'>\n\
<input type='text' name='unitCost[]' id='cost_" + x + "' class='form-control' readonly>\n\
</div>\n\
</div>\n\
</div>\n\
\<div class='col-md-2'>\n\
<div>\n\
<div class='form-group'>\n\
<input type='text' name='totalCost[]' id='total-cost_" + x + "' class='form-control' readonly>\n\
</div>\n\
</div>\n\
</div>\n\
\ <div class='col-1'>\n\
<div class=''>\n\
<div class='form-group text-right' style='margin-top: 5px;'>\n\
&nbsp;<!--<a href='#' class='label label-success add_item' style='color: white'><i class='fa fa-plus'></i></a>-->\n\
&nbsp;<a href='#' class='remove_field label label-danger' style='margin-top:5px;'>delete item</a>\n\
</div>\n\
</div>\n\
</div>\n\
</div>\n\
</div>\n\
</div>\n\
");
$('#lab-item_' + x).select2(); //add input box
}
});
$(wrapper).on("click", ".remove_field", function(e) { //user click on remove text
e.preventDefault();
$(this).parent('div').parent('div').parent('div').parent('div').remove();
var final_total = 0;
var total_field = $("#total_amount");
$("[id^='amount_']").each(function() {
final_total += Number($(this).val());
});
total_field.val(final_total);
x--;
});
$('.select').select2({
placeholder: "-- <?php echo __('labs.select'); ?> --"
});
$('.table').DataTable({
"pageLength": 25,
});
$('#dates').change(function(e) {
if ($(this).val() === "custom_date_range") {
$("#sDate").show();
$("#eDate").show();
} else {
$("#eDate").hide();
$("#sDate").hide();
}
});
</script>
@endpush
@@ -0,0 +1,220 @@
@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/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" />
<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">{{ __('clinical_data.radiology_usages_report') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('clinical_data.home') }}</a></li>
<li class="active"><i class="fa fa-bank"></i> {{ __('clinical_data.radiology_usages_report') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-sm-2">
{{ Form::open(['route' => 'radiology.usages_report','data-toggle'=>'validator']) }}
<div class="form-group" id="searchby">
{{ Form::label('search_by', __('hmis_reports.date')) }}
{{ Form::select('search_by', ['0'=>__('hmis_reports.last_24_hours'),'1'=>__('hmis_reports.custom_date'),'2'=>__('hmis_reports.custom_range')], '', ['class' => 'form-control','id'=>'search_by', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-sm-2" style="display: none;" id="date_search">
<div class="form-group" id="reg_date" style="padding-top: 23px;">
<div class="input-group">
{{ Form::text('reg_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div class="col-sm-4" style="display: none;" id="date_range_search">
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('start_date', __('hmis_reports.from')) }}
<div class="input-group">
{{ Form::text('start_date','',['class' => 'form-control compulsory','readonly','id'=>'datepicker-autoclose-1']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group" id="reg_date">
{{ Form::label('end_date', __('hmis_reports.to')) }}
<div class="input-group">
{{ Form::text('end_date','',['class' => 'form-control compulsory','readonly','id'=>'datepicker-autoclose-2']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-2">
{{ Form::label('radiologies',__('clinical_data.radiologies')) }}
{{ Form::select('radiology_id', $radiologies_options,'',['class' => 'form-control', 'id' => 'radiologies_id']) }}
</div>
<div class="col-sm-2"><br>
{{ Form::submit(__('hmis_reports.search'),['name' => 'filterBtn','class' => 'btn btn-success']) }}
{{ Form::close() }}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading d-flex justify-content-between flex-wrap">
<span>{{ __('clinical_data.radiology_usages_report') }} {!! $search_string ?? $search_string !!}</span>
<div class="d-flex justify-content-between ">
@if (Auth::user()->can('radiologies-usage-listing'))
<a href="{{ route('radiology.usage_listing') }}" class=" btn btn-default ">
{{ __('clinical_data.radiology_usage') }}</a>
@endif
</div>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>{{ __('clinical_data.name') }}</th>
<th>{{ __('labs.quantity') }}</th>
<th>{{ __('labs.cost_value') }}</th>
<th>{{ __('labs.usage_period') }}</th>
<th>{{ __('labs.recorded_by') }}</th>
<th>{{ __('labs.recorded_on') }}</th>
</tr>
</thead>
<tbody>
@if(count($radiologies_usages))
@php $counter = 1; @endphp
@foreach($radiologies_usages as $result)
<tr>
<td>
{{ $counter }}.
</td>
<td>
{{ get_name($result->radiology_id, 'id', 'name', 'radiologies') }}
</td>
<td>
{{ $result->usage_quantity }}
</td>
<td>
{{ ugandan_shillings($result->usage_quantity_cost) }}
</td>
<td>
{{ streamline_date($result->start_date) }} to {{ streamline_date($result->end_date) }}
</td>
<td>
{{ get_full_name($result->created_by, 'id', 'first_name', 'last_name', 'users') }}
</td>
<td>
{{ streamline_date($result->created_at) }}
</td>
</tr>
@php $counter++; @endphp
@endforeach
@endif
</tbody>
<tfoot>
<tr>
<th>#</th>
<th>{{ __('clinical_data.name') }}</th>
<th>{{ __('labs.quantity') }}</th>
<th>{{ __('labs.cost') }}</th>
<th>{{ __('labs.usage_range') }}</th>
<th>{{ __('labs.recorded_by') }}</th>
<th>{{ __('labs.recorded_on') }}</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<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/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>
$('.select').select2({
placeholder: "-- <?php echo __('labs.select'); ?> --"
});
$('#radiologies_id').select2({
placeholder: "-- All radiologies --"
});
$('#search_by').change(function () {
if ($(this).val() == 1) {
$('#date_search').show();
$('#date_range_search').hide();
}
else if ($(this).val() == 2) {
$('#date_range_search').show();
$('#date_search').hide();
}
else {
$('#date_search,#date_range_search').hide();
}
});
$('#datepicker-autoclose,#datepicker-autoclose-1,#datepicker-autoclose-2').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy'
});
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 100,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
<script type="text/javascript">
jQuery('#datepicker-from, #datepicker-to').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy'
});
</script>
@endpush
@@ -0,0 +1,263 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
<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" />
<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">{{ __('clinical_data.requisition_for_radiologies') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('labs.dashboard') }}</a></li>
<li><a href="{{ url('radiology') }}">{{ __('clinical_data.radiologies') }}</a></li>
<li class="active">{{ __('clinical_data.requisition_for_radiologies') }}</li>
</ol>
</div>
</div>
@include('investigations::radiologies.menu')
@include('flash::message')
<div class="row">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-12">
<div class="panel">
<div class="panel-heading d-flex justify-content-between flex-wrap">
<span>{{ __('clinical_data.requisition_for_radiologies') }}</span>
<div class="d-flex justify-content-between ">
@if (Auth::user()->can('requisition-for-radiologies'))
<a href="{{ route('radiology.prev_requisition_for_radiology') }}" class="btn btn-default ">
{{ __('clinical_data.previous_requisition_radiologies') }}</a>
@endif
</div>
</div>
<div class="panel-body">
{{ Form::open(['route' => 'radiology.requisition_for_radiology_search', 'method' => 'ANY', 'role' => 'search']) }}
<div class="row">
<div class="col-md-6">
<div class="form-group" id="drug_names">
<input type="hidden" name="item_type" value="4">
{{ Form::select('items_ids[]',$labs,'',['id'=>'labs_ids', 'multiple'=>true, 'class' => 'form-control col-sm-8 labs_ids']) }}
</div>
</div>
<div class="col-md-6">
<button type="submit" class="btn btn-info"><span class="glyphicon glyphicon-search"></span> {{ __('labs.select_requisition_items') }}</button>
</div>
</div>
@if(isset($criteria) && isset($resultCount))
<p>
{{ __('labs.search_criteria') }} : <code>{{ $criteria }}</code> &nbsp;&nbsp;&nbsp;{{ __('labs.total_results') }} : <code>{{ $resultCount }}</code> &nbsp;&nbsp;&nbsp;<a href="{{ route('drugs.index') }}">{{ __('labs.clear_search') }}</a>
</p>
@endif
{{ Form::close() }}
{{ Form::open(['method' => 'post', 'route'=>'radiology.store_radiology_requisitions'])}}
<input type="hidden" name="item_type" value="4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-striped table-hover"">
<thead>
<tr>
<th style="width: 5%">#</th>
<th style="width: 15%">{{ __('labs.name') }}</th>
<th style="width: 20%">{{ __('pharmacy.store_stock') }}</th>
<th style="width: 20%">{{ __('clinical_data.imaging_stock') }}</th>
<th style="width: 20%">{{ __('labs.quantity_requested') }}</th>
</tr>
</thead>
<tbody>
@if(count($results) > 0)
@php $count = 0; @endphp
@foreach($results as $result)
@php $count++; @endphp
<tr>
<td>{{ $count }}</td>
<td>
{{ $result->name }}
<input type="hidden" name="drug_id[]" value="{{ $result->id }}">
</td>
<td>
@forelse($result->store_batches as $record)
<div class="row" style="background-color: #e1e1ef; border-radius: 5px 5px; border: 2px #c4b7b7 solid; margin-bottom: 2px; margin-right: 2px;">
<div class="col-sm-12" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.batch') }}: </b>{{ $record->batch_number }}
</div>
<div class="col-sm-12" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.quantity') }}: </b>{{ $record->store_stock }}<br>
<b>{{ __('stores.expiry_date') }}: </b>{{ streamline_date_plain($record->expiry_date) }}
</div>
</div>
@empty
@endforelse
Total Stock: {{ $result->total_store_stock }}
</td>
<td>
@forelse($result->lab_batches as $record)
<div class="row" style="background-color: #e1e1ef; border-radius: 5px 5px; border: 2px #c4b7b7 solid; margin-bottom: 2px;">
<div class="col-sm-12" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.batch') }}: </b>{{ $record->batch_number }}
</div>
<div class="col-sm-12" style="word-wrap: break-word; padding: 0px; font-size: 10px">
<b>{{ __('stores.quantity') }}: </b>{{ $record->lab_stock }}<br>
<b>{{ __('stores.expiry_date') }}: </b>{{ streamline_date_plain($record->expiry_date) }}
</div>
</div>
@empty
@endforelse
Total : {{ $result->total_lab_stock }}
</td>
<td>
<input type="number" name="quantity[]" min="0" class="form-control col-sm-12 compulsory">
</td>
</tr>
@endforeach
@else
<td colspan="3"><span style="color: red;">{{ __('labs.search_records') }}</span></td>
@endif
</tbody>
</table>
</div>
@if(count($results) > 0)
{{ Form::button(__('labs.complete_request'),['type'=>'submit','name'=>'complete_request','value'=>'1','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::close() }}
@endif
</div>
</div>
</div>
</div>
</div>
{{-- <div class="col-sm-4">
<div class="panel">
<div class="panel-heading">{{ __('clinical_data.previous_radiology_requisitions') }}</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{{ __('labs.requisition') }} #</th>
<th>{{ __('labs.quantity') }}</th>
<th>{{ __('labs.date_requested') }}</th>
<th>{{ __('labs.status') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@if(count($previous_requisitions_results) > 0)
@foreach($previous_requisitions_results as $result)
<tr>
<td># {{ sprintf('%04u', $result->id) }}</td>
<td>
<?php
$drug_id_explode = explode(",", $result->drug_id);
?>
{{ count($drug_id_explode) }} {{ __('labs.items') }}
</td>
<td>
{{ streamline_date($result->created_at) }}
</td>
<td>
@if($result->issue_status == 1)
<label class="label label-success">{{ __('labs.approved') }}</label>
@else
<label class="label label-danger">{{ __('labs.not_approved') }}</label>
@endif
</td>
<td>
<form name="bill_form" action="{{ url('previous_issued_items_details') }}" method="post">
{{ csrf_field() }}
<input type="hidden" name="requisition_id" value="{{ $result->id }}"/>
<input type="hidden" name="item_type" value="4">
<button type="submit" name="add_bill_button" class="btn btn-sm btn-rounded btn-info">
<i class="fa fa-info-circle"></i>
<span style="margin-left: 10px;">{{ __('labs.details') }}</span>
</button>
</form>
</td>
</tr>
@endforeach
@else
<td colspan="7"><span style="color: red;">{{ __('labs.search_records') }}</span></td>
@endif
</tbody>
<tfoot>
<tr>
<th>{{ __('labs.requisition') }} #</th>
<th>{{ __('labs.quantity') }}</th>
<th>{{ __('labs.date_requested') }}</th>
<th>{{ __('labs.status') }}</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div> --}}
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<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/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 src="{{ asset('elite/js/mask.js') }}"></script>
<!-- data time piker dependency -->
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<!-- -->
<script>
$('.labs_ids').select2({
placeholder: "Select"
});
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);
};
};
$('#datepicker-autoclose1,#datepicker-autoclose2').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd/mm/yyyy',
setDate: new Date(),
readOnly: true
});
$('.table').DataTable({
"pageLength": 25,
});
</script>
@endpush