template.blade.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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. <script src="{{ asset('js/tsvToArray.js') }}"></script>
  55. {{-- WebSockets --}}
  56. <script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.5.0/sockjs.min.js"
  57. integrity="sha512-5yJ548VSnLflcRxWNqVWYeQZnby8D8fJTmYRLyvs445j1XmzR8cnWi85lcHx3CUEeAX+GrK3TqTfzOO6LKDpdw=="
  58. crossorigin="anonymous"></script>
  59. <script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"
  60. integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g=="
  61. crossorigin="anonymous"></script>
  62. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
  63. @yield('head')
  64. </head>
  65. <body>
  66. <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;">
  67. </div>
  68. <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;">
  69. </div>
  70. <nav class="navbar navbar-expand-md navbar-dark stag-primary-bg py-1 mcp-theme-1 px-2">
  71. <a class="navbar-brand" href="{{ route('dashboard') }}">
  72. <img src="/img/logo_white.svg" alt="Leadership Health">
  73. </a>
  74. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navBar" aria-controls="navBar" aria-expanded="false" aria-label="Toggle navigation">
  75. <span class="navbar-toggler-icon"></span>
  76. </button>
  77. <div class="collapse navbar-collapse" id="navBar">
  78. <ul class="navbar-nav mr-auto">
  79. <li class="nav-item"><a class="nav-link" href="{{ route('dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  80. @if($pro)
  81. @if($pro->is_enrolled_as_mcp)
  82. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  83. @elseif($pro->pro_type == 'ADMIN')
  84. <li class="nav-item"><a class="nav-link" href="{{ route('admin.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  85. @else
  86. <li class="nav-item"><a class="nav-link" href="{{ route('dna.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  87. @endif
  88. @endif
  89. @if($pro && ($pro->can_add_patients || $pro->pro_type== 'ADMIN'))
  90. <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>
  91. @endif
  92. @if($pro->is_enrolled_as_mcp)
  93. {{-- <li class="nav-item"><a class="nav-link" href="{{ route('mcp.erx_and_orders') }}">--}}
  94. {{-- <i class="mr-1 fas fa-file-prescription"></i> ERx & Orders--}}
  95. {{-- </a>--}}
  96. {{-- </li>--}}
  97. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.appointments') }}">
  98. <i class="mr-1 fas fa-calendar-alt"></i> Appointments
  99. </a>
  100. </li>
  101. @endif
  102. <li class="nav-item dropdown">
  103. <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  104. <i class="mr-1 fas fa-tasks"></i> Practice
  105. </a>
  106. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  107. @if($pro->pro_type == 'ADMIN')
  108. <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
  109. {{--<a class="dropdown-item" href="{{ route('practice-management.previousBills') }}">Previous Bills</a>--}}
  110. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  111. <a class="dropdown-item" href="/practice-management/bills/not-yet-signed">Pending Bills to Sign</a>
  112. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed">Pending Notes to Sign</a>
  113. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed-but-ally-signed">Pending Notes to Sign (Ally Signed)</a>
  114. <a class="dropdown-item" href="{{ route('practice-management.remote-monitoring') }}">Remote Monitoring</a>
  115. <a class="dropdown-item" href="{{ route('pro-care-month-report') }}">Care Month Report</a>
  116. <a class="dropdown-item" href="{{ route('practice-management.rm-bills-to-sign') }}">RM Bills to Sign</a>
  117. <a class="dropdown-item" href="{{ route('unmapped-sms') }}">Unmapped SMS</a>
  118. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Tickets</a>
  119. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">My Text Shortcuts</a>
  120. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">My Favorites</a>
  121. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Pro Availability</a>
  122. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Pro Calendar</a>
  123. <a class="dropdown-item" href="{{ route('practice-management.remoteMonitoringReport') }}">Remote Monitoring Report</a>
  124. <a class="dropdown-item" href="{{ route('practice-management.rm-launch-and-clean') }}">RM: Launch &amp; Clean</a>
  125. <a class="dropdown-item" href="{{ route('practice-management.billingManager') }}">Billing Manager</a>
  126. <a class="dropdown-item" href="{{ route('practice-management.billing-report') }}">Billing Report</a>
  127. <a class="dropdown-item" href="{{ route('practice-management.processingBillMatrix') }}">Processing Bills</a>
  128. <a class="dropdown-item" href="{{ route('practice-management.pro-financials') }}">Pro Financials</a>
  129. <a class="dropdown-item" href="{{ route('practice-management.cellularMeasurements') }}">Cellular Measurements</a>
  130. <a class="dropdown-item" href="{{ route('practice-management.cellularDeviceManager') }}">Cellular Device Manager</a>
  131. <a class="dropdown-item" href="{{ route('practice-management.medicarePartBClaims') }}">Medicare Part B Claims</a>
  132. <a class="dropdown-item" href="{{ route('practice-management.patientClaimSummary') }}">Patient Claim Summary</a>
  133. <a class="dropdown-item" href="{{ route('practice-management.claims') }}">Claim Matrix</a>
  134. <a class="dropdown-item" href="{{ route('practice-management.process-claims') }}">Process Claims</a>
  135. <a class="dropdown-item" href="{{ route('practice-management.process-notes') }}">Process Notes</a>
  136. <a class="dropdown-item" href="{{ route('practice-management.notes-processing-center') }}">Notes Processing Center</a>
  137. @if($pro->id == '1' || $pro->id == '16')
  138. <a class="dropdown-item" href="{{ route('practice-management.treatmentServiceUtil') }}">Treatment Service Util.</a>
  139. @endif
  140. <a class="dropdown-item" href="{{ route('practice-management.tickets') }}">Tickets</a>
  141. <a class="dropdown-item" href="{{ route('practice-management.supply-orders') }}">Supply Orders</a>
  142. <a class="dropdown-item" href="{{ route('practice-management.shipments') }}">Shipments</a>
  143. <a class="dropdown-item" href="{{ route('practice-management.packs-multi-print') }}">Print Pack Labels</a>
  144. <a class="dropdown-item" href="{{ route('practice-management.handouts') }}">Handouts</a>
  145. <a class="dropdown-item" href="{{ route('practice-management.generic-bills') }}">Generic Bills</a>
  146. <a class="dropdown-item" href="{{ route('practice-management.mc-code-checks') }}">MC Code Checks</a>
  147. <a class="dropdown-item" href="{{ route('practice-management.clauses.list') }}">Clauses</a>
  148. <a class="dropdown-item" href="{{ route('practice-management.statTrees.list') }}">Stat Trees</a>
  149. <a class="dropdown-item" href="/practice-management/rates/all">Payment Rates</a>
  150. <a class="dropdown-item" href="{{ route('practice-management.patientsAccountsInvites') }}">Patients Accounts Invites</a>
  151. <a class="dropdown-item" href="{{ route('practice-management.clientsBdtDevices') }}">Clients BDT Devices</a>
  152. <a class="dropdown-item" href="{{ route('practice-management.memos') }}">Memos</a>
  153. @elseif($pro->is_enrolled_as_mcp)
  154. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  155. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">Text Shortcuts</a>
  156. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">Favorites</a>
  157. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Availability</a>
  158. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Calendar</a>
  159. <a class="dropdown-item" href="{{ route('practice-management.remoteMonitoringReport') }}">Remote Monitoring Report</a>
  160. <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
  161. <a class="dropdown-item" href="{{ route('mcp.notes') }}">Notes</a>
  162. <a class="dropdown-item" href="{{ route('mcp.memos') }}">Memos</a>
  163. <a class="dropdown-item" href="{{ route('mcp.appointments') }}">Appointments</a>
  164. <a class="dropdown-item" href="{{ route('mcp.bills') }}">Bills</a>
  165. <a class="dropdown-item" href="{{ route('mcp.erx_and_orders') }}">ERx & Orders</a>
  166. <a class="dropdown-item" href="{{ route('mcp.reports') }}">Reports</a>
  167. <a class="dropdown-item" href="{{ route('mcp.supply_orders') }}">Supply Orders</a>
  168. <a class="dropdown-item" href="{{ route('mcp.client_messages') }}">Messages</a>
  169. <a class="dropdown-item" href="{{ route('mcp.patients_accounts_invites') }}">Patients Accounts Invites</a>
  170. <a class="dropdown-item" href="{{ route('mcp.clients_bdt_devices') }}">Clients BDT Devices</a>
  171. @elseif($pro && $pro->isDefaultNA())
  172. <a class="dropdown-item" href="/practice-management/my-teams">My Teams</a>
  173. <a class="dropdown-item" href="{{ route('dna.encounters') }}">Encounters</a>
  174. <a class="dropdown-item" href="{{ route('dna.appointments') }}">Appointments</a>
  175. <a class="dropdown-item" href="{{ route('dna.careMonths') }}">Care Months</a>
  176. <a class="dropdown-item" href="{{ route('dna.financialTransactions') }}">Financial Transactions</a>
  177. <a class="dropdown-item" href="{{ route('dna.myBills') }}">My Bills</a>
  178. <a class="dropdown-item" href="{{ route('dna.myClinicalTeams') }}">My Clinical Teams</a>
  179. @endif
  180. </div>
  181. </li>
  182. </ul>
  183. {{-- if pro is working on a client and is not in tht client
  184. <div class="current-work mr-2">
  185. @include('app/current-work')
  186. </div> --}}
  187. <a href="#" class="mr-2 text-white small" onclick="return fastReload()"><i class="fa fa-sync"></i></a>
  188. <div class="d-inline-flex pr-2 mcp-theme-1 position-relative">
  189. <input id="patient-search" type="search" class="form-control form-control-sm outline-0" autocomplete="off" placeholder="Search Patients">
  190. <div class="patient-search-results suggestions-outer position-absolute d-none">
  191. </div>
  192. </div>
  193. <div class="d-flex align-items-center">
  194. <div class="dropdown">
  195. <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">
  196. <span class="text-white my-0 small">Hi, <b title="Cell# {{$pro->cell_number}}">{{ $pro->name_first }}!</b></span>
  197. </a>
  198. <div class="dropdown-menu dropdown-menu-right mcp-theme-1 pt-0 pb-1" aria-labelledby="account-menu">
  199. @if($performer->logged_in_as_pro_from_admin_pro_app_session_id)
  200. <form action="{{route('back-to-admin-pro')}}" method="post" target="_top" class="d-block pt-1">
  201. @csrf
  202. <button class="d-block ml-2 back-to-admin-button">
  203. Back to Admin
  204. </button>
  205. </form>
  206. @endif
  207. @if($pro->pro_type == 'ADMIN')
  208. <a href="{{route('log-in-as')}}" native target="_top" class="d-block ml-2 pt-1">Log In As</a>
  209. @endif
  210. @if($pro->pro_type == 'ADMIN')
  211. <a native target="_top" class="d-block ml-2 pt-1"
  212. href="{{config('stag.adminPortalUrl')}}/pro_log_in_with_session_key/{{$performer->session_key}}" title="">
  213. Admin
  214. </a>
  215. @endif
  216. <a native target="_top" class="d-block ml-2 pt-1" href="{{config('stag.authUrl')}}" title="">
  217. Return to Home
  218. </a>
  219. <a native target="_top" href="{{route('logout')}}" class="d-block ml-2 pt-1">
  220. Sign Out
  221. </a>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <a href="#" class="stag_rhs_toggle d-none d-md-block text-white" title="Toggle Video Pane">
  227. <i class="fa fa-arrow-right"></i>
  228. </a>
  229. </nav>
  230. <main role="main" class="stag-content px-0">
  231. @yield('content')
  232. </main><!-- /.container -->
  233. <!-- shortcut/suggest component -->
  234. <link href="/css/shortcut.css?v={{config('app.asset_version')}}" rel=stylesheet>
  235. <script src="/js/shortcut.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  236. <!-- pro suggest component -->
  237. <script src="/js/pro-suggest.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  238. <!-- script to handle history/back/forward for mc/xxx pages
  239. + all other JS initialization needed in fastLoaded pages -->
  240. <script src="/js/find-event-handlers.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  241. <script src="/js/mc.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  242. <form url="/api/proTextShortcut/create" id="create-shortcut-form" class="mcp-theme-1">
  243. <input type="hidden" name="proUid" value="{{ $pro->uid }}">
  244. <div class="mb-2">
  245. <input type="text" class="form-control form-control-sm" name="shortcut" value="" placeholder="Shortcut Name" required>
  246. </div>
  247. <div class="mb-2">
  248. <textarea name="text" class="form-control form-control-sm" rows="3" id="selected-sc-text" placeholder="Content" required></textarea>
  249. </div>
  250. <div class="mb-0">
  251. <button class="btn btn-primary btn-sm" type="submit">Save</button>
  252. <button class="btn btn-default border btn-sm ml-1" type="reset">Cancel</button>
  253. </div>
  254. </form>
  255. <script>
  256. $(document).ready(function() {
  257. window.toggleChildLinks = function(_element) {
  258. $(_element).closest('.nav-item').toggleClass('nav-child-collapsed');
  259. return false;
  260. }
  261. const debounce = (func, wait) => {
  262. let timeout;
  263. return function executedFunction(...args) {
  264. const later = () => {
  265. clearTimeout(timeout);
  266. func(...args);
  267. };
  268. clearTimeout(timeout);
  269. timeout = setTimeout(later, wait);
  270. };
  271. };
  272. var lastTerm = '';
  273. var returnedFunction = debounce(function() {
  274. var term = $.trim($('#patient-search').val());
  275. if (!!term) {
  276. if(lastTerm !== term) {
  277. $('.patient-search-results.suggestions-outer')
  278. .html('<span class="d-block no-suggest-items">Searching...</span>')
  279. .removeClass('d-none');
  280. $.get('/patients-suggest?term=' + term, function(_data) {
  281. $('.patient-search-results.suggestions-outer').html(_data).removeClass('d-none');
  282. });
  283. lastTerm = term;
  284. }
  285. } else {
  286. $('.patient-search-results.suggestions-outer').addClass('d-none');
  287. }
  288. }, 250);
  289. $('#patient-search')
  290. .off('keydown')
  291. .on('keydown', function(e) {
  292. var activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  293. switch (e.which) {
  294. case 27:
  295. $('.patient-search-results.suggestions-outer').addClass('d-none');
  296. markEventAsConsumed(e);
  297. return false;
  298. case 38:
  299. if (activeItem.prev().length) {
  300. activeItem.prev()
  301. .addClass('active')
  302. .siblings().removeClass('active');
  303. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  304. if (activeItem.length) {
  305. activeItem[0].scrollIntoView();
  306. }
  307. }
  308. return false;
  309. case 40:
  310. if (activeItem.next().length) {
  311. activeItem.next()
  312. .addClass('active')
  313. .siblings().removeClass('active');
  314. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  315. if (activeItem.length) {
  316. activeItem[0].scrollIntoView();
  317. }
  318. }
  319. return false;
  320. case 13:
  321. if (activeItem.length) {
  322. activeItem.first().click();
  323. }
  324. return false;
  325. default:
  326. window.setTimeout(onQueryChange, 50);
  327. break;
  328. }
  329. })
  330. .on('keypress paste', function(e) {
  331. window.setTimeout(onQueryChange, 50);
  332. })
  333. .on('blur', function(e) {
  334. $('.patient-search-results.suggestions-outer').addClass('d-none');
  335. return false;
  336. });
  337. $(document)
  338. .off('click.on-click-menu', '.on-click-menu>span')
  339. .on('click.on-click-menu', '.on-click-menu>span', function() {
  340. $(this).parent().find('[menu]').first().show();
  341. return false;
  342. });
  343. $('body')
  344. .off('mousedown.on-click-menu-outside-click')
  345. .on('mousedown.on-click-menu-outside-click', function (e) {
  346. if ($(e.target).closest('.on-click-menu').length) {
  347. return;
  348. }
  349. $('.on-click-menu [menu]').hide();
  350. });
  351. function onQueryChange() {
  352. returnedFunction();
  353. }
  354. $(document).on('mousedown', '.suggest-item.patient-suggest[data-target-uid]', function() {
  355. $('#patient-search').val('');
  356. $('.patient-search-results.suggestions-outer').addClass('d-none');
  357. fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
  358. return false;
  359. });
  360. $(document)
  361. .off('click.tab-link', 'a[tab-link]')
  362. .on('click.tab-link', 'a[tab-link]', function () {
  363. let tab = $(this).attr('tab-link');
  364. $(this).siblings().removeClass('tab-link-active');
  365. $(this).addClass('tab-link-active');
  366. $('.cm-tab').addClass('d-none');
  367. $('.cm-tab[tab-key="' + tab + '"]').removeClass('d-none');
  368. return false;
  369. });
  370. });
  371. </script>
  372. <script src="/js/click-to-copy.js?v={{config('app.asset_version')}}"></script>
  373. <script src="/js/stag-popup.js?v={{config('app.asset_version')}}"></script>
  374. <script src="/js/stag-suggest.js?v={{config('app.asset_version')}}"></script>
  375. <script src="/js/stag-table-filter.js?v={{config('app.asset_version')}}"></script>
  376. <script src="/js/option-list.js?v={{config('app.asset_version')}}"></script>
  377. <script src="/js/show-on-click.js?v={{config('app.asset_version')}}"></script>
  378. <script src="/js/dq.js?v={{config('app.asset_version')}}"></script>
  379. <script src="/js/icd-autocomplete.js?v={{config('app.asset_version')}}"></script>
  380. <script src="/js/stag-collapsible-card.js?v={{config('app.asset_version')}}"></script>
  381. @include('app/pdf/viewer')
  382. @if(config('app.enableSockets'))
  383. <script>
  384. window.socketClient = Stomp.over(new SockJS("{{ config('app.backend_ws_url') }}"));
  385. window.socketClient.debug = function(str) {};
  386. window.socketClient.connect({}, (frame) => {
  387. window.socketClient.send("/app/register", {}, // register self
  388. JSON.stringify({
  389. sessionKey: '{{$performer->session_key}}'
  390. })
  391. );
  392. window.socketClient.subscribe("/user/topic/myCurrentProClientWork", function(message) {
  393. console.log("You have a client pro work: ", message);
  394. $.get('/current-work', function(_data) {
  395. $('.current-work').html(_data);
  396. //initFastLoad($('.current-work'));
  397. fastReload();
  398. });
  399. });
  400. window.socketClient.subscribe("/user/topic/killMyCurrentProClientWork", function(message) {
  401. console.log("You have killed your current pro client work: ", message);
  402. $.get('/current-work', function(_data) {
  403. $('.current-work').html(_data);
  404. //initFastLoad($('.current-work'));
  405. fastReload();
  406. });
  407. });
  408. });
  409. </script>
  410. @endif
  411. <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"/>
  412. <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>
  413. </body>
  414. </html>