|
9 | 9 | <div class="table-responsive table mt-2" id="dataTable" role="grid" aria-describedby="dataTable_info"> |
10 | 10 | <table class="table table-striped my-0 text-center align-middle" id="dataTable"> |
11 | 11 | <thead> |
12 | | - <tr> |
13 | | - <th style="width: 10%;">{{ __( 'id' ) }}</th> |
14 | | - <th style="width: 20%;">{{ __( 'username' ) }}</th> |
15 | | - <th style="width: 15%;">{{ __( 'wiki' ) }}</th> |
16 | | - <th style="width: 10%;">{{ __( 'ial-type' ) }}</th> |
17 | | - <th style="width: 35%">{{ __( 'comments' ) }}</th> |
18 | | - <th style="width: 10%;">{{ __( 'assigned' ) }}</th> |
19 | | - </tr> |
20 | | - </thead> |
21 | | - <tbody> |
22 | | - @foreach ( $ials as $ial ) |
23 | 12 | <tr> |
24 | | - <td>{{ $ial->id }}</td> |
25 | | - <td><a class="nav-link" href="/user/{{ $ial->user->id }}">{{ $ial->user->username }}</a></td> |
26 | | - <td>{{ $ial->wiki }}</td> |
27 | | - <td>{{ $ial->type }}</td> |
28 | | - <td>{{ $ial->comments }}</td> |
29 | | - @if ( $ial->dpa ) |
30 | | - <td><a class="nav-link" href="/dpa/{{ $ial->dpa }}">{{ __( 'dpa' ) }}</a></td> |
31 | | - @elseif ( $ial->investigation ) |
32 | | - <td><a class="nav-link" href="/investigation/{{ $ial->investigation }}">{{ __( 'investigation' ) }}</a></td> |
33 | | - @else |
34 | | - <td> |
35 | | - <button class="btn btn-danger text-white" type="button" data-bs-target="#ial-{{ $ial->id }}-modal" data-bs-toggle="modal"> |
36 | | - <i class="fa-solid fa-link"></i> {{ __( 'assign' ) }} |
37 | | - </button> |
38 | | - </td> |
39 | | - @endif |
| 13 | + <th style="width: 10%;">{{ __( 'id' ) }}</th> |
| 14 | + <th style="width: 20%;">{{ __( 'username' ) }}</th> |
| 15 | + <th style="width: 15%;">{{ __( 'wiki' ) }}</th> |
| 16 | + <th style="width: 10%;">{{ __( 'ial-type' ) }}</th> |
| 17 | + <th style="width: 35%">{{ __( 'comments' ) }}</th> |
| 18 | + <th style="width: 10%;">{{ __( 'assigned' ) }}</th> |
40 | 19 | </tr> |
41 | | - @endforeach |
| 20 | + </thead> |
| 21 | + <tbody> |
| 22 | + @foreach ( $ials as $ial ) |
| 23 | + <tr> |
| 24 | + <td>{{ $ial->id }}</td> |
| 25 | + <td><a class="nav-link" href="/user/{{ $ial->user->id }}">{{ $ial->user->username }}</a></td> |
| 26 | + <td>{{ $ial->wiki }}</td> |
| 27 | + <td>{{ $ial->type }}</td> |
| 28 | + <td>{{ $ial->comments }}</td> |
| 29 | + @if ( $ial->dpa ) |
| 30 | + <td><a class="nav-link" href="/dpa/{{ $ial->dpa }}">{{ __( 'dpa' ) }}</a></td> |
| 31 | + @elseif ( $ial->investigation ) |
| 32 | + <td><a class="nav-link" href="/investigation/{{ $ial->investigation }}">{{ __( 'investigation' ) }}</a></td> |
| 33 | + @else |
| 34 | + <td> |
| 35 | + <button class="btn btn-danger text-white" type="button" data-bs-target="#ial-{{ $ial->id }}-modal" data-bs-toggle="modal"> |
| 36 | + <i class="fa-solid fa-link"></i> {{ __( 'assign' ) }} |
| 37 | + </button> |
| 38 | + </td> |
| 39 | + @endif |
| 40 | + </tr> |
| 41 | + @endforeach |
42 | 42 | </tbody> |
43 | 43 | <tfoot> |
44 | | - <tr> |
45 | | - <th style="width: 10%;">{{ __( 'id' ) }}</th> |
46 | | - <th style="width: 20%;">{{ __( 'username' ) }}</th> |
47 | | - <th style="width: 15%;">{{ __( 'wiki' ) }}</th> |
48 | | - <th style="width: 10%;">{{ __( 'ial-type' ) }}</th> |
49 | | - <th style="width: 35%">{{ __( 'comments' ) }}</th> |
50 | | - <th style="width: 10%;">{{ __( 'assigned' ) }}</th> |
51 | | - </tr> |
| 44 | + <tr> |
| 45 | + <th style="width: 10%;">{{ __( 'id' ) }}</th> |
| 46 | + <th style="width: 20%;">{{ __( 'username' ) }}</th> |
| 47 | + <th style="width: 15%;">{{ __( 'wiki' ) }}</th> |
| 48 | + <th style="width: 10%;">{{ __( 'ial-type' ) }}</th> |
| 49 | + <th style="width: 35%">{{ __( 'comments' ) }}</th> |
| 50 | + <th style="width: 10%;">{{ __( 'assigned' ) }}</th> |
| 51 | + </tr> |
52 | 52 | </tfoot> |
53 | 53 | </table> |
54 | | - @if ( $ials->hasPages() ) |
55 | | - <nav> |
56 | | - <ul class="pagination justify-content-center"> |
57 | | - <li class="page-item @disabled($ials->onFirstPage())"> |
58 | | - <a class="page-link" {{ $ials->onFirstPage() ? '' : 'href=' . $ials->previousPageUrl() }} ">{{ __( 'nav-previous' ) }}</a> |
59 | | - </li> |
60 | | - <li class="page-item @disabled(!$ials->hasMorePages())"> |
61 | | - <a class="page-link" {{ $ials->hasMorePages() ? 'href=' . $ials->nextPageUrl() : '' }}>{{ __( 'nav-next' ) }}</a> |
62 | | - </li> |
63 | | - </ul> |
64 | | - </nav> |
65 | | - @endif |
| 54 | + {{ $ials->links() }} |
66 | 55 | </div> |
67 | 56 | @foreach ( $ials as $ial ) |
68 | 57 | @unless ( $ial->investigation || $ial->dpa ) |
|
0 commit comments