mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
resolved conflicts
This commit is contained in:
+144
@@ -0,0 +1,144 @@
|
||||
@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" />
|
||||
@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">{{ __('labs.create_multiple_labs') }}</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> {{ __('labs.home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('investigations::labs.menu')
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::open(['method'=>'POST', 'route'=>'labs.store_bulk']) }}
|
||||
|
||||
<div class="white-box" style="border-radius: 10px;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
{{-- <th>{{ __('labs.cost') }}</th>
|
||||
<th>{{ __('labs.insurance_status') }}</th>
|
||||
<th>{{ __('labs.non_insured_price') }}</th>
|
||||
<th>{{ __('labs.insured_price') }}</th>
|
||||
<th>{{ __('labs.income_account') }}</th> --}}
|
||||
<th>{{ __('labs.expense_account') }}</th>
|
||||
{{-- <th>{{ __('labs.stock') }}</th>--}}
|
||||
<th>{{ __('labs.reorder_level') }}</th>
|
||||
<th>{{ __('labs.description') }}</th>
|
||||
<th>{{ __('labs.form') }}</th>
|
||||
<th>{{ __('labs.unit') }}</th>
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th>
|
||||
<th>{{ __('labs.supplier') }}</th> --}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for($i = 0; $i < 25; $i++)
|
||||
<tr>
|
||||
<td><input name="name[]" class="form-control" type="text"></td>
|
||||
{{-- <td><input name="cost_price[]" class="form-control" type="number"></td>
|
||||
<td>
|
||||
<select name="chi_status[]" class="form-control">
|
||||
<option>- select -</option>
|
||||
<option value="1">{{ __('labs.yes') }}</option>
|
||||
<option value="0">{{ __('labs.no') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><input name="non_insured_price[]" class="form-control" type="number"></td>
|
||||
<td><input name="insured_price[]" class="form-control" type="number"></td>
|
||||
<td>
|
||||
{{ Form::select('chart_of_account[]', $chart_of_accounts, null, ['class'=>'form-control compulsory income_account']) }}
|
||||
</td> --}}
|
||||
<td>
|
||||
{{ Form::select('expenses_account_id[]', $expense_accounts, null, ['class'=>'form-control compulsory expense_account']) }}
|
||||
</td>
|
||||
{{-- <td><input name="stock[]" class="form-control" type="number"></td>--}}
|
||||
<td><input name="re_order_level[]" class="form-control" type="number"></td>
|
||||
<td><input name="description[]" class="form-control" type="text"></td>
|
||||
<th>
|
||||
<select name="form[]" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach($forms as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</th>
|
||||
<th>
|
||||
<select name="unit[]" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach($units_of_measure as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</th>
|
||||
{{-- <td><input name="expiry_date[]" class="form-control expiry_date" readonly type="text"></td>
|
||||
<th>
|
||||
<select name="supplier[]" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach($suppliers as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</th> --}}
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
{{-- <th>{{ __('labs.cost') }}</th>
|
||||
<th>{{ __('labs.insurance_status') }}</th>
|
||||
<th>{{ __('labs.non_insured_price') }}</th>
|
||||
<th>{{ __('labs.insured_price') }}</th>
|
||||
<th>{{ __('labs.income_account') }}</th> --}}
|
||||
<th>{{ __('labs.expense_account') }}</th>
|
||||
{{-- <th>{{ __('labs.stock') }}</th>
|
||||
<th>{{ __('labs.reorder_level') }}</th> --}}
|
||||
<th>{{ __('labs.description') }}</th>
|
||||
<th>{{ __('labs.form') }}</th>
|
||||
<th>{{ __('labs.unit') }}</th>
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th>
|
||||
<th>{{ __('labs.supplier') }}</th> --}}
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div class="form-group text-right">
|
||||
<input type="submit" class="btn btn-rounded btn-success">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script>
|
||||
$('.expiry_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+265
@@ -0,0 +1,265 @@
|
||||
@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" />
|
||||
<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;
|
||||
}
|
||||
|
||||
.white-box {
|
||||
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">{{ __('labs.edit_all_labs') }}</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> {{ __('labs.home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('investigations::labs.menu')
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['method' => 'POST', 'route' => 'labs.update_bulk']) }}
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
{{-- <th>{{ __('labs.cost') }}</th>
|
||||
<th>{{ __('labs.insurance_status') }}</th>
|
||||
<th>{{ __('labs.non_insured_price') }}</th>
|
||||
<th>{{ __('labs.insured_price') }}</th>
|
||||
<th>{{ __('labs.income_account') }}</th> --}}
|
||||
<th>{{ __('labs.expense_account') }}</th>
|
||||
{{-- <th>{{ __('labs.stock') }}</th>--}}
|
||||
<th>{{ __('labs.reorder_level') }}</th>
|
||||
<th>{{ __('labs.description') }}</th>
|
||||
<th>{{ __('labs.form') }}</th>
|
||||
<th>{{ __('labs.unit') }}</th>
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th>
|
||||
<th>{{ __('labs.supplier') }}</th> --}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($labs as $item)
|
||||
<tr>
|
||||
<input name="id[]" class="form-control" value="{{ $item->id }}" type="hidden">
|
||||
<td><input name="name[]" type="text" class="form-control"
|
||||
value="{{ $item->name }}"></td>
|
||||
{{-- <td><input name="cost_price[]" type="number" class="form-control"
|
||||
value="{{ $item->cost_price }}"></td>
|
||||
<td>
|
||||
<select name="chi_status[]" class="form-control">
|
||||
<option>- select -</option>
|
||||
<option value="1">{{ __('labs.yes') }}</option>
|
||||
<option value="0">{{ __('labs.no') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><input name="non_insured_price[]" class="form-control" type="number"
|
||||
value="{{ $item->non_insured_price }}"></td>
|
||||
<td><input name="insured_price[]" class="form-control" type="number"
|
||||
value="{{ $item->insured_price }}"></td> --}}
|
||||
{{-- <td>
|
||||
{{ Form::select('chart_of_account[]', $chart_of_accounts, $item->account_id, ['class' => 'form-control compulsory income_account', 'required']) }}
|
||||
</td> --}}
|
||||
<td>
|
||||
{{ Form::select('expenses_account_id[]', $expense_accounts, $item->expenses_account_id, ['class' => 'form-control compulsory expense_account', 'required']) }}
|
||||
</td>
|
||||
{{-- <td><input name="stock[]" type="number" class="form-control"
|
||||
value="{{ $item->store_stock }}"></td>--}}
|
||||
<td><input name="re_order_level[]" class="form-control" type="number" value="{{ $item->reorder_level }}"></td>
|
||||
<td><input name="description[]" type="text" class="form-control"
|
||||
value="{{ $item->description }}"></td>
|
||||
<th>
|
||||
{{ Form::select('form[]', $forms, $item->form_id, ['class' => 'form-control expenses_account']) }}
|
||||
|
||||
{{-- <select name="form[]" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
<option value="{{ get_name($item->form_id, 'id', 'id', 'drug_forms') }}">
|
||||
{{ get_name($item->form_id, 'id', 'name', 'drug_forms') }}</option>
|
||||
@foreach ($forms as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select> --}}
|
||||
</th>
|
||||
<th>
|
||||
{{ Form::select('unit[]', $units_of_measure, $item->unit_id, ['class' => 'form-control expenses_account']) }}
|
||||
{{-- <select name="unit[]" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach ($units_of_measure as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select> --}}
|
||||
</th>
|
||||
{{-- <td><input name="expiry_date[]" class="form-control expiry_date" readonly
|
||||
value="{{ $item->expiry_date }}" type="text"></td>
|
||||
<th>
|
||||
<select name="supplier[]" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
<option value="{{ get_name($item->supplier_id, 'id', 'id', 'suppliers') }}">
|
||||
{{ get_name($item->supplier_id, 'id', 'name', 'suppliers') }}</option>
|
||||
@foreach ($suppliers as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</th> --}}
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
{{-- <th>{{ __('labs.cost') }}</th>
|
||||
<th>{{ __('labs.insurance_status') }}</th>
|
||||
<th>{{ __('labs.non_insured_price') }}</th>
|
||||
<th>{{ __('labs.insured_price') }}</th>
|
||||
<th>{{ __('labs.income_account') }}</th> --}}
|
||||
<th>{{ __('labs.expense_account') }}</th>
|
||||
{{-- <th>{{ __('labs.stock') }}</th>
|
||||
<th>{{ __('labs.reorder_level') }}</th> --}}
|
||||
<th>{{ __('labs.description') }}</th>
|
||||
<th>{{ __('labs.form') }}</th>
|
||||
<th>{{ __('labs.unit') }}</th>
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th>
|
||||
<th>{{ __('labs.supplier') }}</th> --}}
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="form-group text-right">
|
||||
<input type="submit" class="btn btn-rounded btn-success">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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>
|
||||
$('.expiry_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
/* $('.expenses_account,.income_account').select2({
|
||||
placeholder: "-- Select --"
|
||||
}); */
|
||||
</script>
|
||||
@endpush
|
||||
+200
@@ -0,0 +1,200 @@
|
||||
@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">{{ __('labs.create') }}</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> {{ __('labs.home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('investigations::labs.menu')
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="table-responsive">
|
||||
{{ Form::open(['method'=>'post', 'method' => 'POST', 'route' => 'labs.store']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.name') }}</label>
|
||||
<input name="name" type="text" class="form-control compulsory" required>
|
||||
</div>
|
||||
</div>
|
||||
{{-- <div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.cost') }}</label>
|
||||
<input name="cost_price" class="form-control compulsory" required type="number">
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
{{-- <div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.insurance_status') }}</label>
|
||||
<select name="chi_status" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
<option value="1">{{ __('labs.yes') }}</option>
|
||||
<option value="0">{{ __('labs.no') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div> --}}
|
||||
{{-- <div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.non_insured_price') }}</label>
|
||||
<input name="non_insured_price" class="form-control" type="number">
|
||||
</div>
|
||||
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
{{-- <div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.insured_price') }}</label>
|
||||
<input name="insured_price" class="form-control" type="number">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.income_account') }}</label>
|
||||
{{ Form::select('chart_of_account', $chart_of_accounts, null, ['class'=>'form-control compulsory income_account', 'required']) }}
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
{{-- <div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.stock') }}</label>
|
||||
<input name="stock" class="form-control" type="number">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.reorder_level') }}</label>
|
||||
<input name="re_order_level" class="form-control" type="number">
|
||||
</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.description') }}</label>
|
||||
<textarea name="description" class="form-control" type="text"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.form') }}</label>
|
||||
<select name="form" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach($forms as $lab)
|
||||
<option value="{{ $lab->id }}">{{ $lab->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.unit') }}</label>
|
||||
<select name="unit" class="form-control compulsory" required >
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach($units as $lab)
|
||||
<option value="{{ $lab->id }}">{{ $lab->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('expenses_account_id', __('general_items.expense_account')) }}
|
||||
{{ Form::select('expenses_account_id', $expense_accounts, null, ['class' => 'form-control expenses_account', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-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-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.expiry_date') }}</label>
|
||||
<input name="expiry_date" id="expiry_date" readonly class="form-control compulsory" required value="{{ $lab->expiry_date }}" type="text">
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
{{-- <div class="col-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.supplier') }}</label>
|
||||
<select name="supplier" class="form-control compulsory" required >
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach($suppliers as $lab)
|
||||
<option value="{{ $lab->id }}">{{ $lab->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
|
||||
|
||||
<div class="col-6">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group text-right">
|
||||
<input type="submit" class="btn btn-rounded btn-success">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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>
|
||||
$('#expiry_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
$('.expenses_account,.income_account').select2({
|
||||
placeholder: "-- Select --"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+287
@@ -0,0 +1,287 @@
|
||||
@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">Dashboard</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> Home</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="r-icon-stats">
|
||||
<i class="ti-user bg-megna"></i>
|
||||
<div class="bodystate">
|
||||
<h1 style="font-size: 54px;">{{ count($total_investigations) }}</h1>
|
||||
<span class="text-muted">Total Investigations</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="r-icon-stats">
|
||||
<i class="ti-user bg-warning"></i>
|
||||
<div class="bodystate">
|
||||
<h1 style="font-size: 54px;">{{ count($total_pending_investigations) }}</h1>
|
||||
<span class="text-muted">Pending Investigations</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="r-icon-stats">
|
||||
<i class="ti-user bg-success"></i>
|
||||
<div class="bodystate">
|
||||
<h1 style="font-size: 54px;">{{ count($total_paid_investigations) }}</h1>
|
||||
<span class="text-muted">Paid Investigations</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="r-icon-stats">
|
||||
<i class="ti-user bg-danger"></i>
|
||||
<div class="bodystate">
|
||||
<h1 style="font-size: 54px;">{{ count($total_unpaid_investigations) }}</h1>
|
||||
<span class="text-muted">Unpaid Investigations</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<h3 class="box-title m-b-0">New Patient List</h3>
|
||||
<p class="text-muted">this is the sample data here for crm</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Username</th>
|
||||
<th>Diseases</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Deshmukh</td>
|
||||
<td>Prohaska</td>
|
||||
<td>@Genelia</td>
|
||||
<td><span class="label label-danger">Fever</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Deshmukh</td>
|
||||
<td>Gaylord</td>
|
||||
<td>@Ritesh</td>
|
||||
<td><span class="label label-info">Cancer</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Sanghani</td>
|
||||
<td>Gusikowski</td>
|
||||
<td>@Govinda</td>
|
||||
<td><span class="label label-warning">Lakva</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>Roshan</td>
|
||||
<td>Rogahn</td>
|
||||
<td>@Hritik</td>
|
||||
<td><span class="label label-success">Dental</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>Joshi</td>
|
||||
<td>Hickle</td>
|
||||
<td>@Maruti</td>
|
||||
<td><span class="label label-info">Cancer</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6</td>
|
||||
<td>Nigam</td>
|
||||
<td>Eichmann</td>
|
||||
<td>@Sonu</td>
|
||||
<td><span class="label label-success">Dental</span> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
number of finished investigations
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
number of finished investigations
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
graph
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<h3 class="box-title m-b-0">New Patient List</h3>
|
||||
<p class="text-muted">this is the sample data here for crm</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Username</th>
|
||||
<th>Diseases</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Deshmukh</td>
|
||||
<td>Prohaska</td>
|
||||
<td>@Genelia</td>
|
||||
<td><span class="label label-danger">Fever</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Deshmukh</td>
|
||||
<td>Gaylord</td>
|
||||
<td>@Ritesh</td>
|
||||
<td><span class="label label-info">Cancer</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Sanghani</td>
|
||||
<td>Gusikowski</td>
|
||||
<td>@Govinda</td>
|
||||
<td><span class="label label-warning">Lakva</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>Roshan</td>
|
||||
<td>Rogahn</td>
|
||||
<td>@Hritik</td>
|
||||
<td><span class="label label-success">Dental</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>Joshi</td>
|
||||
<td>Hickle</td>
|
||||
<td>@Maruti</td>
|
||||
<td><span class="label label-info">Cancer</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6</td>
|
||||
<td>Nigam</td>
|
||||
<td>Eichmann</td>
|
||||
<td>@Sonu</td>
|
||||
<td><span class="label label-success">Dental</span> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<h3 class="box-title m-b-0">New Patient List</h3>
|
||||
<p class="text-muted">this is the sample data here for crm</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Username</th>
|
||||
<th>Diseases</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Deshmukh</td>
|
||||
<td>Prohaska</td>
|
||||
<td>@Genelia</td>
|
||||
<td><span class="label label-danger">Fever</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Deshmukh</td>
|
||||
<td>Gaylord</td>
|
||||
<td>@Ritesh</td>
|
||||
<td><span class="label label-info">Cancer</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Sanghani</td>
|
||||
<td>Gusikowski</td>
|
||||
<td>@Govinda</td>
|
||||
<td><span class="label label-warning">Lakva</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>Roshan</td>
|
||||
<td>Rogahn</td>
|
||||
<td>@Hritik</td>
|
||||
<td><span class="label label-success">Dental</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>Joshi</td>
|
||||
<td>Hickle</td>
|
||||
<td>@Maruti</td>
|
||||
<td><span class="label label-info">Cancer</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6</td>
|
||||
<td>Nigam</td>
|
||||
<td>Eichmann</td>
|
||||
<td>@Sonu</td>
|
||||
<td><span class="label label-success">Dental</span> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
graph
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
@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">{{ __('labs.labs') }}</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> {{ __('labs.home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('investigations::labs.menu')
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
{{ Form::open(['method' => 'post', 'method' => 'PUT', 'route' => ['labs.update', $lab]]) }}
|
||||
<div class="form-group">
|
||||
<input name="id" value="{{ $lab->id }}" type="hidden">
|
||||
|
||||
<label>{{ __('labs.name') }}</label>
|
||||
<input name="name" type="text" class="form-control" value="{{ $lab->name }}">
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.cost') }}</label>
|
||||
<input name="cost_price" class="form-control" type="number" value="{{ $lab->cost_price }}">
|
||||
</div> --}}
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.insurance_status') }}</label>
|
||||
<select name="chi_status" class="form-control">
|
||||
<option>- select -</option>
|
||||
<option value="1">{{ __('labs.yes') }}</option>
|
||||
<option value="0">{{ __('labs.no') }}</option>
|
||||
</select>
|
||||
</div> --}}
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.non_insured_price') }}</label>
|
||||
<input name="non_insured_price" class="form-control" type="number"
|
||||
value="{{ $lab->non_insured_price }}">
|
||||
</div> --}}
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.insured_price') }}</label>
|
||||
<input name="insured_price" class="form-control" type="number" value="{{ $lab->insured_price }}">
|
||||
</div> --}}
|
||||
{{--
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.chart_of_account') }}</label>
|
||||
{{ Form::select('chart_of_account', $chart_of_accounts, $lab->account_id, ['class' => 'form-control compulsory income_account', 'required']) }}
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('expenses_account_id', __('general_items.expense_account')) }}
|
||||
{{ Form::select('expenses_account_id', $expense_accounts, $lab->expenses_account_id, ['class' => 'form-control expenses_account', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.stock') }}</label>
|
||||
<input name="stock" type="number" class="form-control" value="{{ $lab->store_stock }}">
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.reorder_level') }}</label>
|
||||
<input name="re_order_level" type="number" class="form-control" value="{{ $lab->reorder_level }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ __('labs.description') }}</label>
|
||||
<input name="description" type="text" class="form-control" value="{{ $lab->description }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('unit_id', __('labs.form')) }}
|
||||
{{ Form::select('form', $forms, $lab->form_id, ['class' => 'form-control expenses_account']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
{{-- <select name="form" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
<option value="{{ get_name($lab->form_id, 'id', 'id', 'drug_forms') }}">
|
||||
{{ get_name($lab->form_id, 'id', 'name', 'drug_forms') }}</option>
|
||||
@foreach ($forms as $lab)
|
||||
<option value="{{ $lab->id }}">{{ $lab->name }}</option>
|
||||
@endforeach
|
||||
</select> --}}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('unit_id', __('labs.unit')) }}
|
||||
{{ Form::select('unit', $units, $lab->unit_id, ['class' => 'form-control expenses_account']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.expiry_date') }}</label>
|
||||
<input name="expiry_date" id="expiry_date" class="form-control" readonly
|
||||
value="{{ $lab->expiry_date }}" type="text">
|
||||
</div> --}}
|
||||
|
||||
{{-- <div class="form-group">
|
||||
<label>{{ __('labs.supplier') }}</label>
|
||||
<select name="supplier" class="form-control">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
<option value="{{ get_name($lab->supplier_id, 'id', 'id', 'suppliers') }}">
|
||||
{{ get_name($lab->supplier_id, 'id', 'name', 'suppliers') }}</option>
|
||||
@foreach ($suppliers as $lab)
|
||||
<option value="{{ $lab->id }}">{{ $lab->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group text-right">
|
||||
<input class="btn btn-success btn-rounded" type="submit">
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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>
|
||||
$('#expiry_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
|
||||
$('.expenses_account,.income_account').select2({
|
||||
placeholder: "-- Select --"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
@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">{{ __('labs.labs') }}</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> {{ __('labs.home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('investigations::labs.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
<th>{{ __('labs.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
<th>{{ __('labs.action') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach ($labs as $item)
|
||||
<tr>
|
||||
<td>{{ $item->name }}</td>
|
||||
<td>
|
||||
{{ Form::model($item->id, ['method' => 'POST', 'route' => ['labs.activate', $item->id]]) }}
|
||||
<button type="submit" class="btn btn-warning"
|
||||
onclick="return confirm('<?php echo __('labs.are_you_sure'); ?>')"><i class="fa fa-check"></i>
|
||||
{{ __('labs.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
|
||||
+288
@@ -0,0 +1,288 @@
|
||||
@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">{{ __('labs.labs') }}</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> {{ __('labs.home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('investigations::labs.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="panel">
|
||||
<div class="">
|
||||
{{-- <span>{{ __('clinical_data.lab_usages_report') }} </span> --}}
|
||||
<div class="">
|
||||
@if (Auth::user()->can('labs-create'))
|
||||
<a href="{{ route('labs.create') }}" class="mr-2 nav-item btn btn-default{{ url()->current() == route('labs.create') ? ' active-box ' : '' }} my-1">{{ __('labs.add_lab') }}</a>
|
||||
<a href="{{ route('lab_forms.create') }}" class="mr-2 nav-item btn btn-default{{ url()->current() == route('lab_forms.create') ? ' active-box ' : '' }} my-1">{{ __('labs.add_lab_form') }}</a>
|
||||
@endif
|
||||
@if (Auth::user()->can('labs-bulk-create'))
|
||||
<a href="{{ route('labs.add_bulk') }}" class="mr-2 nav-item btn btn-default{{ url()->current() == route('labs.add_bulk') ? ' active-box ' : '' }} my-1">{{ __('labs.add_multiple_labs') }}</a>
|
||||
@endif
|
||||
@if (Auth::user()->can('labs-delete'))
|
||||
<a href="{{ route('labs.inactive') }}" class=" btn nav-item btn-danger{{ url()->current() == route('labs.inactive') ? ' active-box' : '' }} my-1">{{ __('labs.inactive_labs') }}</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>#</th> --}}
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
{{-- <th>{{ __('labs.cost') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.insurance_status') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.non_insured_price') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.insured_price') }}</th> --}}
|
||||
<th>{{ __('labs.lab_stock') }}</th>
|
||||
<th>{{ __('labs.store_stock') }}</th>
|
||||
{{-- <th>{{ __('labs.current_batch') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th> --}}
|
||||
<th>{{ __('labs.expense_account') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($labs as $item)
|
||||
<tr class="show-on-hover-sec">
|
||||
{{-- <td><input type="checkbox" class="delete_ids" name="id[]"
|
||||
value="{{ $item->id }}"></td> --}}
|
||||
<td class="position-relative">
|
||||
{{ $item->name }}
|
||||
{{-- <div class="show-on-hover-none d-flex justify-content-start gap-2 right-0 position-absolute pull-right"
|
||||
style="z-index: 5">
|
||||
<a href="{{ route('labs.edit', $item->id) }}"
|
||||
class="btn btn-rounded btn-warning text-content-edit btn-sm"><i
|
||||
class="fa fa-pencil"></i>
|
||||
</a>
|
||||
{{ Form::model($item->id, ['method' => 'DELETE', 'route' => ['labs.destroy', $item->id]]) }}
|
||||
<button onclick="return confirm('<?php echo __('labs.are_you_sure'); ?>')"
|
||||
class="btn btn-rounded btn-danger text-content-delete btn-sm"><i
|
||||
class="fa fa-trash"></i>
|
||||
</button>
|
||||
{{ Form::close() }}
|
||||
</div> --}}
|
||||
</td>
|
||||
<td>{{ $item->total_lab_stock }} @if (get_name($item->form_id, 'id', 'name', 'lab_forms') != 'N/A') {{ get_name($item->form_id, 'id', 'name', 'lab_forms') }} @else {{ null }}@endif</td>
|
||||
<td>{{ $item->total_store_stock }} @if (get_name($item->form_id, 'id', 'name', 'lab_forms') != 'N/A'){{ get_name($item->form_id, 'id', 'name', 'lab_forms') }}@else {{ null }}@endif</td>
|
||||
|
||||
<td>{{ get_name($item->expenses_account_id, 'id', 'name', 'chart_of_accounts') }}</td>
|
||||
|
||||
<td>
|
||||
<a href="{{ route('labs.edit', $item->id) }}" class="btn btn-rounded btn-warning">
|
||||
<i class="fa fa-pencil"></i>
|
||||
{{ __('labs.edit') }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@if(empty($item->total_stock)&& empty($item->store_stock))
|
||||
{{ Form::model($item->id, ['method' => 'DELETE', 'route' => ['labs.destroy', $item->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-danger"
|
||||
onclick="return confirm('')"><i class="fa fa-trash"></i>
|
||||
<span style="margin-left: 10px;">{{ __('labs.delete') }}</span>
|
||||
</button>
|
||||
{{ Form::close() }}
|
||||
@elseif (!empty($item->total_stock) || !empty($item->store_stock))
|
||||
<b class="text-success">Still Stocked</b>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
{{-- <th>#</th> --}}
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
{{-- <th>{{ __('labs.cost') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.insurance_status') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.non_insured_price') }}</th>
|
||||
<th>{{ __('labs.insured_price') }}</th> --}}
|
||||
<th>{{ __('labs.lab_stock') }}</th>
|
||||
<th>{{ __('labs.store_stock') }}</th>
|
||||
{{-- <th>{{ __('labs.current_batch') }}</th> --}}
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th> --}}
|
||||
<th>{{ __('labs.expense_account') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
{{-- <button onclick="delete_multiple()"
|
||||
class="btn btn btn-danger">{{ __('labs.delete_multiple_labs') }}</button>
|
||||
<a href="{{ route('labs.clear_stock') }}"
|
||||
class="nav-item btn btn-danger">{{ __('labs.clear_stock') }}</a> --}}
|
||||
</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, 'asc']
|
||||
],
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
],
|
||||
'pageLength': 50,
|
||||
});
|
||||
|
||||
function delete_multiple() {
|
||||
var val = [];
|
||||
$(':checkbox:checked').each(function(i) {
|
||||
val[i] = $(this).val();
|
||||
});
|
||||
|
||||
if (val.length === 0) {
|
||||
alert('<?php echo __('labs.select_lab_to_delete'); ?>');
|
||||
} else {
|
||||
var confirmed = confirm('<?php echo __('labs.sure_to_delete'); ?>');
|
||||
if (confirmed == true) {
|
||||
$.ajax({
|
||||
url: '/labs/delete_bulk',
|
||||
type: 'DELETE',
|
||||
data: {
|
||||
'ids': val
|
||||
},
|
||||
_token: '{{ csrf_token() }}',
|
||||
success: function(response) {
|
||||
location.reload();
|
||||
},
|
||||
error: function(error) {
|
||||
alert('<?php echo __('labs.error_deleting_labs'); ?>')
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+390
@@ -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" />
|
||||
<style>
|
||||
.white-box {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.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">{{ __('labs.labs_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> {{ __('labs.home') }}</a></li>
|
||||
<li class="active"><i class="fa fa-bank"></i> {{ __('labs.labs_usage') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('investigations::labs.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
@include('flash::message')
|
||||
{{ Form::open(['route' => 'labs.usage', 'data-toggle' => 'validator', 'method' => 'POST']) }}
|
||||
<div class="row">
|
||||
<div class="col-md">
|
||||
<div class="panel">
|
||||
<div class="panel-heading d-flex justify-content-between flex-wrap">
|
||||
<span>{{ __('labs.lab_item_usage') }} </span>
|
||||
<div class="d-flex justify-content-between ">
|
||||
@if (Auth::user()->can('labs-report-usage'))
|
||||
<a href="{{ route('labs.usages_report') }}" class=" btn btn-default my-1">{{ __('clinical_data.labs_usages_report') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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><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">
|
||||
<h3><b></b></h3>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
@php
|
||||
$options = "<option value=''>--" . __('labs.select') . '--</option>';
|
||||
foreach ($labs 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-3">
|
||||
<div class=" control-group">
|
||||
<label class="control-label" for="item">{{ __('labs.lab_item') }} :</label>
|
||||
<div class="form-group">
|
||||
<select name='labItem[]' id='lab-item_0' class="form-control calculate select">
|
||||
<option>- {{ __('labs.select') }} -</option>
|
||||
@foreach ($labs 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 ($labs 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-md-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>
|
||||
@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: '/labs/get/quantity',
|
||||
data: {
|
||||
'id': lab_item,
|
||||
_token: '{{ csrf_token() }}',
|
||||
},
|
||||
success: function(response) {
|
||||
available_qty.val(response['laboratory_stock']);
|
||||
cost.val(response['cost_price'])
|
||||
|
||||
var required_qty = $('#required-qty_' + i);
|
||||
if (response['laboratory_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-3'>\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-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-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-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-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\
|
||||
<!--<a href='#' class='label label-success add_item' style='color: white'><i class='fa fa-plus'></i></a>-->\n\
|
||||
<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
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
@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" />
|
||||
<style>
|
||||
.active-box {
|
||||
font-weight: bold;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.white-box {
|
||||
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.lab_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.lab_usages_report') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('investigations::labs.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
{{ Form::open(['route' => 'labs.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('labs', __('clinical_data.labs')) }}
|
||||
{{ Form::select('lab_id', $labs_options, '', ['class' => 'form-control', 'id' => 'labs_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="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel">
|
||||
<div class="panel-heading px-0 d-flex justify-content-between flex-wrap">
|
||||
<span>{{ __('clinical_data.lab_usages_report') }}
|
||||
{!! $search_string ?? $search_string !!}</span>
|
||||
<div class="d-flex justify-content-between ">
|
||||
@if (Auth::user()->can('labs-usage-listing'))
|
||||
<a href="{{ route('labs.usage.listing') }}" class="btn btn-default my-1">{{ __('labs.lab_usage') }}</a>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body px-0">
|
||||
<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_on') }}</th>
|
||||
<th>{{ __('labs.recorded_by') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($labs_usages))
|
||||
@php $counter = 1; @endphp
|
||||
@foreach ($labs_usages as $result)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $counter }}.
|
||||
</td>
|
||||
<td>
|
||||
{{ get_name($result->lab_id, 'id', 'name', 'labs') }}
|
||||
</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>
|
||||
{{ streamline_date($result->created_at) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ get_full_name($result->created_by, 'id', 'first_name', 'last_name', 'users') }}
|
||||
</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_period') }}</th>
|
||||
<th>{{ __('labs.recorded_on') }}</th>
|
||||
<th>{{ __('labs.recorded_by') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{--
|
||||
<div class="col-md-4 d-none">
|
||||
<div class="panel">
|
||||
<div class="panel-heading">{{ __('clinical_data.lab_stock') }}</div>
|
||||
<div class="panel-body">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('clinical_data.name') }}</th>
|
||||
<th>{{ __('labs.store_stock') }}</th>
|
||||
<th>{{ __('clinical_data.lab_stock') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($labs as $item)
|
||||
<tr>
|
||||
<td>{{ $item->name }}</td>
|
||||
<td>{{ $item->store_stock }}</td>
|
||||
<td>{{ $item->pharmacy_stock }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('clinical_data.name') }}</th>
|
||||
<th>{{ __('labs.store_stock') }}</th>
|
||||
<th>{{ __('clinical_data.lab_stock') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</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'); ?> --"
|
||||
});
|
||||
|
||||
$('#labs_id').select2({
|
||||
placeholder: "-- All labs --"
|
||||
});
|
||||
|
||||
$('#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
|
||||
+266
@@ -0,0 +1,266 @@
|
||||
@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">{{ __('labs.lab_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 class="active">{{ __('labs.lab_stock_sheet') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('investigations::labs.menu')
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<form action="{{ url('update_laboratory_stock_sheet') }}" method="POST" name="stock_form" id="stock_form">
|
||||
{{ csrf_field() }}
|
||||
<div class="row">
|
||||
@if(Auth::user()->can('edit-labs-stock-sheet'))
|
||||
<div class="col-sm-1 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>
|
||||
<input type="submit" value="Save stock" class="btn btn-rounded btn-success" id="save_stock"
|
||||
style="display: none;">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-sm-12">
|
||||
{{ csrf_field() }}
|
||||
<div class="table-responsive">
|
||||
<table class="table success-table table-sm table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('labs.name') }}</th>
|
||||
@if(track_items_using_batches())
|
||||
<th>{{ __('stores.batch_details') }}</th>
|
||||
@endif
|
||||
<th>{{ __('labs.lab_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>{{ __('labs.lab_stock') }}</th>
|
||||
<th>{{ __('labs.cost') }}</th>
|
||||
<th>{{ __('labs.sale_value') }}</th>
|
||||
{{-- <th>{{ __('labs.expiry_date') }}</th> --}}
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach ($labs 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="shown_input">
|
||||
<!-- kk -->
|
||||
</div>
|
||||
<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="shown_input">
|
||||
|
||||
</div>
|
||||
<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="shown_input">
|
||||
<b>{{ __('stores.expiry_date') }}:</b> <span>{{ $record->expiry_date }}</span>
|
||||
</div> --}}
|
||||
<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="border: 2px solid #cbd1da">
|
||||
<div class="col-sm-12" style="padding: 0px;">
|
||||
{{ Form::hidden('item_batch_watcher_id[]', 0) }}
|
||||
{{ Form::hidden('batch_drug_id[]', 0) }}
|
||||
{{ Form::hidden('batch_item_id[]', 0) }}
|
||||
|
||||
<div class="shown_input">
|
||||
<!-- kk -->
|
||||
</div>
|
||||
<div class="hidden_input" style="display: none;">
|
||||
{{ Form::text('batch_number[]', '', ['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="shown_input">
|
||||
<!-- kk -->
|
||||
</div>
|
||||
<div class="hidden_input" style="display: none;">
|
||||
<input type="number" name="batch_quantity_balance[]" class="form-control col-md-12 new_batch_qty new_batch_quantity_balance_{{ $lab->id }}" placeholder="Quantity">
|
||||
</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[]" autocomplete="off" placeholder="Expiry date" class="form-control col-md-12 expiry_date_input">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</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 hidden_input" 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->laboratory_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->laboratory_stock }} @endif">
|
||||
</div>
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($lab->item_cost_value) }}</td>
|
||||
<td>{{ ugandan_shillings($lab->non_insured_price * $lab->total_stock) }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@if(Auth::user()->can('edit-labs-stock-sheet'))
|
||||
<div class="col-sm-1 mb-3">
|
||||
<div style="margin-top: 10%;">
|
||||
<input type="submit" value="Save stock" class="btn btn-rounded btn-success" id="save_stock"
|
||||
style="display: none;">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</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,#cancel_stock .show_on_edit').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
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
@if (Auth::user()->can('lab-management'))
|
||||
<a href="{{ route('labs.index') }}" class="nav-item btn btn-success{{ url()->current() == route('labs.index') ? ' active-box ' : '' }} my-1">{{ __('labs.view_all_labs') }}</a>
|
||||
<a href="{{ route('lab_forms.index') }}" class="nav-item btn btn-success{{ url()->current() == route('lab_forms.index') ? ' active-box ' : '' }} my-1">{{ __('labs.view_lab_form') }}</a>
|
||||
@endif
|
||||
|
||||
{{-- @if (Auth::user()->can('labs-create'))
|
||||
<a href="{{ route('labs.create') }}" class="nav-item btn btn-success{{ url()->current() == route('labs.create') ? ' active-box ' : '' }} my-1">{{ __('labs.add_lab') }}</a>
|
||||
<a href="{{ route('lab_forms.create') }}" class="nav-item btn btn-success{{ url()->current() == route('lab_forms.create') ? ' active-box ' : '' }} my-1">{{ __('labs.add_lab_form') }}</a>
|
||||
@endif --}}
|
||||
|
||||
@if (Auth::user()->can('labs-usage-listing'))
|
||||
<a href="{{ route('labs.usage.listing') }}" class="nav-item btn btn-success{{ url()->current() == route('labs.usage.listing') ? ' active-box ' : '' }} my-1">{{ __('labs.lab_usage') }}</a>
|
||||
@endif
|
||||
@if (Auth::user()->can('requisition-for-labs'))
|
||||
<a href="{{ route('labs.requisition_for_labs') }}" class="nav-item btn btn-success{{ url()->current() == route('labs.requisition_for_labs') ? ' active-box ' : '' }} my-1">{{ __('labs.requisition_for_labs') }}</a>
|
||||
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('labs-stock-sheet'))
|
||||
<a href="{{ route('labs.labs_stock_sheet') }}" class="nav-item btn btn-success{{ url()->current() == route('labs.labs_stock_sheet') ? ' active-box ' : '' }} my-1">{{ __('labs.labs_stock_sheet') }}</a>
|
||||
@endif
|
||||
@if (Auth::user()->can('labs-bulk-edit'))
|
||||
<a href="{{ route('labs.edit_bulk') }}" class="nav-item btn btn-success{{ url()->current() == route('labs.edit_bulk') ? ' active-box ' : '' }} my-1">{{ __('labs.edit_all_labs') }}</a>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
@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" />
|
||||
<style>
|
||||
.active-box {
|
||||
font-weight: bold;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.joined-btn {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.joined-btn a:first-child {
|
||||
border-radius: 5px 0 0 5px;
|
||||
}
|
||||
|
||||
.joined-btn a:last-child {
|
||||
border-radius: 0 5px 5px 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">{{ __('labs.requisition_for_labs') }}</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('labs') }}">{{ __('labs.labs') }}</a></li>
|
||||
<li><a href="{{ url('requisition_for_labs') }}">{{ __('labs.requisition_for_labs') }}</a></li>
|
||||
<li class="active">{{ __('Previous Lab Items Requisitions') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('investigations::labs.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
{{ Form::open(['route' => 'labs.prev_requisition_for_labs', '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="panel panel-default" style="border-radius: 5px">
|
||||
<div class="row">
|
||||
<div class="col-md">
|
||||
<div class="panel">
|
||||
<div class="panel-heading d-flex justify-content-between flex-wrap">
|
||||
<span>{{ __('labs.previous_lab_requisitions') }} {!! $data['search_string'] ?? $data['search_string'] !!} </span>
|
||||
<div class="d-flex justify-content-between ">
|
||||
@if (Auth::user()->can('requisition-for-labs'))
|
||||
<a href="{{ url('requisition_for_labs') }}" class="btn btn-default">
|
||||
{{ __('labs.requisition_for_labs') }}
|
||||
</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 ($data['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="5">
|
||||
<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
|
||||
{{-- <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="5">
|
||||
<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>
|
||||
@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,
|
||||
});
|
||||
|
||||
$('#dates').change(function(e) {
|
||||
if ($(this).val() === "custom_date_range") {
|
||||
$("#sDate").show();
|
||||
$("#eDate").show();
|
||||
} else {
|
||||
$("#eDate").hide();
|
||||
$("#sDate").hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+228
@@ -0,0 +1,228 @@
|
||||
@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" />
|
||||
<style>
|
||||
.active-box {
|
||||
font-weight: bold;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.joined-btn {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.joined-btn a:first-child {
|
||||
border-radius: 5px 0 0 5px;
|
||||
}
|
||||
|
||||
.joined-btn a:last-child {
|
||||
border-radius: 0 5px 5px 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">{{ __('labs.requisition_for_labs') }}</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('labs') }}">{{ __('labs.labs') }}</a></li>
|
||||
<li class="active">{{ __('labs.requisition_for_labs') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('investigations::labs.menu')
|
||||
|
||||
@include('flash::message')
|
||||
<div class="panel panel-default" style="border-radius: 5px">
|
||||
<div class="row">
|
||||
<div class="col-md">
|
||||
<div class="panel">
|
||||
<div class="panel-heading d-flex justify-content-between flex-wrap">
|
||||
<span>{{ __('labs.requisition_for_labs') }}</span>
|
||||
<div class="d-flex justify-content-between ">
|
||||
{{-- <a href="{{ url('requisition_for_labs') }}" class="btn btn-sm btn-info disabled">
|
||||
{{ __('labs.requisition_for_labs') }}
|
||||
</a> --}}
|
||||
@if (Auth::user()->can('requisition-for-labs'))
|
||||
<a href="{{ route('labs.prev_requisition_for_labs') }}" class="btn btn-default">
|
||||
{{ __('labs.previous_lab_requisitions') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'labs.requisition_for_labs_search', 'method' => 'ANY', 'role' => 'search']) }}
|
||||
<div class="row justify-content-start align-items-center mb-4">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group my-auto" id="drug_names">
|
||||
<input type="hidden" name="item_type" value="5" class="w-100">
|
||||
{{ Form::select('items_ids[]', $labs, '', ['id' => 'labs_ids', 'multiple' => true, 'class' => 'form-control col-sm-6 labs_ids']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<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>
|
||||
{{ __('labs.total_results') }} : <code>{{ $resultCount }}</code>
|
||||
<a href="{{ route('drugs.index') }}">{{ __('labs.clear_search') }}</a>
|
||||
</p>
|
||||
@endif
|
||||
{{ Form::close() }}
|
||||
|
||||
{{ Form::open(['method' => 'post', 'route' => 'labs.store_lab_requisitions']) }}
|
||||
<input type="hidden" name="item_type" value="5">
|
||||
<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: 25%">{{ __('labs.name') }}</th>
|
||||
<th style="width: 20%">{{ __('pharmacy.store_stock') }}</th>
|
||||
<th style="width: 20%">{{ __('labs.lab_stock') }}</th>
|
||||
<th style="width: 30%">{{ __('labs.quantity_requested') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (isset($results) && count($results) > 0)
|
||||
@php $count = 0; @endphp
|
||||
@foreach ($results as $result)
|
||||
@php
|
||||
$count++;
|
||||
$lab_store_stock = $lab_stock = 0;
|
||||
$store_batch_records =track_batch_stock(5,$result->id,'store_stock');
|
||||
$lab_batch_records =track_batch_stock(5,$result->id,'lab_stock');
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $count }}</td>
|
||||
<td>
|
||||
{{ $result->name }}
|
||||
<input type="hidden" name="drug_id[]" value="{{ $result->id }}">
|
||||
</td>
|
||||
<td>
|
||||
@forelse($store_batch_records 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>
|
||||
@php
|
||||
$lab_store_stock += $record->store_stock;
|
||||
@endphp
|
||||
<b>{{ __('stores.expiry_date') }}: </b>{{ streamline_date_plain($record->expiry_date) }}
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
@endforelse
|
||||
Total Stock: {{ $lab_store_stock }}
|
||||
</td>
|
||||
<td>
|
||||
@forelse($lab_batch_records 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>
|
||||
@php
|
||||
$lab_stock += $record->lab_stock;
|
||||
@endphp
|
||||
<b>{{ __('stores.expiry_date') }}: </b>{{ streamline_date_plain($record->expiry_date) }}
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
@endforelse
|
||||
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>
|
||||
|
||||
@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
|
||||
Reference in New Issue
Block a user