summaryrefslogtreecommitdiff
path: root/resources/views/table.blade.php
blob: 1938b48eb941945af5bcb64e47cbd257b4bd3ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div>
    <table class="table">
        <thead>
            <tr>
                @foreach($columns as $column)
                    <th>{{ $column->title }}</th>
                @endforeach
            </tr>
        </thead>
        <tbody>
            @foreach($data as $row)
                <tr>
                    @foreach($columns as $column)
                        {{ $column->view($row) }}
                    @endforeach
                </tr>
            @endforeach
        </tbody>
    </table>
    <div class="table-pagination d-flex justify-content-between align-items-center">
        {{ $data->links() }}
        <div>
            {{ __('Showing') }} {{ $data->count() }}
            {{ __('of') }} {{ $data->total() }}

        </div>
    </div>
</div>