Просмотр исходного кода

Don't show deleted time entries

Vijayakrishnan Krishnan 5 лет назад
Родитель
Сommit
a25c37cd51
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      resources/views/app/patient/care-month/dashboard.blade.php

+ 2 - 2
resources/views/app/patient/care-month/dashboard.blade.php

@@ -131,7 +131,7 @@
                     </thead>
                     <tbody>
                     @foreach($entries as $entry)
-                        @if($entry->cm_or_rm === "CM")
+                        @if(!$entry->is_removed && $entry->cm_or_rm === "CM")
                         <tr>
                             <td class="px-2">
                                 <div class="font-weight-bold">{{friendly_date_time($entry->created_at)}}</div>
@@ -225,7 +225,7 @@
                     </thead>
                     <tbody>
                     @foreach($entries as $entry)
-                        @if($entry->cm_or_rm === "RM")
+                        @if(!$entry->is_removed && $entry->cm_or_rm === "RM")
                             <tr>
                                 <td class="px-2">
                                     <div class="font-weight-bold">{{friendly_date_time($entry->created_at)}}</div>