mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
resolved conflicts
This commit is contained in:
Executable
+255
@@ -0,0 +1,255 @@
|
||||
@php use Illuminate\Support\Facades\Auth; @endphp
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<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" />
|
||||
|
||||
<style type="text/css">
|
||||
.color-tr {
|
||||
background: #FFFF99;
|
||||
}
|
||||
</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">{{ __('finance.incoming_patient_payments') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('finance.home') }}</a></li>
|
||||
<li><a href="{{ url('finance') }}">{{ __('finance.finance_home') }}</a></li>
|
||||
<li><a class="active"> {{ __('finance.incoming_patient_payments') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
{{ Form::open(['route' => 'finance.incoming_opd_payments', 'method' => 'ANY']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
{{ Form::label('clinic_id', __('finance.clinic')) }}
|
||||
{{ Form::select('clinic_id', $clinics, '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group" id="searchby">
|
||||
{{ Form::label('search_by', __('finance.date')) }}
|
||||
{{ Form::select('search_by', ['0'=>'Today','1'=>'Yesterday','2'=>'Custom Date','3'=>'Custom Range'], '', ['class' => 'form-control','id'=>'search_by', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" 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-md-3" style="display: none;" id="date_range_search">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('finance.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', __('finance.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-md-3">
|
||||
{{ Form::label('search_patient', 'Search By Patient') }}
|
||||
<div class="input-group">
|
||||
<select class="form-control" name="patient_number" id="patient_number"></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group" style="padding-top: 5px;"><br>
|
||||
{{ Form::button('Filter',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10', 'id'=>'select_patient']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('finance.patient_number') }}</th>
|
||||
<th>{{ __('finance.full_names') }}</th>
|
||||
<th>{{ __('finance.age') }}</th>
|
||||
<th>{{ __('finance.phone') }}</th>
|
||||
<th>{{ __('finance.category') }}</th>
|
||||
<th>{{ __('finance.un-billed_items') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($patient_episodes as $episode)
|
||||
@php
|
||||
$dob = new Carbon\Carbon($episode->date_of_birth);
|
||||
|
||||
$has_procedures = is_integer($episode->procedure_id) && $episode->procedures_payment_status == 0 && $episode->procedures_is_inpatient == 0;
|
||||
$has_investigations = is_integer($episode->investigation_id) && $episode->investigation_payment_status == 0 && $episode->invs_is_inpatient == 0;
|
||||
$has_sundries = is_integer($episode->sundries_id) && $episode->sundries_payment_status == 0 && $episode->sundry_is_inpatient == 0;
|
||||
$has_services = is_integer($episode->service_id) && $episode->service_payment_status == 0 && $episode->service_is_inpatient == 0;
|
||||
$has_treatment = is_integer($episode->treatment_id) && $episode->treatment_payment_status == 0 && $episode->treatment_is_inpatient == 0;
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
<td>{{ $episode->number }}</td>
|
||||
<td>{!! insurance_flag($episode->patient_id) !!}</td>
|
||||
<td>{{ $dob->diffInYears(Carbon\Carbon::now()) }} (yrs)</td>
|
||||
<td>{{ $episode->phone }}</td>
|
||||
<td>{{ $patient_categories[$episode->category_id] ?? "N/A" }}</td>
|
||||
<td>
|
||||
{{ Form::open(['route' => 'patient_finance.select_payment_option']) }}
|
||||
|
||||
{{ Form::hidden('episode_id', $episode->episode_id)}}
|
||||
{{ Form::hidden('patient_id', $episode->patient_id)}}
|
||||
<ol>
|
||||
@if($has_services && Auth::user()->can('make-consultation-deposits'))
|
||||
<li><button type="submit" name="consultation" class="btn btn-primary btn-xs btn-rounded" value="consultation">{{ __('finance.consultations') }}</button></li>
|
||||
<br>
|
||||
@endif
|
||||
@if($has_treatment && Auth::user()->can('make-treatment-deposits'))
|
||||
<li><button type="submit" name="treatment" class="btn btn-warning btn-xs btn-rounded" value="treatment">{{ __('finance.treatments') }}</button></li>
|
||||
<br>
|
||||
@endif
|
||||
@if($has_investigations && Auth::user()->can('make-investigations-deposits'))
|
||||
<li><button type="submit" name="investigations" class="btn btn-info btn-xs btn-rounded" value="investigations">{{ __('finance.investigations') }}</button></li>
|
||||
<br>
|
||||
@endif
|
||||
@if($has_procedures && Auth::user()->can('make-procedures-deposits'))
|
||||
<li><button type="submit" name="procedures" class="btn btn-default btn-xs btn-rounded" value="procedures">{{ __('finance.procedures') }}</button></li>
|
||||
<br>
|
||||
@endif
|
||||
@if($has_sundries && Auth::user()->can('make-sundries-deposits'))
|
||||
<li><button type="submit" name="sundries" class="btn btn-default btn-xs btn-rounded" value="sundries" style="background: #73bcdca6;">{{ __('finance.sundries') }}</button></li>
|
||||
<br>
|
||||
@endif
|
||||
@if(Auth::user()->can('make-central-billing'))
|
||||
<li><button type="submit" name="central_billing" class="btn btn-danger btn-xs btn-rounded" value="central_billing" style="background: #9e9627">{{ __('finance.pay_for_all_items') }}</button></li>
|
||||
@endif
|
||||
</ol>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($episode->patient_id ,['method' => 'POST', 'route' => ['patient_finance.set_patient_session', $episode->patient_id]]) }}
|
||||
<button type="submit" class="btn btn-success btn-sm">{{ __('finance.select') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</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/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>
|
||||
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#datepicker-autoclose,#datepicker-autoclose-1,#datepicker-autoclose-2').datepicker({
|
||||
autoclose: true,
|
||||
pageLength: 100,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
$('#patient_number').select2({
|
||||
placeholder: 'Search by patient details (names and number)',
|
||||
ajax: {
|
||||
url: '/patients/search_patient_by_name_number',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.first_name + " " + item.last_name + " (" + item.number + ")",
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$('#search_by').change(function () {
|
||||
if ($(this).val() == 2) {
|
||||
$('#date_search').show();
|
||||
$('#date_range_search').hide();
|
||||
}
|
||||
else if ($(this).val() == 3) {
|
||||
$('#date_range_search').show();
|
||||
$('#date_search').hide();
|
||||
}
|
||||
else {
|
||||
$('#date_search,#date_range_search').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
buttons: [
|
||||
{extend: 'pdf',
|
||||
exportOptions: {
|
||||
stripHtml: false,
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
}
|
||||
},
|
||||
{extend: 'print',
|
||||
exportOptions: {
|
||||
stripHtml: false,
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
function show(episodeId) {
|
||||
$('#menu1').show();
|
||||
$('#row'+episodeId).addClass('color-tr');
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,524 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
|
||||
<h5 class="page-title">{{ __('finance.finance') }}</h5>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('finance.home') }}</a></li>
|
||||
<li><a class="active"> {{ __('finance.finance_home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@if(Auth::user()->can('finance-patient-search') || Auth::user()->can('incoming-inpatient-bills') || Auth::user()->can('nssf-rate-edit')
|
||||
|| Auth::user()->can('streamline-bills-create') || Auth::user()->can('streamline-bills-index'))
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.patient_finance') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('finance-patient-search'))
|
||||
<a href="{{ route('patient_finance.search_patients') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.select_patient') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
<a href="{{ route('finance.incoming_opd_payments') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.incoming_patient_payments') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('incoming-inpatient-bills'))
|
||||
<a href="{{ route('inpatient_bills.incoming') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>Incoming IPD Bills<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.streamline_bills') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('streamline-bills-create'))
|
||||
<a href="{{ route('streamline_bill.create') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.generate_bills') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('streamline-bills-index'))
|
||||
<a href="{{ route('streamline_bill') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.view_generated_bills') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.payroll_defaults') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('nssf-rate-edit'))
|
||||
<a href="{{ route('payroll_defaults.edit_nssf_rate') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.edit_social_security_rate') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('tax-rate-edit'))
|
||||
<a href="{{ route('payroll_defaults.edit_tax_rate') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.edit_tax_rate') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
@if(Auth::user()->can('payroll-category-create') || Auth::user()->can('payroll-category-view') || Auth::user()->can('payroll-category-delete'))
|
||||
<h3 class="box-title">{{ __('payroll_categories.payroll_categories') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('payroll-category-create'))
|
||||
<a href="{{ route('payroll_categories.create') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('payroll_categories.add_category') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('payroll-category-view'))
|
||||
<a href="{{ route('payroll_categories.index') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('payroll_categories.view_category') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('payroll-category-delete'))
|
||||
<a href="{{ route('payroll_categories.inactive') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('payroll_categories.inactive_category') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.expenses_or_payments') }}</h3>
|
||||
<ul class="feeds">
|
||||
<!--start of payments-->
|
||||
@if(Auth::user()->can('Payments-create-payment-item') || Auth::user()->can('Payments-list-payment-items')|| Auth::user()->can('Payments-make-payment')
|
||||
|| Auth::user()->can('Payments-view-payments-history') || Auth::user()->can('Payments-activate-payment-item'))
|
||||
|
||||
@if(Auth::user()->can('Payments-make-payment'))
|
||||
<a href="{{ route('payments.new_payment') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.manage_bills_or_expenses') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('Payments-create-payment-item'))
|
||||
<a href="{{ route('payment_items.create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.manage_payment_items') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
{{-- @if(Auth::user()->can('Payments-list-payment-items'))--}}
|
||||
{{-- <a href="{{ route('payment_items.index') }}">--}}
|
||||
{{-- <li>--}}
|
||||
{{-- <div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> View Payment Item<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>--}}
|
||||
{{-- </li>--}}
|
||||
{{-- </a>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- @if(Auth::user()->can('Payments-activate-payment-item'))--}}
|
||||
{{-- <a href="{{ url('/payment_items/inactive') }}">--}}
|
||||
{{-- <li>--}}
|
||||
{{-- <div class="bg-danger"><i class="fa fa-plus-circle text-white"></i></div> Inactive Payment Items<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>--}}
|
||||
{{-- </li>--}}
|
||||
{{-- </a>--}}
|
||||
{{-- @endif--}}
|
||||
|
||||
@if(Auth::user()->can('Payments-view-payments-history'))
|
||||
<a href="{{ route('payments.view_payments') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_expenses_report') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
<!--end of payments-->
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
@if(Auth::user()->can('price-list-category-create') || Auth::user()->can('price-list-category-view') || Auth::user()->can('price-list-category-delete'))
|
||||
<h3 class="box-title">{{ __('finance.price_list') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('price-list-category-create'))
|
||||
<a href="{{ route('price_list_category.create') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.add_category') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('price-list-category-view'))
|
||||
<a href="{{ route('price_list_category.index') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.view_categories') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('price-list-category-delete'))
|
||||
<a href="{{ route('price_list_category.inactive') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.inactive_categories') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.chart_of_accounts') }}</h3>
|
||||
<ul class="feeds">
|
||||
<!--start of chart of accounts listing-->
|
||||
@if(Auth::user()->can('chart-of-accounts-list') || Auth::user()->can('create-chart-of-accounts') || Auth::user()->can('view-of-account-details') || Auth::user()->can('activate-chart-of-accounts'))
|
||||
|
||||
@if(Auth::user()->can('create-chart-of-accounts'))
|
||||
<a href="{{ route('chart_of_accounts.create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.add_account') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('view-chart-of-account-details'))
|
||||
<a href="{{ route('chart_of_accounts.index') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_accounts') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('activate-chart-of-accounts') || Auth::user()->can('de-activate-chart-of-accounts'))
|
||||
<a href="{{ route('chart_of_accounts.inactive') }}">
|
||||
<li>
|
||||
<div class="bg-danger"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.inactive_accounts') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
<!--end of chart of accounts listing-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.account_types') }}</h3>
|
||||
<ul class="feeds">
|
||||
<!--start of account types listing-->
|
||||
@if(Auth::user()->can('account-types-list') || Auth::user()->can('create-account-types') || Auth::user()->can('view-account-type-details') || Auth::user()->can('activate-account-types'))
|
||||
<!-- NO ONE SHOULD BE ABLE TO ADD A NEW ACCOUNT TYPE -->
|
||||
<!-- @if(Auth::user()->can('create-account-types'))
|
||||
<a href="{{ route('account_types.create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.add_account_type') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif -->
|
||||
@if(Auth::user()->can('account-types-list'))
|
||||
<a href="{{ route('account_types.index') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_account_types') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('activate-account-types'))
|
||||
<a href="{{ route('account_types.inactive') }}">
|
||||
<li>
|
||||
<div class="bg-danger"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.inactive_account_types') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
<!--end of account types listing-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.banking') }}</h3>
|
||||
<ul class="feeds">
|
||||
<!--start of banking-->
|
||||
@if(Auth::user()->can('banking-make-deposit'))
|
||||
<a href="{{ route('banking.deposit') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.make_bank_deposit') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('banking-make-transfers'))
|
||||
<a href="{{ route('banking.transfer') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.make_bank_transfer') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('banking-make-deposit'))
|
||||
<a href="{{ route('banking.deposit_history') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.bank_deposit_history') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('banking-view-history'))
|
||||
<a href="{{ route('banking.transfer_history') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.bank_transfer_history') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('banking-register'))
|
||||
<a href="{{ route('banking.register') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.bank_register_report') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('banking-reconciliation'))
|
||||
<a href="{{ route('banking.reconcile') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.bank_reconciliation') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
<a href="{{ route('banking.reconcile.reports') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.bank_reconciliation_reports') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
<!--end of banking-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@if( Auth::user()->can('payroll-create') || Auth::user()->can('payroll-list') || Auth::user()->can('payroll-delete'))
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.payrolls') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if( Auth::user()->can('payroll-create'))
|
||||
<a href="{{ route('payroll.create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('payroll.add_payroll_employee') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if( Auth::user()->can('payroll-create'))
|
||||
<a href="{{ route('payroll.bulk_create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('payroll.add_multiple_payroll_employees') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if( Auth::user()->can('payroll-list'))
|
||||
<a href="{{ route('payroll.index') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('payroll.view_payrolls') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if( Auth::user()->can('payroll-delete'))
|
||||
<a href="{{ route('payroll.inactive') }}">
|
||||
<li>
|
||||
<div class="bg-danger"><i class="fa fa-plus-circle text-white"></i></div> {{ __('payroll.inactive_payrolls') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if( Auth::user()->can('payroll-list'))
|
||||
<a href="{{ route('payroll.view_payroll_payments') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_payslips') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if( Auth::user()->can('payroll-delete'))
|
||||
<a href="{{ route('payroll.inactive_payslips') }}">
|
||||
<li>
|
||||
<div class="bg-danger"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.deleted_payslips') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.items') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('fixed-assets-list') || Auth::user()->can('view-family-account'))
|
||||
|
||||
<a href="{{ route('equities.index') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.equity_management') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@if(Auth::user()->can('fixed-assets-list'))
|
||||
<a href="{{ route('fixed_assets.index') }}">
|
||||
<li>
|
||||
<div class="bg-danger"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.fixed_assets') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(is_family_account_feature_enabled())
|
||||
@if(Auth::user()->can('view-family-account'))
|
||||
<a href="{{ route('family_accounts.index') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.family_accounts') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
<a href="{{ route('family_accounts.consumption_report') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.family_accounts_consumption_report') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
<a href="{{ route('family_accounts.deposit_report') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.family_accounts_deposit_report') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
<!--end of chart of accounts listing-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.discounts') }}</h3>
|
||||
<ul class="feeds">
|
||||
<!--start of discounts-->
|
||||
@if( Auth::user()->can('discount-create') || Auth::user()->can('discount-list') || Auth::user()->can('discount-category-list') ||
|
||||
Auth::user()->can('discount-category-create') || Auth::user()->can('discount-category-delete') || Auth::user()->can('change-drugs-covered-by-category'))
|
||||
@if(Auth::user()->can('discount-create'))
|
||||
<a href="{{ route('discounts.create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.new_patient_discount') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('discount-list') || Auth::user()->can('change-drugs-covered-by-category'))
|
||||
<a href="{{ route('discounts.index') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_patient_discounts') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('discount-category-list'))
|
||||
<a href="{{ route('discount_category.create') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.new_discount_category') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('discount-category-create'))
|
||||
<a href="{{ route('discount_category.index') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_discount_categories') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@if(Auth::user()->can('discount-category-delete'))
|
||||
<a href="{{ route('discount_category.inactive') }}">
|
||||
<li>
|
||||
<div class="bg-warning"><i class="fa fa-plus-circle text-white"></i></div> {{ __('finance.view_inactive_discount_categories') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
<!--end of discounts-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.reports_title') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('finance-reports-activate'))
|
||||
<a href="{{ route('finance_reports.index') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.reports') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.invoices_title') }}</h3>
|
||||
<ul class="feeds">
|
||||
@if(Auth::user()->can('Invoices-generate') || Auth::user()->can('Invoices-receive-payments') || Auth::user()->can('Invoices-view-payments-history'))
|
||||
<a href="{{ route('invoices') }}">
|
||||
<li>
|
||||
<div class="bg-success"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.invoices') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@if( Auth::user()->can('journals-view') )
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.journals_title') }}</h3>
|
||||
<ul class="feeds">
|
||||
<a href="{{ route('journals') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.journals') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if( Auth::user()->can('budget-list') )
|
||||
<div class="col-md-3">
|
||||
<h3 class="box-title">{{ __('finance.title_budgets') }}</h3>
|
||||
<ul class="feeds">
|
||||
<a href="{{ route('budgets.index') }}">
|
||||
<li>
|
||||
<div class="bg-info"><i class="fa fa-plus-circle text-white"></i></div>{{ __('finance.budgets') }}<i class="fa fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user