dashboard.blade.php 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @extends ('layouts.template')
  2. @section('content')
  3. <div class="p-3">
  4. <div class="container m-0 mt-4">
  5. <div class="row">
  6. <div class="col-md-4 mcp-theme-1">
  7. <div class="card">
  8. <div class="card-header">
  9. <strong>
  10. <i class="fas fa-chart-bar"></i>
  11. Key Numbers
  12. </strong>
  13. </div>
  14. <div class="card-body p-0">
  15. <table class="table table-condensed table-bordered m-0">
  16. <tbody>
  17. <tr>
  18. <th>{{$keyNumbers['totalPatients']}}</th>
  19. <th><a href="/patients">Total patients</a></th>
  20. </tr>
  21. <tr>
  22. <th>{{$keyNumbers['patientsNotSeenYet']}}</th>
  23. <th><a href="/patients/not-yet-seen">Patients I have not seen yet</a></th>
  24. </tr>
  25. <tr>
  26. <th>{{$keyNumbers['pendingBillsToSign']}}</th>
  27. <th>Pending bills to sign</th>
  28. </tr>
  29. <tr>
  30. <th>{{$keyNumbers['pendingNotesToSign']}}</th>
  31. <th><a href="/notes/not-yet-signed">Pending notes to sign</a></th>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. <div class="card mt-3">
  38. <div class="card-header">
  39. <strong>
  40. Reimbursement
  41. </strong>
  42. </div>
  43. <div class="card-body p-0">
  44. <table class="table table-condensed table-bordered m-0">
  45. <tbody>
  46. <tr>
  47. <th>{{$reimbursement['currentBalance']}}</th>
  48. <th>Current balance</th>
  49. </tr>
  50. <tr>
  51. <th>{{$reimbursement['nextPaymentDate']}}</th>
  52. <th>Next Payment Date</th>
  53. </tr>
  54. <tr>
  55. <th>{{$reimbursement['nextPaymentAmount']}}</th>
  56. <th>Next Payment Amount</th>
  57. </tr>
  58. <tr>
  59. <th>{{$reimbursement['lastPayment']}}</th>
  60. <th>Last payment</th>
  61. </tr>
  62. <tr>
  63. <th>{{$reimbursement['lastPaymentDate']}}</th>
  64. <th>Last payment date</th>
  65. </tr>
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="col-md-8">
  72. <div id='calendar'></div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <script>
  78. var events = JSON.parse('{!! json_encode($appointments) !!}')
  79. function initializeCalendar() {
  80. if (!$("#calendar").length)
  81. return;
  82. var calendarEl = document.getElementById("calendar");
  83. var calendar = new FullCalendar.Calendar(calendarEl, {
  84. initialView: "dayGridMonth",
  85. headerToolbar: {
  86. left: "dayGridMonth,timeGridWeek,timeGridDay",
  87. center: "title",
  88. right: "prevYear,prev,next,nextYear"
  89. },
  90. events: events
  91. });
  92. calendar.render();
  93. }
  94. initializeCalendar();
  95. </script>
  96. @endsection