diff options
| author | Sam Light <samlight1994@gmail.com> | 2024-12-27 23:04:40 +0000 | 
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2024-12-27 23:04:40 +0000 | 
| commit | b19d30c7ad5a041ccc42ca9542150c7b371fe4fe (patch) | |
| tree | fcdba3b9681cef60e0e774e08c377d03c5d1defb /resources | |
| parent | 3c33b9201ee02d8b73986e489b9637d2875413de (diff) | |
Lots of updates
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> | 
