HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers95/rentman.io/resources/views/site/organisms/componentables/table.blade.php
@section('componentable-area-' . $loop->iteration)

    <table class="o-table__table">
        <thead class="o-table__head">
        <tr class="o-table__head-row">
            @foreach($component->rows[0] as $headerColumn)
                <th class="o-table__head-item" style="--colums: {{count($component->rows[0])}}">

                    @if(!empty($headerColumn->link))
                        <a class="o-table__anchor" href="{{$headerColumn->link }}">
                            {{ $headerColumn->text }}
                            @include('site.components.icons.arrow')
                        </a>
                    @else
                        {{ $headerColumn->text }}
                    @endif

                </th>
            @endforeach
        </tr>
        </thead>
        <tbody class="o-table__body">
            @foreach($component->rows as $tableRow)
                @continue($loop->first)

                <tr class="o-table__body-row" style="--colums: {{count($component->rows[0])}}">
                    @foreach($tableRow as $rowColumn)

                        @if(!empty($rowColumn->link))
                            <td data-label="XD" class="o-table__body-item">
                                <a class="o-table__anchor" href="{{ $rowColumn->link  }}">
                                    {{ $rowColumn->text }}  @include('site.components.icons.arrow')
                                </a>
                            </td>
                        @else
                            <td class="o-table__body-item">
                                {{ $rowColumn->text }}
                            </td>
                        @endif

                    @endforeach
                </tr>

            @endforeach
        </tbody>
    </table>

</div>

@endsection

@include('site.organisms.componentables.componentLayout')