diff options
Diffstat (limited to 'resources')
-rw-r--r-- | resources/views/table.blade.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/resources/views/table.blade.php b/resources/views/table.blade.php index 3ee29ab..783255e 100644 --- a/resources/views/table.blade.php +++ b/resources/views/table.blade.php @@ -1,13 +1,13 @@ <div> @if($searchable || $showColumnSelect || $showPageSizeSelect) <div class="table-controls pb-2 d-flex justify-content-between align-items-center"> - @if($searchable) - <div> + <div> + @if($searchable) <input class="form-control border-secondary" type="search" wire:model.live.debounce.{{ $searchDebounce}}="search" placeholder="{{ __('Search') }}..." /> - </div> - @endif + @endif + </div> <div class="d-flex gap-3"> @if($showColumnSelect) <div class="dropdown"> @@ -21,7 +21,7 @@ <label class="d-block"> <input type="checkbox" wire:model.live="activeColumns" value="{{ $column->name }}" /> - {{ $column->title }} + {{ $column->getTitle() }} </label> @endforeach </div> @@ -38,10 +38,15 @@ </div> @endif <table class="table"> + <colgroup> + @foreach($columns as $column) + <col @class([$column->getColClass()]) /> + @endforeach + </colgroup> <thead> <tr> @foreach($columns as $column) - <th>{{ $column->title }}</th> + <th scope="col">{{ $column->getTitle() }}</th> @endforeach </tr> </thead> |