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