Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit ed340f6

Browse files
Update datatable icons and display result count
1 parent 7a32c3b commit ed340f6

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

config/livewire-datatable.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,18 @@
2424
],
2525
],
2626

27+
/**
28+
* Datatable icons.
29+
*/
2730
'icons' => [
2831
'search' => 'fa fa-search',
2932
'actions' => 'fa fa-cog text-muted',
3033
'sort-none' => 'fa fa-sort',
3134
'sort-asc' => 'fa fa-sort-up',
3235
'sort-desc' => 'fa fa-sort-down',
33-
'create' => 'fa fa-square-plus text-success',
34-
'edit' => 'fa fa-edit text-warning',
35-
'view' => 'fa fa-eye text-primary',
36-
'delete' => 'fa fa-trash text-danger',
36+
'create' => 'fa fa-plus',
37+
'edit' => 'fa fa-edit',
38+
'view' => 'fa fa-eye',
39+
'delete' => 'fa fa-trash',
3740
],
3841
];

resources/views/datatable.blade.php

+10
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@
106106
@endforeach
107107
</select>
108108

109+
<div class="text-muted">
110+
{{ __('Showing') }}
111+
<span class="fw-bold">{{ $rows->firstItem() }}</span>
112+
{{ __('to') }}
113+
<span class="fw-bold">{{ $rows->lastItem() }}</span>
114+
{{ __('of') }}
115+
<span class="fw-bold">{{ $rows->total() }}</span>
116+
{{ __('results') }}
117+
</div>
118+
109119
<div class="my-1">{{ $rows->links() }}</div>
110120
</div>
111121
</div>

0 commit comments

Comments
 (0)