Skip to content

Commit 2b18fd1

Browse files
committed
dont show dots when there is no label
1 parent 3dcf0fd commit 2b18fd1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/resources/views/crud/inc/show_table.blade.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
<tbody>
44
@foreach($columns as $column)
55
<tr>
6-
@if(!empty($column['label']))
7-
<td @if($loop->index === 0) class="border-top-0" @endif>
8-
<strong>{!! $column['label'] !!}:</strong>
9-
</td>
10-
@endif
11-
<td colspan="{{ !empty($column['label']) ? 1 : 2 }}" @if($loop->index === 0) class="border-top-0" @endif>
6+
<td @if($loop->index === 0) class="border-top-0" @endif>
7+
<strong>{!! $column['label'] !!}@if(!empty($column['label'])):@endif</strong>
8+
</td>
9+
<td @if($loop->index === 0) class="border-top-0" @endif>
1210
@php
1311
// create a list of paths to column blade views
1412
// including the configured view_namespaces

0 commit comments

Comments
 (0)