mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
107 lines
4.6 KiB
PHP
107 lines
4.6 KiB
PHP
@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 type="text/css">
|
|
.color-bordered-table.success-bordered-table {
|
|
border-top: 0px;
|
|
}
|
|
</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">{{ __('risks.risk') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('risks.dashboard') }}</a></li>
|
|
<li><a href="{{ route('risks.index') }}">{{ __('risks.risk') }}</a></li>
|
|
<li class="active">{{ __('risks.inactive') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
@include('insurance::risks.menu')
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('flash::message')
|
|
<div class="white-box">
|
|
<div class="table-responsive">
|
|
<table class="table color-bordered-table success-bordered-table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{ __('risks.risk_name') }}</th>
|
|
<th>{{ __('risks.risk_code') }}</th>
|
|
<th>{{ __('risks.risk_factor') }}</th>
|
|
<th>{{ __('risks.risk_amount') }}</th>
|
|
<th>{{ __('risks.creator') }}</th>
|
|
<th>{{ __('risks.date') }}</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php $counter = 1; @endphp
|
|
@foreach($risks as $risk)
|
|
<tr>
|
|
<td>{{ $counter }}</td>
|
|
<td>{{ $risk->name }}</td>
|
|
<td>{{ $risk->code }}</td>
|
|
<td>{{ $risk->factor }}</td>
|
|
<td>{{ ugandan_shillings($risk->amount) }}</td>
|
|
<td>{{ get_full_name($risk->created_by, "id", 'first_name', 'last_name', 'users') }}</td>
|
|
<td>{{ streamline_date_time_short($risk->created_at) }}</td>
|
|
<td>
|
|
{{ Form::model($risk->id ,['method' => 'POST', 'route' => ['risks.activate', $risk->id]]) }}
|
|
<button type="submit" class="btn btn-sm btn-warning btn-rounded"
|
|
onclick="return confirm('Are you sure you want to activate this Risk?')"><i
|
|
class="fa fa-check"></i> {{ __('risks.activate') }}</button>
|
|
{{ Form::close() }}
|
|
</td>
|
|
</tr>
|
|
@php $counter++; @endphp
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{ __('risks.risk_name') }}</th>
|
|
<th>{{ __('risks.risk_code') }}</th>
|
|
<th>{{ __('risks.risk_factor') }}</th>
|
|
<th>{{ __('risks.risk_amount') }}</th>
|
|
<th>{{ __('risks.creator') }}</th>
|
|
<th>{{ __('risks.date') }}</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
|
|
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
|
|
|
<script>
|
|
$('.table').DataTable({
|
|
pageLength: 10,
|
|
order: [],
|
|
});
|
|
</script>
|
|
@endpush
|