template.blade.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. <title>{{ config('app.name') }}</title>
  7. <!-- Fonts -->
  8. <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
  9. {{-- mc initializers --}}
  10. <script src="/js/mc-init.js?v={{config('app.asset_version')}}"></script>
  11. {{-- vue --}}
  12. <script src="/js/vue.js"></script>
  13. {{-- Quill RTE --}}
  14. <script>
  15. window.stagQuillConfig = {
  16. toolbar: ['bold', 'italic', 'underline', { 'list': 'ordered'}, { 'list': 'bullet' }],
  17. keyboard: {
  18. bindings: {
  19. handleEnter: {
  20. key: 13,
  21. handler: function() {
  22. if(!$('.stag-shortcuts:visible').length) return true;
  23. }
  24. }
  25. }
  26. }
  27. };
  28. </script>
  29. <link href="/quill/quill.snow.css" rel="stylesheet">
  30. <script src="/quill/quill.js"></script>
  31. <!-- <link href="{{ asset('bootstrap-4.5.0/css/bootstrap.css') }}" rel="stylesheet"> -->
  32. <link rel="stylesheet" href="/fontawesome-free-5.13.1-web/css/all.min.css">
  33. <link href="{{ asset('/css/app.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  34. <link href="{{ asset('/css/style.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  35. <link href="{{ asset('/css/yemi.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  36. <link rel="stylesheet" href="{{ asset('/css/toastr.min.css') }}">
  37. <link href="{{asset('/css/z.css')}}?v={{config('app.asset_version')}}" rel=stylesheet>
  38. <!-- Styles -->
  39. <script src="{{ asset('js/app.js') }}?v={{config('app.asset_version')}}" type="application/javascript"></script>
  40. <script src="/js/jquery-3.5.1.min.js"></script>
  41. <script src="/js/jquery.form.min.js"></script>
  42. <script src="{{ asset('js/toastr.min.js') }}" type="application/javascript"></script>
  43. <script src="/js/yemi.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  44. {{-- med ac --}}
  45. <link href='/css/autocomplete-lhc.min.css' rel="stylesheet">
  46. <script src='/js/autocomplete-lhc.js'></script>
  47. {{-- inline bootstrap datepicker --}}
  48. {{-- <link href='/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css' rel="stylesheet">
  49. <script src='/bootstrap-datepicker/js/bootstrap-datepicker.min.js'></script>--}}
  50. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  51. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  52. {{-- pdfjs --}}
  53. <script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
  54. {{-- WebSockets --}}
  55. <script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.5.0/sockjs.min.js"
  56. integrity="sha512-5yJ548VSnLflcRxWNqVWYeQZnby8D8fJTmYRLyvs445j1XmzR8cnWi85lcHx3CUEeAX+GrK3TqTfzOO6LKDpdw=="
  57. crossorigin="anonymous"></script>
  58. <script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"
  59. integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g=="
  60. crossorigin="anonymous"></script>
  61. @yield('head')
  62. </head>
  63. <body>
  64. <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;">
  65. </div>
  66. <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;">
  67. </div>
  68. <nav class="navbar navbar-expand-md navbar-dark stag-primary-bg py-1 mcp-theme-1 px-2">
  69. <a class="navbar-brand" href="{{ route('dashboard') }}">
  70. <img src="/img/logo_white.svg" alt="Leadership Health">
  71. </a>
  72. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navBar" aria-controls="navBar" aria-expanded="false" aria-label="Toggle navigation">
  73. <span class="navbar-toggler-icon"></span>
  74. </button>
  75. <div class="collapse navbar-collapse" id="navBar">
  76. <ul class="navbar-nav mr-auto">
  77. <li class="nav-item"><a class="nav-link" href="{{ route('dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  78. <li class="nav-item"><a class="nav-link" href="{{ route('patients') }}"><i class="mr-1 fas fa-user-injured"></i> Patients</a> </li>
  79. @if($pro && ($pro->can_add_patients || $pro->pro_type== 'ADMIN'))
  80. <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>
  81. <!-- <li class="nav-item"><a class="nav-link" href="{{ route('new-non-mcn-patient') }}"><i class="mr-1 fas fa-user-plus"></i> New Non Medicare Patient</a> </li>-->
  82. @endif
  83. <li class="nav-item dropdown">
  84. <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="mr-1 fas fa-tasks"></i> Practice</a>
  85. <div class="dropdown-menu mcp-theme-1 no-overflow-menu" aria-labelledby="practice-management">
  86. {{--<a class="dropdown-item" href="{{ route('practice-management.dashboard') }}">Dashboard</a>--}}
  87. @if($pro && $pro->pro_type == 'ADMIN')
  88. <a class="dropdown-item" href="/practice-management/rates/all">Payment Rates</a>
  89. @endif
  90. {{--<a class="dropdown-item" href="{{ route('practice-management.previousBills') }}">Previous Bills</a>--}}
  91. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  92. <a class="dropdown-item" href="/practice-management/bills/not-yet-signed">Pending Bills to Sign</a>
  93. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed">Pending Notes to Sign</a>
  94. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed-but-ally-signed">Pending Notes to Sign (Ally Signed)</a>
  95. <a class="dropdown-item" href="{{ route('unmapped-sms') }}">Unmapped SMS</a>
  96. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Tickets</a>
  97. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">My Text Shortcuts</a>
  98. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">My Favorites</a>
  99. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Pro Availability</a>
  100. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Pro Calendar</a>
  101. <a class="dropdown-item" href="{{ route('practice-management.remoteMonitoringReport') }}">Remote Monitoring Report</a>
  102. <a class="dropdown-item" href="{{ route('practice-management.billingManager') }}">Billing Manager</a>
  103. <a class="dropdown-item" href="{{ route('practice-management.billing-report') }}">Billing Report</a>
  104. @if($pro && $pro->pro_type == 'ADMIN')
  105. <a class="dropdown-item" href="{{ route('practice-management.processingBillMatrix') }}">Processing Bills</a>
  106. <a class="dropdown-item" href="{{ route('practice-management.cellularMeasurements') }}">Cellular Measurements</a>
  107. <a class="dropdown-item" href="{{ route('practice-management.cellularDeviceManager') }}">Cellular Device Manager</a>
  108. <a class="dropdown-item" href="{{ route('practice-management.medicarePartBClaims') }}">Medicare Part B Claims</a>
  109. <a class="dropdown-item" href="{{ route('practice-management.patientClaimSummary') }}">Patient Claim Summary</a>
  110. <a class="dropdown-item" href="{{ route('practice-management.claims') }}">Claim Matrix</a>
  111. <a class="dropdown-item" href="{{ route('practice-management.process-claims') }}">Process Claims</a>
  112. <a class="dropdown-item" href="{{ route('practice-management.process-notes') }}">Process Notes</a>
  113. {{-- <a class="dropdown-item" href="{{ route('practice-management.hcpBillMatrix') }}">HCP Bill Matrix</a>--}}
  114. @if(false)
  115. <a class="dropdown-item" href="{{ route('practice-management.treatmentServiceUtil') }}">Treatment Service Util.</a>
  116. @endif
  117. <a class="dropdown-item" href="{{ route('practice-management.tickets') }}">Tickets</a>
  118. <a class="dropdown-item" href="{{ route('practice-management.supply-orders') }}">Supply Orders</a>
  119. <a class="dropdown-item" href="{{ route('practice-management.shipments') }}">Shipments</a>
  120. <a class="dropdown-item" href="{{ route('practice-management.packs-multi-print') }}">Print Pack Labels</a>
  121. <a class="dropdown-item" href="{{ route('practice-management.handouts') }}">Handouts</a>
  122. <a class="dropdown-item" href="{{ route('practice-management.generic-bills') }}">Generic Bills</a>
  123. @endif
  124. </div>
  125. </li>
  126. </ul>
  127. {{-- if pro is working on a client and is not in tht client --}}
  128. <div class="current-work mr-2">
  129. @include('app/current-work')
  130. </div>
  131. <a href="#" class="mr-2 text-white small" onclick="return fastReload()"><i class="fa fa-sync"></i></a>
  132. <div class="d-inline-flex pr-2 mcp-theme-1 position-relative">
  133. <input id="patient-search" type="search" class="form-control form-control-sm outline-0" autocomplete="off" placeholder="Search Patients">
  134. <div class="patient-search-results suggestions-outer position-absolute d-none">
  135. </div>
  136. </div>
  137. <div class="d-flex align-items-center">
  138. <div class="dropdown">
  139. <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">
  140. <span class="text-white my-0 small">Hi, <b title="Cell# {{$pro->cell_number}}">{{ $pro->name_first }}!</b></span>
  141. </a>
  142. <div class="dropdown-menu dropdown-menu-right mcp-theme-1 pt-0 pb-1" aria-labelledby="account-menu">
  143. @if($performer->logged_in_as_pro_from_admin_pro_app_session_id)
  144. <form action="{{route('back-to-admin-pro')}}" method="post" target="_top" class="d-block pt-1">
  145. @csrf
  146. <button class="d-block ml-2 back-to-admin-button">
  147. Back to Admin
  148. </button>
  149. </form>
  150. @endif
  151. @if($pro->pro_type == 'ADMIN')
  152. <a href="{{route('log-in-as')}}" native target="_top" class="d-block ml-2 pt-1">Log In As</a>
  153. @endif
  154. @if($pro->pro_type == 'ADMIN')
  155. <a native target="_top" class="d-block ml-2 pt-1"
  156. href="{{config('stag.adminPortalUrl')}}/pro_log_in_with_session_key/{{$performer->session_key}}" title="">
  157. Admin
  158. </a>
  159. @endif
  160. <a native target="_top" class="d-block ml-2 pt-1" href="{{config('stag.authUrl')}}" title="">
  161. Return to Home
  162. </a>
  163. <a native target="_top" href="{{route('logout')}}" class="d-block ml-2 pt-1">
  164. Sign Out
  165. </a>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. <a href="#" class="stag_rhs_toggle d-none d-md-block text-white" title="Toggle Video Pane">
  171. <i class="fa fa-arrow-right"></i>
  172. </a>
  173. </nav>
  174. <main role="main" class="stag-content px-0">
  175. @yield('content')
  176. </main><!-- /.container -->
  177. <!-- shortcut/suggest component -->
  178. <link href="/css/shortcut.css?v={{config('app.asset_version')}}" rel=stylesheet>
  179. <script src="/js/shortcut.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  180. <!-- pro suggest component -->
  181. <script src="/js/pro-suggest.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  182. <!-- script to handle history/back/forward for mc/xxx pages
  183. + all other JS initialization needed in fastLoaded pages -->
  184. <script src="/js/find-event-handlers.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  185. <script src="/js/mc.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  186. <form url="/api/proTextShortcut/create" id="create-shortcut-form" class="mcp-theme-1">
  187. <input type="hidden" name="proUid" value="{{ $pro->uid }}">
  188. <div class="mb-2">
  189. <input type="text" class="form-control form-control-sm" name="shortcut" value="" placeholder="Shortcut Name" required>
  190. </div>
  191. <div class="mb-2">
  192. <textarea name="text" class="form-control form-control-sm" rows="3" id="selected-sc-text" placeholder="Content" required></textarea>
  193. </div>
  194. <div class="mb-0">
  195. <button class="btn btn-primary btn-sm" type="submit">Save</button>
  196. <button class="btn btn-default border btn-sm ml-1" type="reset">Cancel</button>
  197. </div>
  198. </form>
  199. <script>
  200. $(document).ready(function() {
  201. window.toggleChildLinks = function(_element) {
  202. $(_element).closest('.nav-item').toggleClass('nav-child-collapsed');
  203. return false;
  204. }
  205. const debounce = (func, wait) => {
  206. let timeout;
  207. return function executedFunction(...args) {
  208. const later = () => {
  209. clearTimeout(timeout);
  210. func(...args);
  211. };
  212. clearTimeout(timeout);
  213. timeout = setTimeout(later, wait);
  214. };
  215. };
  216. var lastTerm = '';
  217. var returnedFunction = debounce(function() {
  218. var term = $.trim($('#patient-search').val());
  219. if (!!term && lastTerm !== term) {
  220. $.get('/patients-suggest?term=' + term, function(_data) {
  221. $('.patient-search-results.suggestions-outer').html(_data).removeClass('d-none');
  222. });
  223. lastTerm = term;
  224. } else {
  225. $('.patient-search-results.suggestions-outer').addClass('d-none');
  226. }
  227. }, 250);
  228. $('#patient-search')
  229. .off('keydown')
  230. .on('keydown', function(e) {
  231. var activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  232. switch (e.which) {
  233. case 27:
  234. $('.patient-search-results.suggestions-outer').addClass('d-none');
  235. return false;
  236. case 38:
  237. if (activeItem.prev().length) {
  238. activeItem.prev()
  239. .addClass('active')
  240. .siblings().removeClass('active');
  241. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  242. if (activeItem.length) {
  243. activeItem[0].scrollIntoView();
  244. }
  245. }
  246. return false;
  247. case 40:
  248. if (activeItem.next().length) {
  249. activeItem.next()
  250. .addClass('active')
  251. .siblings().removeClass('active');
  252. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  253. if (activeItem.length) {
  254. activeItem[0].scrollIntoView();
  255. }
  256. }
  257. return false;
  258. case 13:
  259. if (activeItem.length) {
  260. activeItem.first().click();
  261. }
  262. return false;
  263. default:
  264. window.setTimeout(onQueryChange, 50);
  265. break;
  266. }
  267. })
  268. .on('keypress paste', function(e) {
  269. window.setTimeout(onQueryChange, 50);
  270. })
  271. .on('blur', function(e) {
  272. $('.patient-search-results.suggestions-outer').addClass('d-none');
  273. return false;
  274. });
  275. function onQueryChange() {
  276. var term = $.trim($('#patient-search').val());
  277. if (!!term) {
  278. $('.patient-search-results.suggestions-outer')
  279. .html('<span class="d-block no-suggest-items">Searching...</span>')
  280. .removeClass('d-none');
  281. returnedFunction();
  282. } else {
  283. $('.patient-search-results.suggestions-outer').addClass('d-none');
  284. }
  285. }
  286. $(document).on('mousedown', '.suggest-item.patient-suggest[data-target-uid]', function() {
  287. $('#patient-search').val('');
  288. $('.patient-search-results.suggestions-outer').addClass('d-none');
  289. fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
  290. return false;
  291. });
  292. });
  293. </script>
  294. <script src="/js/click-to-copy.js?v={{config('app.asset_version')}}"></script>
  295. <script src="/js/stag-popup.js?v={{config('app.asset_version')}}"></script>
  296. <script src="/js/option-list.js?v={{config('app.asset_version')}}"></script>
  297. @include('app/pdf/viewer')
  298. @if(config('app.enableSockets'))
  299. <script>
  300. window.socketClient = Stomp.over(new SockJS("{{ config('app.backend_ws_url') }}"));
  301. window.socketClient.debug = function(str) {};
  302. window.socketClient.connect({}, (frame) => {
  303. window.socketClient.send("/app/register", {}, // register self
  304. JSON.stringify({
  305. sessionKey: '{{$performer->session_key}}'
  306. })
  307. );
  308. window.socketClient.subscribe("/user/topic/myCurrentProClientWork", function(message) {
  309. console.log("You have a client pro work: ", message);
  310. $.get('/current-work', function(_data) {
  311. $('.current-work').html(_data);
  312. //initFastLoad($('.current-work'));
  313. fastReload();
  314. });
  315. });
  316. window.socketClient.subscribe("/user/topic/killMyCurrentProClientWork", function(message) {
  317. console.log("You have killed your current pro client work: ", message);
  318. $.get('/current-work', function(_data) {
  319. $('.current-work').html(_data);
  320. //initFastLoad($('.current-work'));
  321. fastReload();
  322. });
  323. });
  324. });
  325. </script>
  326. @endif
  327. <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"/>
  328. <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>
  329. </body>
  330. </html>