mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
125 lines
6.4 KiB
PHP
Executable File
125 lines
6.4 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
@endpush
|
|
|
|
@section('content')
|
|
<div class="row bg-title">
|
|
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
|
<h4 class="page-title">{{ __('clinical_data.title_radiologies') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('clinical_data.dashboard') }}</a></li>
|
|
<li class="active">{{ __('clinical_data.radiologies') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('investigations::radiologies.menu')
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('flash::message')
|
|
<div class="white-box">
|
|
<div class="panel">
|
|
<div class="">
|
|
<div class=" ">
|
|
@if (Auth::user()->can('radiologies-create'))
|
|
{{-- ti-plus --}}
|
|
<a href="{{ route('radiology.create') }}" class="mr-2 btn btn-default ">
|
|
{{ __('clinical_data.add_radiology') }}</a>
|
|
<a href="{{ route('radiology_forms.create') }}" class="mr-2 btn btn-default ">
|
|
{{ __('clinical_data.add_rad_form') }}</a>
|
|
@endif
|
|
@if (Auth::user()->can('radiologies-delete'))
|
|
{{-- ti-trash --}}
|
|
<a href="{{ route('radiology.inactive') }}" class=" btn btn-danger ">
|
|
{{ __('clinical_data.inactive_radiologies') }}</a>
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('clinical_data.radiology') }}</th>
|
|
<th>{{ __('labs.cost_value') }}</th>
|
|
<th>{{ __('clinical_data.imaging_stock') }}</th>
|
|
<th>{{ __('clinical_data.store_stock') }}</th>
|
|
<th>{{ __('clinical_data.expense_account') }}</th>
|
|
<th>{{ __('clinical_data.payables_account') }}</th>
|
|
@if (Auth::user()->can('radiologies-edit'))
|
|
<th></th>
|
|
@endif
|
|
@if (Auth::user()->can('radiologies-delete'))
|
|
<th></th>
|
|
@endif
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($radiologies as $radiology)
|
|
<tr>
|
|
<td>{{ $radiology->name }}</td>
|
|
<td>{{ $radiology->cost_price }}</td>
|
|
<td>{{ $radiology->total_lab_stock }} @if ( get_name($radiology->form_id, 'id', 'name', 'general_forms') == "N/A") {{ null }} @else {{ get_name($radiology->form_id, 'id', 'name', 'general_forms') }} @endif</td>
|
|
<td>{{ $radiology->total_store_stock }} @if ( get_name($radiology->form_id, 'id', 'name', 'general_forms') == "N/A") {{ null }} @else {{ get_name($radiology->form_id, 'id', 'name', 'general_forms') }} @endif</td>
|
|
<td>{{ isset($accounts[$radiology->expenses_account_id]) ? $accounts[$radiology->expenses_account_id] : "" }}</td>
|
|
<td>{{ isset($accounts[$radiology->payables_account_id]) ? $accounts[$radiology->payables_account_id] : "" }}</td>
|
|
@if (Auth::user()->can('radiologies-edit'))
|
|
<td>
|
|
<a href="/radiology/{{ $radiology->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('clinical_data.edit') }}</a>
|
|
</td>
|
|
@endif
|
|
@if (Auth::user()->can('radiologies-delete'))
|
|
<td>
|
|
@if(empty($radiology->total_lab_stock)&& empty($radiology->total_store_stock))
|
|
{{ Form::model($radiology->id ,['method' => 'DELETE', 'route' => ['radiology.destroy', $radiology->id]]) }}
|
|
<button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('clinical_data.delete') }}</button>
|
|
{{ Form::close() }}
|
|
@elseif (!empty($radiology->total_lab_stock) || !empty($radiology->total_store_stock))
|
|
<b class="text-success">Still Stocked</b>
|
|
@endif
|
|
</td>
|
|
@endif
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
|
|
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
|
|
|
<script>
|
|
$('.table').DataTable({
|
|
dom: 'Bfrtip',
|
|
buttons: [
|
|
'copy', 'csv', 'pdf', 'print', 'excel'
|
|
]
|
|
});
|
|
</script>
|
|
@endpush
|