mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-16 00:26:47 +00:00
✨ Implement SeoTrait across components for improved SEO integration.
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
|
||||
use App\Models\Venue;
|
||||
use App\Models\City;
|
||||
use App\Traits\SeoTrait;
|
||||
use Livewire\Volt\Component;
|
||||
|
||||
new class extends Component {
|
||||
use SeoTrait;
|
||||
|
||||
public string $name = '';
|
||||
public ?int $city_id = null;
|
||||
public string $street = '';
|
||||
@@ -45,7 +48,7 @@ new class extends Component {
|
||||
<flux:legend>{{ __('Venue Information') }}</flux:legend>
|
||||
|
||||
<div class="space-y-6">
|
||||
<flux:input label="{{ __('Name') }}" wire:model="name" required />
|
||||
<flux:input label="{{ __('Name') }}" wire:model="name" required/>
|
||||
|
||||
<flux:select label="{{ __('City') }}" wire:model="city_id" required>
|
||||
<option value="">{{ __('Select a city') }}</option>
|
||||
@@ -59,7 +62,7 @@ new class extends Component {
|
||||
@endforeach
|
||||
</flux:select>
|
||||
|
||||
<flux:input label="{{ __('Street') }}" wire:model="street" required />
|
||||
<flux:input label="{{ __('Street') }}" wire:model="street" required/>
|
||||
</div>
|
||||
</flux:fieldset>
|
||||
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
use App\Models\Venue;
|
||||
use App\Models\City;
|
||||
use App\Traits\SeoTrait;
|
||||
use Livewire\Volt\Component;
|
||||
|
||||
new class extends Component {
|
||||
use SeoTrait;
|
||||
|
||||
public Venue $venue;
|
||||
public string $name = '';
|
||||
public ?int $city_id = null;
|
||||
@@ -53,7 +56,7 @@ new class extends Component {
|
||||
<flux:legend>{{ __('Venue Information') }}</flux:legend>
|
||||
|
||||
<div class="space-y-6">
|
||||
<flux:input label="{{ __('Name') }}" wire:model="name" required />
|
||||
<flux:input label="{{ __('Name') }}" wire:model="name" required/>
|
||||
|
||||
<flux:select label="{{ __('City') }}" wire:model="city_id" required>
|
||||
<option value="">{{ __('Select a city') }}</option>
|
||||
@@ -67,7 +70,7 @@ new class extends Component {
|
||||
@endforeach
|
||||
</flux:select>
|
||||
|
||||
<flux:input label="{{ __('Street') }}" wire:model="street" required />
|
||||
<flux:input label="{{ __('Street') }}" wire:model="street" required/>
|
||||
</div>
|
||||
</flux:fieldset>
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Venue;
|
||||
use App\Traits\SeoTrait;
|
||||
use Livewire\Volt\Component;
|
||||
use Livewire\WithPagination;
|
||||
|
||||
new class extends Component {
|
||||
use WithPagination;
|
||||
use SeoTrait;
|
||||
|
||||
public $country = 'de';
|
||||
public $search = '';
|
||||
@@ -38,7 +40,8 @@ new class extends Component {
|
||||
clearable
|
||||
/>
|
||||
@auth
|
||||
<flux:button class="cursor-pointer" :href="route_with_country('venues.create')" icon="plus" variant="primary">
|
||||
<flux:button class="cursor-pointer" :href="route_with_country('venues.create')" icon="plus"
|
||||
variant="primary">
|
||||
{{ __('Create Venue') }}
|
||||
</flux:button>
|
||||
@endauth
|
||||
@@ -75,7 +78,9 @@ new class extends Component {
|
||||
<flux:table.cell>
|
||||
<div class="flex gap-2">
|
||||
@auth
|
||||
<flux:button size="xs" :href="route('venues.edit', ['venue' => $venue, 'country' => $country])" icon="pencil">
|
||||
<flux:button size="xs"
|
||||
:href="route('venues.edit', ['venue' => $venue, 'country' => $country])"
|
||||
icon="pencil">
|
||||
{{ __('Edit') }}
|
||||
</flux:button>
|
||||
@endauth
|
||||
|
||||
Reference in New Issue
Block a user