mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
266 lines
12 KiB
PHP
Executable File
266 lines
12 KiB
PHP
Executable File
@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
|