File tree Expand file tree Collapse file tree 4 files changed +60
-53
lines changed Expand file tree Collapse file tree 4 files changed +60
-53
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
9
9
- Added Unselect All button on bulk row when selecting page.
10
10
- Added disabled delay on select checkboxes.
11
11
- Added disabled on bulk row button clicks.
12
+ - Added missing showPagination conditional to views.
12
13
13
14
### Changed
14
15
Original file line number Diff line number Diff line change 1
- @if ($paginationEnabled && $showPerPage && $rows -> lastPage () > 1 )
2
- <div class =" row" >
3
- <div class =" col-12 col-md-6" >
4
- {{ $rows -> links () } }
5
- </div >
1
+ @if ($showPagination )
2
+ @if ($paginationEnabled && $showPerPage && $rows -> lastPage () > 1 )
3
+ <div class =" row" >
4
+ <div class =" col-12 col-md-6" >
5
+ {{ $rows -> links () } }
6
+ </div >
6
7
7
- <div class =" col-12 col-md-6 text-center text-md-right text-muted" >
8
- @lang (' Showing' )
9
- <strong >{{ $rows -> count () ? $rows -> firstItem () : 0 } } </strong >
10
- @lang (' to' )
11
- <strong >{{ $rows -> count () ? $rows -> lastItem () : 0 } } </strong >
12
- @lang (' of' )
13
- <strong >{{ $rows -> total () } } </strong >
14
- @lang (' results' )
8
+ <div class =" col-12 col-md-6 text-center text-md-right text-muted" >
9
+ @lang (' Showing' )
10
+ <strong >{{ $rows -> count () ? $rows -> firstItem () : 0 } } </strong >
11
+ @lang (' to' )
12
+ <strong >{{ $rows -> count () ? $rows -> lastItem () : 0 } } </strong >
13
+ @lang (' of' )
14
+ <strong >{{ $rows -> total () } } </strong >
15
+ @lang (' results' )
16
+ </div >
15
17
</div >
16
- </ div >
17
- @else
18
- <div class =" row " >
19
- < div class = " col-12 text-muted " >
20
- @lang ( ' Showing ' )
21
- < strong > {{ $rows -> count () } } </ strong >
22
- @lang ( ' results ' )
18
+ @else
19
+ < div class = " row " >
20
+ <div class =" col-12 text-muted " >
21
+ @lang ( ' Showing ' )
22
+ < strong > {{ $rows -> count () } } </ strong >
23
+ @lang ( ' results ' )
24
+ </ div >
23
25
</div >
24
- </ div >
26
+ @endif
25
27
@endif
Original file line number Diff line number Diff line change 1
- @if ($paginationEnabled && $showPerPage && $rows -> lastPage () > 1 )
2
- <div class =" row" >
3
- <div class =" col-12 col-md-6" >
4
- {{ $rows -> links () } }
5
- </div >
1
+ @if ($showPagination )
2
+ @if ($paginationEnabled && $showPerPage && $rows -> lastPage () > 1 )
3
+ <div class =" row" >
4
+ <div class =" col-12 col-md-6" >
5
+ {{ $rows -> links () } }
6
+ </div >
6
7
7
- <div class =" col-12 col-md-6 text-center text-md-end text-muted" >
8
- @lang (' Showing' )
9
- <strong >{{ $rows -> count () ? $rows -> firstItem () : 0 } } </strong >
10
- @lang (' to' )
11
- <strong >{{ $rows -> count () ? $rows -> lastItem () : 0 } } </strong >
12
- @lang (' of' )
13
- <strong >{{ $rows -> total () } } </strong >
14
- @lang (' results' )
8
+ <div class =" col-12 col-md-6 text-center text-md-end text-muted" >
9
+ @lang (' Showing' )
10
+ <strong >{{ $rows -> count () ? $rows -> firstItem () : 0 } } </strong >
11
+ @lang (' to' )
12
+ <strong >{{ $rows -> count () ? $rows -> lastItem () : 0 } } </strong >
13
+ @lang (' of' )
14
+ <strong >{{ $rows -> total () } } </strong >
15
+ @lang (' results' )
16
+ </div >
15
17
</div >
16
- </ div >
17
- @else
18
- <div class =" row " >
19
- < div class = " col-12 text-muted " >
20
- @lang ( ' Showing ' )
21
- < strong > {{ $rows -> count () } } </ strong >
22
- @lang ( ' results ' )
18
+ @else
19
+ < div class = " row " >
20
+ <div class =" col-12 text-muted " >
21
+ @lang ( ' Showing ' )
22
+ < strong > {{ $rows -> count () } } </ strong >
23
+ @lang ( ' results ' )
24
+ </ div >
23
25
</div >
24
- </ div >
26
+ @endif
25
27
@endif
Original file line number Diff line number Diff line change 1
- <div class =" p-6 md:p-0" >
2
- @if ($paginationEnabled && $showPerPage && $rows -> lastPage () > 1 )
3
- {{ $rows -> links () } }
4
- @else
5
- <p class =" text-sm text-gray-700 leading-5" >
6
- @lang (' Showing' )
7
- <span class =" font-medium" >{{ $rows -> count () } } </span >
8
- @lang (' results' )
9
- </p >
10
- @endif
11
- </div >
1
+ @if ($showPagination )
2
+ <div class =" p-6 md:p-0" >
3
+ @if ($paginationEnabled && $showPerPage && $rows -> lastPage () > 1 )
4
+ {{ $rows -> links () } }
5
+ @else
6
+ <p class =" text-sm text-gray-700 leading-5" >
7
+ @lang (' Showing' )
8
+ <span class =" font-medium" >{{ $rows -> count () } } </span >
9
+ @lang (' results' )
10
+ </p >
11
+ @endif
12
+ </div >
13
+ @endif
You can’t perform that action at this time.
0 commit comments