search tabs added

This commit is contained in:
Benjamin Takats
2022-12-01 00:10:37 +01:00
parent 8769b0bb52
commit d2427cf3d0
16 changed files with 210 additions and 85 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Livewire\Frontend;
use App\Models\Country;
use Livewire\Component;
class Header extends Component
{
public Country $country;
public string $c = 'de';
public function rules()
{
return [
'c' => 'required',
];
}
public function mount()
{
$this->c = $this->country->code;
}
public function updatedC($value)
{
return to_route('search.cities', ['country' => $value]);
}
public function render()
{
return view('livewire.frontend.header');
}
}