template.blade.php 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="csrf-token" content="{{ csrf_token() }}">
  7. <title>{{ config('app.name') }}</title>
  8. <link rel="icon" href="/img/icon.svg">
  9. <!-- Fonts -->
  10. <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
  11. {{-- mc initializers --}}
  12. <script src="/js/mc-init.js?v={{config('app.asset_version')}}"></script>
  13. {{-- vue --}}
  14. <script src="/js/vue.js"></script>
  15. {{-- Quill RTE --}}
  16. <script>
  17. window.stagQuillConfig = {
  18. toolbar: ['bold', 'italic', 'underline', { 'list': 'ordered'}, { 'list': 'bullet' }],
  19. keyboard: {
  20. bindings: {
  21. handleEnter: {
  22. key: 13,
  23. handler: function() {
  24. if(!$('.stag-shortcuts:visible').length) return true;
  25. }
  26. }
  27. }
  28. }
  29. };
  30. </script>
  31. <link href="/quill/quill.snow.css" rel="stylesheet">
  32. <script src="/quill/quill.js"></script>
  33. <!-- <link href="{{ asset('bootstrap-4.5.0/css/bootstrap.css') }}" rel="stylesheet"> -->
  34. <link rel="stylesheet" href="/fontawesome-free-5.13.1-web/css/all.min.css">
  35. <link href="{{ asset('/css/app.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  36. <link href="{{ asset('/css/style.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  37. <link href="{{ asset('/css/yemi.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  38. <link rel="stylesheet" href="{{ asset('/css/toastr.min.css') }}">
  39. <link href="{{asset('/css/z.css')}}?v={{config('app.asset_version')}}" rel=stylesheet>
  40. <!-- Styles -->
  41. <script src="{{ asset('js/app.js') }}?v={{config('app.asset_version')}}" type="application/javascript"></script>
  42. <script src="/js/jquery-3.5.1.min.js"></script>
  43. <script src="/js/jquery.form.min.js"></script>
  44. <script src="{{ asset('js/toastr.min.js') }}" type="application/javascript"></script>
  45. <script src="/js/yemi.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  46. {{-- med ac --}}
  47. <link href='/css/autocomplete-lhc.min.css' rel="stylesheet">
  48. <script src='/js/autocomplete-lhc.js'></script>
  49. {{-- inline bootstrap datepicker --}}
  50. {{-- <link href='/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css' rel="stylesheet">
  51. <script src='/bootstrap-datepicker/js/bootstrap-datepicker.min.js'></script>--}}
  52. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  53. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  54. {{-- pdfjs --}}
  55. <script src="/js/pdfjs-2.12.313/build/pdf.js"></script>
  56. <script src="{{ asset('js/tsvToArray.js') }}"></script>
  57. {{-- WebSockets --}}
  58. <script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.5.0/sockjs.min.js"
  59. integrity="sha512-5yJ548VSnLflcRxWNqVWYeQZnby8D8fJTmYRLyvs445j1XmzR8cnWi85lcHx3CUEeAX+GrK3TqTfzOO6LKDpdw=="
  60. crossorigin="anonymous"></script>
  61. <script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"
  62. integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g=="
  63. crossorigin="anonymous"></script>
  64. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
  65. <script src="https://cdnjs.cloudflare.com/ajax/libs/TableDnD/1.0.5/jquery.tablednd.min.js"></script>
  66. <script>
  67. window.segmentRefreshConfig = {!! json_encode(config('stag.segmentRefreshConfig')) !!};
  68. </script>
  69. <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  70. <script type="text/javascript">
  71. $(function() {
  72. $.ajaxSetup({
  73. headers: {
  74. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  75. }
  76. });
  77. });
  78. </script>
  79. @yield('head')
  80. </head>
  81. <body>
  82. <div id="mask" style="background: rgba(0, 0, 0, 0) url(&quot;/vanillaspin.gif&quot;) no-repeat scroll center center; position: fixed; top: 0px; left: 0px; z-index: 9999; width: 100%; height: 100%; display: none;">
  83. </div>
  84. <div id="moe-form-mask" style="background: rgba(0, 0, 0, .1) no-repeat scroll center center; position: fixed; top: 0px; left: 0px; z-index: 97; width: 100%; height: 100%; display: none;">
  85. </div>
  86. <nav class="navbar navbar-expand-md navbar-dark stag-primary-bg py-1 mcp-theme-1 px-2">
  87. <a class="navbar-brand" href="/">
  88. <img src="/img/logo_white.svg" alt="Leadership Health">
  89. </a>
  90. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navBar" aria-controls="navBar" aria-expanded="false" aria-label="Toggle navigation">
  91. <span class="navbar-toggler-icon"></span>
  92. </button>
  93. <div class="collapse navbar-collapse" id="navBar">
  94. <ul class="navbar-nav mr-auto">
  95. @if($pro->pro_type == 'ADMIN')
  96. <li class="nav-item"><a class="nav-link" href="{{ route('admin.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  97. <li class="nav-item"><a class="nav-link" href="{{ route('admin.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  98. @elseif($pro->is_enrolled_as_mcp && $pro->is_considered_for_mcp_assignment)
  99. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  100. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  101. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.appointments') }}">
  102. <i class="mr-1 fas fa-calendar-alt"></i> Appointments
  103. </a>
  104. </li>
  105. @elseif($pro->is_considered_for_dna)
  106. <li class="nav-item"><a class="nav-link" href="{{ route('dna.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  107. <li class="nav-item"><a class="nav-link" href="{{ route('dna.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  108. @elseif($pro->is_considered_for_rd_assignment)
  109. <li class="nav-item"><a class="nav-link" href="{{ route('rd.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  110. <li class="nav-item"><a class="nav-link" href="{{ route('rd.appointments') }}"><i class="mr-1 fas fa-calendar-alt"></i> Appointments</a> </li>
  111. <li class="nav-item"><a class="nav-link" href="{{ route('rd.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  112. @else
  113. <li class="nav-item"><a class="nav-link" href="{{ route('ps.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  114. <li class="nav-item"><a class="nav-link" href="{{ route('ca.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  115. @endif
  116. @if($pro && ($pro->can_add_patients || $pro->pro_type== 'ADMIN'))
  117. <li class="nav-item"><a class="nav-link" href="{{ route('new-patient') }}"><i class="mr-1 fas fa-user-plus"></i> New Patient</a> </li>
  118. @endif
  119. <li class="nav-item dropdown">
  120. <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  121. <i class="mr-1 fas fa-tasks"></i> Practice
  122. </a>
  123. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  124. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">My Availability</a>
  125. @if($pro->pro_type == 'ADMIN')
  126. <a class="dropdown-item" href="{{ route('practice-management.rpm-manager') }}">RPM Manager</a>
  127. @endif
  128. @if($pro->is_enrolled_as_mcp)
  129. <a class="dropdown-item" href="{{ route('practice-management.rpm-manager') }}">RPM Manager</a>
  130. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-mcp') }}">RPM (MCP)</a>
  131. @endif
  132. @if($pro->is_considered_for_rmm)
  133. <a class="dropdown-item" href="{{ route('practice-management.rpm-manager') }}">RPM Manager</a>
  134. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-rmm') }}">RPM (RMM)</a>
  135. @endif
  136. @if($pro->is_considered_for_rme)
  137. <a class="dropdown-item" href="{{ route('practice-management.rpm-manager') }}">RPM Manager</a>
  138. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-rme') }}">RPM (RME)</a>
  139. @endif
  140. @if($pro->is_considered_for_rd_assignment)
  141. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-rme') }}">RPM (RD)</a>
  142. <a class="dropdown-item" href="{{ route('rd.client-ccm-rm-status') }}">Client RM Status</a>
  143. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Tickets</a>
  144. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">My Text Shortcuts</a>
  145. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">My Favorites</a>
  146. <a class="dropdown-item" href="{{ route('practice-management.my-flyers') }}">My Flyers</a>
  147. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  148. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Calendar</a>
  149. <a class="dropdown-item" href="{{ route('rd.rpmMatrix') }}">RPM Matrix</a>
  150. <a class="dropdown-item" href="{{ route('rd.notes') }}">Notes</a>
  151. <a class="dropdown-item" href="{{ route('rd.memos') }}">Memos</a>
  152. <a class="dropdown-item" href="{{ route('rd.bills') }}">Bills</a>
  153. <a class="dropdown-item" href="{{ route('rd.erx_and_orders') }}">ERx & Orders</a>
  154. <a class="dropdown-item" href="{{ route('rd.reports') }}">Reports</a>
  155. <a class="dropdown-item" href="{{ route('rd.supply_orders') }}">Supply Orders</a>
  156. <a class="dropdown-item" href="{{ route('rd.client_messages') }}">Client Messages</a>
  157. <a class="dropdown-item" href="{{ route('rd.patients_accounts_invites') }}">Patients Accounts Invites</a>
  158. <a class="dropdown-item" href="{{ route('rd.clients_bdt_devices') }}">Clients BDT Devices</a>
  159. @elseif( $pro->pro_type== 'ADMIN' || $pro->is_enrolled_as_mcp || $pro->is_considered_for_rmm || $pro->is_considered_for_rme || $pro->is_considered_for_dna)
  160. <a class="dropdown-item" href="{{ route('practice-management.client-ccm-rm-status') }}">Client RM Status</a>
  161. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Tickets</a>
  162. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">My Text Shortcuts</a>
  163. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">My Favorites</a>
  164. <a class="dropdown-item" href="{{ route('practice-management.my-flyers') }}">My Flyers</a>
  165. @else
  166. <a class="dropdown-item" href="{{ route('ps.client-review-requests') }}">My Patient Chart Review Requests</a>
  167. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Bills</a>
  168. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  169. @endif
  170. @if($pro->is_enrolled_as_mcp && $pro->is_considered_for_mcp_assignment)
  171. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  172. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">Text Shortcuts</a>
  173. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">Favorites</a>
  174. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Calendar</a>
  175. <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
  176. <a class="dropdown-item" href="{{ route('mcp.notes') }}">Notes</a>
  177. <a class="dropdown-item" href="{{ route('mcp.memos') }}">Memos</a>
  178. <a class="dropdown-item" href="{{ route('mcp.appointments') }}">Appointments</a>
  179. <a class="dropdown-item" href="{{ route('mcp.bills') }}">Bills</a>
  180. <a class="dropdown-item" href="{{ route('mcp.erx_and_orders') }}">ERx & Orders</a>
  181. <a class="dropdown-item" href="{{ route('mcp.reports') }}">Reports</a>
  182. <a class="dropdown-item" href="{{ route('mcp.supply_orders') }}">Supply Orders</a>
  183. <a class="dropdown-item" href="{{ route('mcp.client_messages') }}">Messages</a>
  184. <a class="dropdown-item" href="{{ route('mcp.patients_accounts_invites') }}">Patients Accounts Invites</a>
  185. <a class="dropdown-item" href="{{ route('mcp.clients_bdt_devices') }}">Clients BDT Devices</a>
  186. @elseif($pro->isDefaultNA())
  187. <a class="dropdown-item" href="/practice-management/my-teams">My Teams</a>
  188. <a class="dropdown-item" href="{{ route('dna.encounters') }}">Encounters</a>
  189. <a class="dropdown-item" href="{{ route('dna.appointments') }}">Appointments</a>
  190. <a class="dropdown-item" href="{{ route('dna.careMonths') }}">Care Months</a>
  191. <a class="dropdown-item" href="{{ route('dna.financialTransactions') }}">Financial Transactions</a>
  192. <a class="dropdown-item" href="{{ route('dna.myBills') }}">My Bills</a>
  193. <!-- <a class="dropdown-item" href="{{ route('dna.myClinicalTeams') }}">My Clinical Teams</a> -->
  194. @endif
  195. @if($pro->pro_type === 'ADMIN' || $pro->is_considered_for_supervising_physician)
  196. <a class="dropdown-item" href="{{ route('practice-management.notes-pending-physician-supervisor-stamping') }}">Notes Pending Physician Supervisor Stamping</a>
  197. <a class="dropdown-item" href="{{ route('practice-management.client-review-requests') }}">Client Review Requests</a>
  198. @endif
  199. </div>
  200. </li>
  201. @if($pro->pro_type === 'ADMIN')
  202. <li class="nav-item dropdown">
  203. <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  204. <i class="mr-1 fas fa-tasks"></i> Admin
  205. </a>
  206. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  207. <a class="dropdown-item" href="{{ route('practice-management.claims-report') }}">Claims Report</a>
  208. <a class="dropdown-item" href="{{ route('practice-management.problems-report') }}">Problems Report</a>
  209. <a class="dropdown-item" href="{{ route('practice-management.coverages') }}">Coverage Center</a>
  210. <a class="dropdown-item" href="{{ route('practice-management.notes-resolution-center-v2') }}">Notes Resolution Center V2</a>
  211. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-admin') }}">RPM (Admin)</a>
  212. <a class="dropdown-item" href="{{ route('practice-management.daily-treatment-services') }}">Daily Treatment Services</a>
  213. <a class="dropdown-item" href="{{ route('practice-management.client-pro-changes') }}">Client Pro Changes</a>
  214. <a class="dropdown-item" href="{{ route('invoice-center.companies') }}">Invoice Center</a>
  215. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  216. <a class="dropdown-item" href="/practice-management/bills/not-yet-signed">Pending Bills to Sign</a>
  217. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed">Pending Notes to Sign</a>
  218. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed-but-ally-signed">Pending Notes to Sign (Ally Signed)</a>
  219. <a class="dropdown-item" href="{{ route('unmapped-sms') }}">Unmapped SMS</a>
  220. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Pro Availability</a>
  221. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Pro Calendar</a>
  222. <a class="dropdown-item" href="{{ route('practice-management.billing-report') }}">Billing Report</a>
  223. <a class="dropdown-item" href="{{ route('practice-management.processingBillMatrix') }}">Processing Bills</a>
  224. <a class="dropdown-item" href="{{ route('practice-management.processingBillMatrix2') }}">Processing Bills (RPM)</a>
  225. <a class="dropdown-item" href="{{ route('practice-management.pro-financials') }}">Pro Financials</a>
  226. <a class="dropdown-item" href="{{ route('practice-management.process-claims') }}">Process Claims</a>
  227. <a class="dropdown-item" href="{{ route('practice-management.hcp-note-activity') }}">HCP Note Activity</a>
  228. <a class="dropdown-item" href="{{ route('practice-management.allNotes') }}">All Notes</a>
  229. @if($pro->id == '1' || $pro->id == '16')
  230. <a class="dropdown-item" href="{{ route('practice-management.treatmentServiceUtil') }}">Treatment Service Util.</a>
  231. @endif
  232. <a class="dropdown-item" href="{{ route('practice-management.supply-orders') }}">Supply Orders</a>
  233. <a class="dropdown-item" href="{{ route('practice-management.shipments') }}">Shipments</a>
  234. <a class="dropdown-item" href="{{ route('practice-management.generic-bills') }}">Admin. Bills</a>
  235. <a class="dropdown-item" href="/practice-management/rates/all">Payment Rates</a>
  236. <a class="dropdown-item" href="{{ route('practice-management.patientsAccountsInvites') }}">Patients Accounts Invites</a>
  237. <a class="dropdown-item" href="{{ route('practice-management.memos') }}">Memos</a>
  238. <a class="dropdown-item" href="{{ route('practice-management.segmentTemplates') }}">Segment Templates</a>
  239. <a class="dropdown-item" href="{{ route('practice-management.visitTemplates') }}">Visit Templates</a>
  240. <a class="dropdown-item" href="{{ route('admin.bdt_devices') }}">BDT Devices</a>
  241. <a class="dropdown-item" href="{{ route('admin.patientsMissingDefasultSettings') }}">Patients Missing Default Settings</a>
  242. <a class="dropdown-item" href="{{ route('management-stats') }}">Management Stats</a>
  243. <a class="dropdown-item" href="{{ route('messages') }}">Messages</a>
  244. <a class="dropdown-item" href="{{ route('admin.patients-notes-points-filter') }}">Patients Notes Points Filter</a>
  245. </div>
  246. </li>
  247. <li class="nav-item dropdown">
  248. <a class="nav-link dropdown-toggle opacity-60" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  249. <i class="mr-1 fas fa-tasks"></i> Unused
  250. </a>
  251. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  252. <a class="dropdown-item" href="{{ route('practice-management.notes-resolution-center') }}">Notes Resolution Center</a>
  253. <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
  254. <a class="dropdown-item" href="{{ route('pro-care-month-report') }}">Care Month Report</a>
  255. <a class="dropdown-item" href="{{ route('practice-management.rm-bills-to-sign') }}">RM Bills to Sign</a>
  256. <a class="dropdown-item" href="{{ route('unmapped-sms') }}">Unmapped SMS</a>
  257. <a class="dropdown-item" href="{{ route('practice-management.remoteMonitoringReport') }}">Remote Monitoring Report</a>
  258. <a class="dropdown-item" href="{{ route('practice-management.billingManager') }}">Billing Manager</a>
  259. <a class="dropdown-item" href="{{ route('practice-management.cellularMeasurements') }}">Cellular Measurements</a>
  260. <a class="dropdown-item" href="{{ route('practice-management.cellularDeviceManager') }}">Cellular Device Manager</a>
  261. <a class="dropdown-item" href="{{ route('practice-management.medicarePartBClaims') }}">Medicare Part B Claims</a>
  262. <a class="dropdown-item" href="{{ route('practice-management.patientClaimSummary') }}">Patient Claim Summary</a>
  263. <a class="dropdown-item" href="{{ route('practice-management.claims') }}">Claim Matrix</a>
  264. <a class="dropdown-item" href="{{ route('practice-management.process-notes') }}">Process Notes</a>
  265. <a class="dropdown-item" href="{{ route('practice-management.notes-processing-center') }}">Notes Processing Center</a>
  266. <a class="dropdown-item" href="{{ route('practice-management.client-ccm-rm-status') }}">Client RM Status</a>
  267. <a class="dropdown-item" href="{{ route('practice-management.rmActionReport') }}">RM Action Report</a>
  268. @if($pro->id == '1' || $pro->id == '16')
  269. <a class="dropdown-item" href="{{ route('practice-management.treatmentServiceUtil') }}">Treatment Service Util.</a>
  270. @endif
  271. <a class="dropdown-item" href="{{ route('practice-management.tickets') }}">Tickets</a>
  272. <a class="dropdown-item" href="{{ route('practice-management.packs-multi-print') }}">Print Pack Labels</a>
  273. <a class="dropdown-item" href="{{ route('practice-management.handouts') }}">Handouts</a>
  274. <a class="dropdown-item" href="{{ route('practice-management.mc-code-checks') }}">MC Code Checks</a>
  275. <a class="dropdown-item" href="{{ route('practice-management.clauses.list') }}">Clauses</a>
  276. <a class="dropdown-item" href="{{ route('practice-management.statTrees.list') }}">Stat Trees</a>
  277. <a class="dropdown-item" href="{{ route('practice-management.statTreeLineReports.reports') }}">Stat Trees Line Reports</a>
  278. <a class="dropdown-item" href="{{ route('practice-management.clientsBdtDevices') }}">Clients BDT Devices</a>
  279. <a class="dropdown-item" href="{{ route('admin.part_b_patients') }}">Part B Patients</a>
  280. </div>
  281. </li>
  282. @endif
  283. </ul>
  284. {{-- if pro is working on a client and is not in tht client
  285. <div class="current-work mr-2">
  286. @include('app/current-work')
  287. </div> --}}
  288. <a href="#" class="mr-2 text-white small" onclick="return fastReload()"><i class="fa fa-sync on-hover-opaque"></i></a>
  289. <div class="d-inline-flex pr-2 mcp-theme-1 position-relative">
  290. <input id="patient-search" type="search" class="form-control form-control-sm outline-0" autocomplete="off" placeholder="Search Patients">
  291. <div class="patient-search-results suggestions-outer position-absolute d-none">
  292. </div>
  293. </div>
  294. <div class="d-flex align-items-center">
  295. <div class="dropdown">
  296. @if($performer->logged_in_as_pro_from_admin_pro_app_session_id)
  297. <a class="nav-link dropdown-toggle text-primary px-2 py-1 rounded bg-aliceblue" href="#" id="account-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  298. <span class="text-danger my-0 small">Masquerading as <b title="Cell# {{$pro->cell_number}}">{{ $pro->name_first }}!</b></span>
  299. </a>
  300. @else
  301. <a class="nav-link dropdown-toggle text-white pl-1 pr-0" href="#" id="account-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  302. <span class="text-white my-0 small">Hi, <b title="Cell# {{$pro->cell_number}}">{{ $pro->name_first }}!</b></span>
  303. </a>
  304. @endif
  305. <div class="dropdown-menu dropdown-menu-right mcp-theme-1 pt-0 pb-1" aria-labelledby="account-menu">
  306. @if($performer->logged_in_as_pro_from_admin_pro_app_session_id)
  307. <form action="{{route('back-to-admin-pro')}}" data-action="{{route('back-to-admin-pro')}}" method="post" target="_top" class="d-block pt-1 frm-back-to-admin">
  308. @csrf
  309. <button class="d-block ml-2 back-to-admin-button">
  310. Back to Admin
  311. </button>
  312. </form>
  313. @endif
  314. @if($pro->pro_type == 'ADMIN')
  315. <a href="{{route('log-in-as')}}" class="d-block ml-2 pt-1">Log In As</a>
  316. @endif
  317. @if($pro->pro_type == 'ADMIN')
  318. <a native target="_top" class="d-block ml-2 pt-1"
  319. href="{{config('stag.adminPortalUrl')}}/pro_log_in_with_session_key/{{$performer->session_key}}" title="">
  320. Admin
  321. </a>
  322. @endif
  323. <a native target="_top" class="d-block ml-2 pt-1" href="{{config('stag.authUrl')}}" title="">
  324. Return to Home
  325. </a>
  326. <a native target="_top" href="{{route('logout')}}" class="d-block ml-2 pt-1">
  327. Sign Out
  328. </a>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. <!--<a href="#" class="stag_rhs_toggle d-none d-md-block text-white" title="Toggle Video Pane">
  334. <i class="fa fa-arrow-right"></i>
  335. </a>-->
  336. </nav>
  337. <main role="main" class="stag-content px-0">
  338. @yield('content')
  339. </main><!-- /.container -->
  340. <!-- shortcut/suggest component -->
  341. <link href="/css/shortcut.css?v={{config('app.asset_version')}}" rel=stylesheet>
  342. <script src="/js/shortcut.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  343. <!-- pro suggest component -->
  344. <script src="/js/pro-suggest.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  345. <!-- script to handle history/back/forward for mc/xxx pages
  346. + all other JS initialization needed in fastLoaded pages -->
  347. <script src="/js/find-event-handlers.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  348. <script src="/js/mc.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  349. <form url="/api/proTextShortcut/create" id="create-shortcut-form" class="mcp-theme-1">
  350. <input type="hidden" name="proUid" value="{{ $pro->uid }}">
  351. <div class="mb-2">
  352. <input type="text" class="form-control form-control-sm" name="shortcut" value="" placeholder="Shortcut Name" required>
  353. </div>
  354. <div class="mb-2">
  355. <textarea name="text" class="form-control form-control-sm" rows="3" id="selected-sc-text" placeholder="Content" required></textarea>
  356. </div>
  357. <div class="mb-0">
  358. <button class="btn btn-primary btn-sm" type="submit">Save</button>
  359. <button class="btn btn-default border btn-sm ml-1" type="reset">Cancel</button>
  360. </div>
  361. </form>
  362. <script>
  363. $(document).ready(function() {
  364. window.toggleChildLinks = function(_element) {
  365. $(_element).closest('.nav-item').toggleClass('nav-child-collapsed');
  366. return false;
  367. }
  368. const debounce = (func, wait) => {
  369. let timeout;
  370. return function executedFunction(...args) {
  371. const later = () => {
  372. clearTimeout(timeout);
  373. func(...args);
  374. };
  375. clearTimeout(timeout);
  376. timeout = setTimeout(later, wait);
  377. };
  378. };
  379. var lastTerm = '';
  380. var returnedFunction = debounce(function() {
  381. var term = $.trim($('#patient-search').val());
  382. if (!!term) {
  383. if(lastTerm !== term) {
  384. $('.patient-search-results.suggestions-outer')
  385. .html('<span class="d-block no-suggest-items">Searching...</span>')
  386. .removeClass('d-none');
  387. $.get('/patients-suggest?term=' + term, function(_data) {
  388. if($.trim($('#patient-search').val()) === term) { // use returned data only if it's for the sent "term"
  389. $('.patient-search-results.suggestions-outer').html(_data).removeClass('d-none');
  390. }
  391. });
  392. lastTerm = term;
  393. }
  394. } else {
  395. $('.patient-search-results.suggestions-outer').addClass('d-none');
  396. }
  397. }, 250);
  398. $('#patient-search')
  399. .off('keydown')
  400. .on('keydown', function(e) {
  401. var activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  402. switch (e.which) {
  403. case 27:
  404. $('.patient-search-results.suggestions-outer').addClass('d-none');
  405. markEventAsConsumed(e);
  406. return false;
  407. case 38:
  408. if (activeItem.prev().length) {
  409. activeItem.prev()
  410. .addClass('active')
  411. .siblings().removeClass('active');
  412. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  413. if (activeItem.length) {
  414. activeItem[0].scrollIntoView();
  415. }
  416. }
  417. return false;
  418. case 40:
  419. if (activeItem.next().length) {
  420. activeItem.next()
  421. .addClass('active')
  422. .siblings().removeClass('active');
  423. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  424. if (activeItem.length) {
  425. activeItem[0].scrollIntoView();
  426. }
  427. }
  428. return false;
  429. case 13:
  430. if (activeItem.length) {
  431. activeItem.first().trigger('mousedown');
  432. }
  433. return false;
  434. default:
  435. window.setTimeout(onQueryChange, 50);
  436. break;
  437. }
  438. })
  439. .on('keypress paste', function(e) {
  440. window.setTimeout(onQueryChange, 50);
  441. })
  442. .on('blur', function(e) {
  443. $('.patient-search-results.suggestions-outer').addClass('d-none');
  444. return false;
  445. })
  446. .on('focus', function(e) {
  447. if (lastTerm) { //if search has content
  448. $('.patient-search-results.suggestions-outer').removeClass('d-none');
  449. }
  450. return false;
  451. });
  452. $(document)
  453. .off('click.on-click-menu', '.on-click-menu>span')
  454. .on('click.on-click-menu', '.on-click-menu>span', function() {
  455. $(this).parent().find('[menu]').first().show();
  456. return false;
  457. });
  458. $('body')
  459. .off('mousedown.on-click-menu-outside-click')
  460. .on('mousedown.on-click-menu-outside-click', function (e) {
  461. if ($(e.target).closest('.on-click-menu').length && $(e.target).closest('.on-click-menu').find('[menu]').is(':visible')) {
  462. return;
  463. }
  464. $('.on-click-menu [menu]').hide();
  465. });
  466. function onQueryChange() {
  467. returnedFunction();
  468. }
  469. $(document).on('mousedown', '.suggest-item.patient-suggest[data-target-uid]', function() {
  470. $('#patient-search').val('');
  471. $('.patient-search-results.suggestions-outer').addClass('d-none');
  472. fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
  473. return false;
  474. });
  475. $(document)
  476. .off('click.tab-link', 'a[tab-link]')
  477. .on('click.tab-link', 'a[tab-link]', function () {
  478. let tab = $(this).attr('tab-link');
  479. $(this).siblings().removeClass('tab-link-active');
  480. $(this).addClass('tab-link-active');
  481. $(this).closest('[tab-links]').siblings('.cm-tab').addClass('d-none');
  482. $(this).closest('[tab-links]').siblings('.cm-tab[tab-key="' + tab + '"]').removeClass('d-none');
  483. // TODO: move to context
  484. if(window.vgBPChart) window.vgBPChart.flush();
  485. if(window.vgWtChart) window.vgWtChart.flush();
  486. return false;
  487. });
  488. addMCInitializer('hide-moes', function() {
  489. $('div[moe] form:not([show])').hide();
  490. });
  491. (function() {
  492. function init() {
  493. $(window).on('resize', adjustStickyHeader);
  494. $(window).on('scroll', adjustStickyHeader);
  495. }
  496. function adjustStickyHeader() {
  497. if($(window).scrollTop() > 0) {
  498. $('.sticky-note-header').addClass('sticky');
  499. }
  500. else {
  501. $('.sticky-note-header').removeClass('sticky');
  502. }
  503. }
  504. addMCInitializer('sticky-note-header', init, '.sticky-note-header');
  505. })();
  506. });
  507. </script>
  508. <script src="/js/click-to-copy.js?v={{config('app.asset_version')}}"></script>
  509. <script src="/js/stag-popup.js?v={{config('app.asset_version')}}"></script>
  510. <script src="/js/stag-suggest.js?v={{config('app.asset_version')}}"></script>
  511. <script src="/js/stag-table-filter.js?v={{config('app.asset_version')}}"></script>
  512. <script src="/js/option-list.js?v={{config('app.asset_version')}}"></script>
  513. <script src="/js/show-on-click.js?v={{config('app.asset_version')}}"></script>
  514. <script src="/js/dq.js?v={{config('app.asset_version')}}"></script>
  515. <script src="/js/icd-autocomplete.js?v={{config('app.asset_version')}}"></script>
  516. <script src="/js/stag-collapsible-card.js?v={{config('app.asset_version')}}"></script>
  517. <script src="/js/stag-scrollbar.js?v={{config('app.asset_version')}}"></script>
  518. @include('app/pdf/viewer')
  519. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.css"/>
  520. <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.js"></script>
  521. <link href="/v-splitter-px/v-splitter.css?v={{config('app.asset_version')}}" rel="stylesheet" >
  522. <script src="/v-splitter-px/v-splitter.js?v={{config('app.asset_version')}}"></script>
  523. </body>
  524. </html>