mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
search tabs added
This commit is contained in:
34
app/Http/Livewire/Frontend/Header.php
Normal file
34
app/Http/Livewire/Frontend/Header.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user