Skip empty columns in the dashboard edit-list title block

This commit is contained in:
Kevin MacMartin 2017-01-04 23:28:37 -05:00
parent 01fcbd5cef
commit 1292201b05

View file

@ -31,11 +31,13 @@
<div class="title">
@if(is_array($column))
@foreach($column as $col)
@if($row[$col] != '')
<div class="column">{{ $row[$col] }}</div>
@if(!$loop->last)
<div class="column">|</div>
@endif
@endif
@endforeach
@else
{{ $row[$column] }}