Skip to content

Commit

Permalink
add v3.0-stable support
Browse files Browse the repository at this point in the history
  • Loading branch information
tubring committed Jul 3, 2024
1 parent 7562da1 commit 0eddefb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/icetalker/filament-table-repeatable-entry/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/icetalker/filament-table-repeatable-entry/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/icetalker/filament-table-repeatable-entry.svg?style=flat-square)](https://packagist.org/packages/icetalker/filament-table-repeatable-entry)

This is a Filament InfolistS Component, use for display RepetableEntry as a table.
This is a Filament Infolists Component, use for display RepetableEntry as a table. In case you are using [TableRepeater]() instead of RelationManager.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
],
"require": {
"php": "^8.1",
"filament/infolists":"3.0-stable",
"filament/infolists":"^3.0||3.0-stable",
"spatie/laravel-package-tools": "^1.14.0",
"illuminate/contracts": "^10.0"
"illuminate/contracts": "^10.0|^11.0"
},
"require-dev": {
"laravel/pint": "^1.0",
Expand Down
6 changes: 3 additions & 3 deletions resources/views/table-repeatable-entry.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ class="gap-4"
@if($showIndex)<th class="filament-table-repeateable-header-cell px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6"></th>@endif
@foreach($getColumnLabels() as $label)

<th class="filament-table-repeateable-header-cell px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6">{{ $label['name'] }}</th>
<th class="it-table-repeateable-header-cell font-semibold text-gray-950 dark:text-white text-start px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6">{{ $label['name'] }}</th>
@endforeach
</tr>
</thead>
<tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
@foreach ($getChildComponentContainers() as $item)
<tr class="{{ $striped ? ($loop->index%2 == 0 ? 'bg-gray-50 dark:bg-white/5' : '') : ''}}">
@if($showIndex)<td class="filament-table-repeateable-cell p-0 first-of-type:ps-1 last-of-type:pe-1 sm:first-of-type:ps-3 sm:last-of-type:pe-3 text-center py-2">{{ $loop->index }}</td>@endif
@if($showIndex)<td class="it-table-repeateable-cell-label p-0 first-of-type:ps-1 last-of-type:pe-1 sm:first-of-type:ps-3 sm:last-of-type:pe-3 text-center py-2">{{ $loop->index }}</td>@endif

@foreach($item->getComponents() as $component)
<td
class="filament-table-repeateable-cell p-0 first-of-type:ps-1 last-of-type:pe-1 sm:first-of-type:ps-3 sm:last-of-type:pe-3 text-center py-2"
class="it-table-repeateable-cell p-0 first-of-type:ps-1 last-of-type:pe-1 sm:first-of-type:ps-3 sm:last-of-type:pe-3 text-center py-2"
>
{{ $component }}
</td>
Expand Down

0 comments on commit 0eddefb

Please sign in to comment.