damann8479's avatar

Pagination

hello, i have a problem with pagination. by me is the pagination about the table. but why?

<x-app-layout>
    <x-myComponents.headline />
    <div class="max-w-7xl mx-auto p-6 lg:p-8 bg-white rounded-md">
        <x-table>
            <x-slot name="heading">
                <x-myComponents.table.heading>
                    Logo
                </x-myComponents.table.heading>
                <x-myComponents.table.heading>
                    Name
                </x-myComponents.table.heading>
            </x-slot>
            @forelse($companies as $company)
                <x-myComponents.table.row>
                    <x-myComponents.table.cell>
                        {{ $company->name }}
                    </x-myComponents.table.cell>
                </x-myComponents.table.row>
            @empty
                <p class="text-xl">No Companies</p>
            @endforelse
            {{ $companies->links() }}
        </x-table>
    </div>
</x-app-layout>
0 likes
3 replies
Snapey's avatar

move links to outside of the table?

damann8479's avatar

@Snapey sorry my my question was not exactly. your right then is under the table. but then is outside of the first div.

Please or to participate in this conversation.