Skip to content

Commit

Permalink
up table column group like section for form
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Dec 6, 2023
1 parent bb8d460 commit 3981b3a
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions Resources/views/filament/tables/columns/group.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@
$fields=$getFields();
$record=$getRecord();
@endphp
<div>
<table >
<div
{{
$attributes
->merge($getExtraAttributes(), escape: false)
->class([
'fi-ta-icon flex flex-wrap gap-1.5',
'px-3 py-4' => ! $isInline(),
//'flex-col' => $isListWithLineBreaks(),
'flex-col' => true,
])
}}
>
@foreach($fields as $field)
<tr>
{{--
<td>{{ $field->getName() }}</td>
--}}
<td>{{ $field->record($record)->getState() }}</td>
</tr>

{!! str_replace(', ',',<br/>',$field->record($record)->getState()) !!}
<br/>
{{--
{{ $field->record($record) }}
--}}
@endforeach
</table>


</div>

0 comments on commit 3981b3a

Please sign in to comment.