diff --git a/app/Http/Livewire/Frontend/SearchByTag.php b/app/Http/Livewire/Frontend/SearchByTag.php index 5c098669..f61f4209 100644 --- a/app/Http/Livewire/Frontend/SearchByTag.php +++ b/app/Http/Livewire/Frontend/SearchByTag.php @@ -8,6 +8,11 @@ use Livewire\Component; class SearchByTag extends Component { public string $country = 'de'; + public ?array $table = []; + + protected $queryString = [ + 'table', + ]; public function render() { diff --git a/app/Http/Livewire/Tables/CourseTable.php b/app/Http/Livewire/Tables/CourseTable.php index fd7f4a09..c4d980a9 100644 --- a/app/Http/Livewire/Tables/CourseTable.php +++ b/app/Http/Livewire/Tables/CourseTable.php @@ -45,7 +45,6 @@ class CourseTable extends DataTableComponent ->toArray() ) ->filter(function (Builder $builder, array $values) { - ray($values); $builder->withAnyTags($values, 'search'); }), ]; diff --git a/composer.lock b/composer.lock index 2f81def5..0769a1a4 100644 --- a/composer.lock +++ b/composer.lock @@ -12263,16 +12263,16 @@ }, { "name": "laravel-lang/lang", - "version": "12.5.6", + "version": "12.5.7", "source": { "type": "git", "url": "https://github.com/Laravel-Lang/lang.git", - "reference": "f0503d6bb897070c906847858eab9b4d6e40a85c" + "reference": "166a07a7f6cda95fa3c9b3b1d1ff872d44e7e71d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/f0503d6bb897070c906847858eab9b4d6e40a85c", - "reference": "f0503d6bb897070c906847858eab9b4d6e40a85c", + "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/166a07a7f6cda95fa3c9b3b1d1ff872d44e7e71d", + "reference": "166a07a7f6cda95fa3c9b3b1d1ff872d44e7e71d", "shasum": "" }, "require": { @@ -12334,7 +12334,7 @@ "type": "open_collective" } ], - "time": "2022-12-03T12:40:40+00:00" + "time": "2022-12-05T07:46:36+00:00" }, { "name": "laravel-lang/publisher", diff --git a/ray.php b/ray.php index 08598c4e..81cddee9 100644 --- a/ray.php +++ b/ray.php @@ -93,13 +93,13 @@ return [ * Absolute base path for your sites or projects in Homestead, * Vagrant, Docker, or another remote development server. */ - 'remote_path' => env('RAY_REMOTE_PATH', null), + 'remote_path' => env('RAY_REMOTE_PATH', '/var/www/html'), /* * Absolute base path for your sites or projects on your local * computer where your IDE or code editor is running on. */ - 'local_path' => env('RAY_LOCAL_PATH', null), + 'local_path' => env('RAY_LOCAL_PATH', '/home/fsociety/Code/side/einundzwanzig-bitcoin-school'), /* * When this setting is enabled, the package will not try to format values sent to Ray. diff --git a/resources/views/livewire/frontend/search-by-tag.blade.php b/resources/views/livewire/frontend/search-by-tag.blade.php index 9c8e1977..4da19ba9 100644 --- a/resources/views/livewire/frontend/search-by-tag.blade.php +++ b/resources/views/livewire/frontend/search-by-tag.blade.php @@ -7,9 +7,13 @@ class="flex flex-1 justify-center p-0 m-0 leading-6 text-center align-baseline border-0 border-solid" style="font-size: 128%; background-position: 0px center; list-style: outside;" > + @php + $isActive = collect($table)->pluck('tag')->collapse()->contains($tag->name); + $activeClass = $isActive ? 'text-amber-500 bg-amber-500' : 'bg-blue-50 text-white hover:text-amber-500'; + @endphp
• - {{ $tag->courses_count > 0 ? $tag->courses_count : 'kein' }} Kurs{{ $tag->courses_count > 1 ? 'e' : '' }} + {{ $tag->courses_count > 0 ? $tag->courses_count : 'kein' }} + Kurs{{ $tag->courses_count > 1 ? 'e' : '' }}