summaryrefslogtreecommitdiff
path: root/resources/views/toolbar
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-03-27 10:53:34 +0000
committerSam Light <samlight1994@gmail.com>2025-03-27 10:53:34 +0000
commit1f81ce361cb454b1655d6e2a7ac031bc1e3b2ede (patch)
tree1307ebad02e2a9644613d496e3d3ec87ed2cdfb9 /resources/views/toolbar
parent56a180f139699b3ee1eec566b6a98105576f804a (diff)
Seperating toolbar into its own class and views
Diffstat (limited to 'resources/views/toolbar')
-rw-r--r--resources/views/toolbar/column-select.blade.php16
-rw-r--r--resources/views/toolbar/page-size.blade.php5
-rw-r--r--resources/views/toolbar/search.blade.php3
3 files changed, 24 insertions, 0 deletions
diff --git a/resources/views/toolbar/column-select.blade.php b/resources/views/toolbar/column-select.blade.php
new file mode 100644
index 0000000..6fa7474
--- /dev/null
+++ b/resources/views/toolbar/column-select.blade.php
@@ -0,0 +1,16 @@
+<div class="dropdown">
+ <button type="button" class="btn btn-outline-secondary border-secondary"
+ data-bs-toggle="dropdown" aria-expanded="false"
+ data-bs-auto-close="outside">
+ {{ __('Columns') }}
+ </button>
+ <div class="dropdown-menu p-4">
+ @foreach($allColumns->filter(fn($c) => $c->getShowInSelect()) as $column)
+ <label class="d-block">
+ <input type="checkbox" wire:model.live="activeColumns"
+ value="{{ $column->name }}" />
+ {{ $column->getTitle() }}
+ </label>
+ @endforeach
+ </div>
+</div>
diff --git a/resources/views/toolbar/page-size.blade.php b/resources/views/toolbar/page-size.blade.php
new file mode 100644
index 0000000..cc35ff4
--- /dev/null
+++ b/resources/views/toolbar/page-size.blade.php
@@ -0,0 +1,5 @@
+<select wire:model.live="pageSize" class="form-select border-secondary">
+ @foreach($pageSizes as $size)
+ <option value="{{ $size }}">{{ $size }}</option>
+ @endforeach
+</select>
diff --git a/resources/views/toolbar/search.blade.php b/resources/views/toolbar/search.blade.php
new file mode 100644
index 0000000..04fd000
--- /dev/null
+++ b/resources/views/toolbar/search.blade.php
@@ -0,0 +1,3 @@
+<input class="form-control border-secondary" type="search"
+ wire:model.live.debounce.{{ $debounce }}="search"
+ placeholder="{{ __('Search') }}..." />