|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
- <div class="p-3 mcp-theme-1">
|
|
|
+ <div class="p-3 mcp-theme-1" id="practice-billing-manager">
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
@@ -19,6 +19,63 @@
|
|
|
@endforeach
|
|
|
</select>
|
|
|
</div>
|
|
|
+ <div class="bg-aliceblue border-bottom px-3 py-2 d-flex align-items-center">
|
|
|
+ <div class="d-inline-flex align-items-center">
|
|
|
+ <span>Bills Created</span>
|
|
|
+ <select class="form-control form-control-sm min-width-unset width-70px ml-2 {{ !!$filters['bills_created'] ? 'border-info font-weight-bold text-info' : 'text-secondary on-hover-opaque' }}"
|
|
|
+ data-filter="bills_created">
|
|
|
+ <option value="">All</option>
|
|
|
+ <option value="yes" {{$filters['bills_created'] === 'yes' ? 'selected' : ''}}>Yes</option>
|
|
|
+ <option value="no" {{$filters['bills_created'] === 'no' ? 'selected' : ''}}>No</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex align-items-center ml-3">
|
|
|
+ <span>Bills Ready to Verify</span>
|
|
|
+ <select class="form-control form-control-sm min-width-unset width-70px ml-2 {{ !!$filters['bills_ready_to_verify'] ? 'border-info font-weight-bold text-info' : 'text-secondary on-hover-opaque' }}"
|
|
|
+ data-filter="bills_ready_to_verify">
|
|
|
+ <option value="">All</option>
|
|
|
+ <option value="yes" {{$filters['bills_ready_to_verify'] === 'yes' ? 'selected' : ''}}>Yes</option>
|
|
|
+ <option value="no" {{$filters['bills_ready_to_verify'] === 'no' ? 'selected' : ''}}>No</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex align-items-center ml-3">
|
|
|
+ <span>Bills Resolved</span>
|
|
|
+ <select class="form-control form-control-sm min-width-unset width-70px ml-2 {{ !!$filters['bills_resolved'] ? 'border-info font-weight-bold text-info' : 'text-secondary on-hover-opaque' }}"
|
|
|
+ data-filter="bills_resolved">
|
|
|
+ <option value="">All</option>
|
|
|
+ <option value="yes" {{$filters['bills_resolved'] === 'yes' ? 'selected' : ''}}>Yes</option>
|
|
|
+ <option value="no" {{$filters['bills_resolved'] === 'no' ? 'selected' : ''}}>No</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex align-items-center ml-3">
|
|
|
+ <span>Bills Closed</span>
|
|
|
+ <select class="form-control form-control-sm min-width-unset width-70px ml-2 {{ !!$filters['bills_closed'] ? 'border-info font-weight-bold text-info' : 'text-secondary on-hover-opaque' }}"
|
|
|
+ data-filter="bills_closed">
|
|
|
+ <option value="">All</option>
|
|
|
+ <option value="yes" {{$filters['bills_closed'] === 'yes' ? 'selected' : ''}}>Yes</option>
|
|
|
+ <option value="no" {{$filters['bills_closed'] === 'no' ? 'selected' : ''}}>No</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex align-items-center ml-3">
|
|
|
+ <span>Claims Created</span>
|
|
|
+ <select class="form-control form-control-sm min-width-unset width-70px ml-2 {{ !!$filters['claims_created'] ? 'border-info font-weight-bold text-info' : 'text-secondary on-hover-opaque' }}"
|
|
|
+ data-filter="claims_created">
|
|
|
+ <option value="">All</option>
|
|
|
+ <option value="yes" {{$filters['claims_created'] === 'yes' ? 'selected' : ''}}>Yes</option>
|
|
|
+ <option value="no" {{$filters['claims_created'] === 'no' ? 'selected' : ''}}>No</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex align-items-center ml-3">
|
|
|
+ <span>Claims Closed</span>
|
|
|
+ <select class="form-control form-control-sm min-width-unset width-70px ml-2 {{ !!$filters['claims_closed'] ? 'border-info font-weight-bold text-info' : 'text-secondary on-hover-opaque' }}"
|
|
|
+ data-filter="claims_closed">
|
|
|
+ <option value="">All</option>
|
|
|
+ <option value="yes" {{$filters['claims_closed'] === 'yes' ? 'selected' : ''}}>Yes</option>
|
|
|
+ <option value="no" {{$filters['claims_closed'] === 'no' ? 'selected' : ''}}>No</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <a href="/practice-management/billing-manager" class="ml-auto">Clear Filters</a>
|
|
|
+ </div>
|
|
|
<div class="card-body p-0">
|
|
|
<table class="table table-sm table-condensed p-0 m-0">
|
|
|
<thead class="bg-light">
|
|
@@ -159,4 +216,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <script>
|
|
|
+ (function() {
|
|
|
+
|
|
|
+ function applyFilters() {
|
|
|
+ let params = {}, queryLine = [];
|
|
|
+ $('[data-filter]').each(function() {
|
|
|
+ if($.trim($(this).val())) {
|
|
|
+ params[$(this).attr('data-filter')] = $.trim($(this).val());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ for(let x in params) {
|
|
|
+ if(params.hasOwnProperty(x)) {
|
|
|
+ queryLine.push(x + '=' + encodeURIComponent(params[x]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ queryLine = queryLine.join('&');
|
|
|
+
|
|
|
+ fastLoad('/practice-management/billing-manager?' + queryLine);
|
|
|
+ }
|
|
|
+
|
|
|
+ function init() {
|
|
|
+ $('select[data-filter]')
|
|
|
+ .off('change')
|
|
|
+ .on('change', applyFilters);
|
|
|
+ }
|
|
|
+
|
|
|
+ addMCInitializer('practice-billing-manager', init, '#practice-billing-manager')
|
|
|
+
|
|
|
+ }).call(window);
|
|
|
+ </script>
|
|
|
@endsection
|