Browse Source

fixed widget table

Paweł Bukowski 3 years ago
parent
commit
c3828ec410
1 changed files with 8 additions and 1 deletions
  1. 8 1
      resources/views/widgets/table.blade.php

+ 8 - 1
resources/views/widgets/table.blade.php

@@ -14,5 +14,12 @@
         @endforeach
     </tr>
     @endforeach
+    @if (empty($rows))
+        <tr>
+            <td colspan="{!! count($headers) !!}">
+                <div style="margin:5px 0 0 10px;"><span class="help-block" style="margin-bottom:0"><i class="feather icon-alert-circle"></i>&nbsp;{{ trans('admin.no_data') }}</span></div>
+            </td>
+        </tr>
+    @endif
     </tbody>
-</table>
+</table>