Skip to content

Commit e6015b5

Browse files
committed
Formatting
1 parent 7804b76 commit e6015b5

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

resources/views/bootstrap-4/includes/filter-type-date.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
wire:key="filter-{{ $key }}"
55
id="filter-{{ $key }}"
66
type="date"
7-
@if(isset($filter->options['min']) && strlen($filter->options['min'])) min="{{$filter->options['min']}}" @endif
8-
@if(isset($filter->options['max']) && strlen($filter->options['max'])) max="{{$filter->options['max']}}" @endif
7+
@if(isset($filter->options['min']) && strlen($filter->options['min'])) min="{{ $filter->options['min'] }}" @endif
8+
@if(isset($filter->options['max']) && strlen($filter->options['max'])) max="{{ $filter->options['max'] }}" @endif
99
class="form-control"
1010
/>
1111
</div>

resources/views/bootstrap-4/includes/filters.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
@elseif (count($customFilters))
1919
@foreach ($customFilters as $key => $filter)
2020
<div wire:key="filter-{{ $key }}" class="p-2">
21-
2221
<label for="filter-{{ $key }}" class="mb-2">
2322
{{ $filter->name() }}
2423
</label>
24+
2525
@if ($filter->isSelect())
2626
@include('livewire-tables::bootstrap-4.includes.filter-type-select')
2727
@elseif($filter->isDate())

resources/views/bootstrap-5/includes/filter-type-date.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
wire:key="filter-{{ $key }}"
55
id="filter-{{ $key }}"
66
type="date"
7-
@if(isset($filter->options['min']) && strlen($filter->options['min'])) min="{{$filter->options['min']}}" @endif
8-
@if(isset($filter->options['max']) && strlen($filter->options['max'])) max="{{$filter->options['max']}}" @endif
9-
class="flex-1 shadow-sm border-gray-300 block w-full transition duration-150 ease-in-out sm:text-sm sm:leading-5 focus:outline-none focus:border-indigo-300 focus:shadow-outline-indigo @if (isset($filters[$key]) && strlen($filters[$key])) rounded-none rounded-l-md @else rounded-md @endif"
7+
@if(isset($filter->options['min']) && strlen($filter->options['min'])) min="{{ $filter->options['min'] }}" @endif
8+
@if(isset($filter->options['max']) && strlen($filter->options['max'])) max="{{ $filter->options['max'] }}" @endif
9+
class="form-control"
1010
/>
1111
</div>

resources/views/tailwind/includes/filter-type-date.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
wire:key="filter-{{ $key }}"
55
id="filter-{{ $key }}"
66
type="date"
7-
@if(isset($filter->options['min']) && strlen($filter->options['min'])) min="{{$filter->options['min']}}" @endif
8-
@if(isset($filter->options['max']) && strlen($filter->options['max'])) max="{{$filter->options['max']}}" @endif
7+
@if(isset($filter->options['min']) && strlen($filter->options['min'])) min="{{ $filter->options['min'] }}" @endif
8+
@if(isset($filter->options['max']) && strlen($filter->options['max'])) max="{{ $filter->options['max'] }}" @endif
99
class="flex-1 shadow-sm border-gray-300 block w-full transition duration-150 ease-in-out sm:text-sm sm:leading-5 focus:outline-none focus:border-indigo-300 focus:shadow-outline-indigo @if (isset($filters[$key]) && strlen($filters[$key])) rounded-none rounded-l-md @else rounded-md @endif"
1010
/>
1111
</div>

resources/views/tailwind/includes/filters.blade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ class="relative block md:inline-block text-left"
99
<button
1010
type="button"
1111
class="inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:border-indigo-300 focus:shadow-outline-indigo"
12-
id="filters-menu" @click="open = !open" aria-haspopup="true" x-bind:aria-expanded="open"
13-
aria-expanded="true">
12+
id="filters-menu"
13+
@click="open = !open"
14+
aria-haspopup="true"
15+
x-bind:aria-expanded="open"
16+
aria-expanded="true"
17+
>
1418
@lang('Filters')
1519

1620
@if (count($this->getFiltersWithoutSearch()))
@@ -51,6 +55,7 @@ class="origin-top-right absolute right-0 mt-2 w-full md:w-56 rounded-md shadow-l
5155
class="block text-sm font-medium leading-5 text-gray-700">
5256
{{ $filter->name() }}
5357
</label>
58+
5459
@if ($filter->isSelect())
5560
@include('livewire-tables::tailwind.includes.filter-type-select')
5661
@elseif($filter->isDate())

src/Views/Filter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88
class Filter
99
{
10-
public const TYPE_SELECT = 'select';
11-
1210
public const TYPE_DATE = 'date';
1311

12+
public const TYPE_SELECT = 'select';
13+
1414
/**
1515
* @var string
1616
*/

0 commit comments

Comments
 (0)