dashboard.blade.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @extends ('layouts.template')
  2. @section('content')
  3. <div class="mt-3">
  4. <div class="container m-0 mt-4">
  5. <div class="row">
  6. <div class="col-md-4">
  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>Total patients</th>
  20. </tr>
  21. <tr>
  22. <th>{{$keyNumbers['patientsNotSeenYet']}}</th>
  23. <th>Patients I have not seen yet</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>Pending notes to sign</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['lastPayment']}}</th>
  56. <th>Last payment</th>
  57. </tr>
  58. <tr>
  59. <th>{{$reimbursement['lastPaymentDate']}}</th>
  60. <th>Last payment date</th>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="col-md-8">
  68. <div id='calendar'></div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <script>
  74. var events = JSON.parse('{!! json_encode($appointments) !!}')
  75. function initializeCalendar() {
  76. if (!$("#calendar").length)
  77. return;
  78. var calendarEl = document.getElementById("calendar");
  79. var calendar = new FullCalendar.Calendar(calendarEl, {
  80. initialView: "dayGridMonth",
  81. headerToolbar: {
  82. left: "dayGridMonth,timeGridWeek,timeGridDay",
  83. center: "title",
  84. right: "prevYear,prev,next,nextYear"
  85. },
  86. events: events
  87. });
  88. calendar.render();
  89. }
  90. initializeCalendar();
  91. </script>
  92. @endsection