mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-17 00:46:46 +00:00
✨ Implement SeoTrait across components for improved SEO integration.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Models\City;
|
||||
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('cities.create')" icon="plus" variant="primary">
|
||||
<flux:button class="cursor-pointer" :href="route_with_country('cities.create')" icon="plus"
|
||||
variant="primary">
|
||||
{{ __('Create City') }}
|
||||
</flux:button>
|
||||
@endauth
|
||||
@@ -81,7 +84,9 @@ new class extends Component {
|
||||
<flux:table.cell>
|
||||
<div class="flex gap-2">
|
||||
@auth
|
||||
<flux:button size="xs" :href="route('cities.edit',['city' => $city, 'country' => $country])" icon="pencil">
|
||||
<flux:button size="xs"
|
||||
:href="route('cities.edit',['city' => $city, 'country' => $country])"
|
||||
icon="pencil">
|
||||
{{ __('Edit') }}
|
||||
</flux:button>
|
||||
@endauth
|
||||
|
||||
Reference in New Issue
Block a user