소스 검색

Merge pull request #1678 from shacky/widget_table_no_data

Tall 3 년 전
부모
커밋
d7d9eacc28
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  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>