template-no-mc.blade.php 18 KB

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