mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-02-19 07:13:17 +00:00
✨ Improve conditional rendering and authentication logic in views
- Updated multiple views to conditionally render actions based on authentication state for a better user experience. - Added login links where actions require authentication.
This commit is contained in:
@@ -86,13 +86,15 @@ class extends Component {
|
||||
</flux:table.cell>
|
||||
<flux:table.cell>
|
||||
<div class="flex gap-2">
|
||||
@auth
|
||||
@if(auth()->check())
|
||||
<flux:button size="xs"
|
||||
:href="route('cities.edit',['city' => $city, 'country' => $country])"
|
||||
icon="pencil">
|
||||
{{ __('Edit') }}
|
||||
</flux:button>
|
||||
@endauth
|
||||
@elseif(!auth()->check())
|
||||
<flux:link :href="route('login')">{{ __('Log in') }}</flux:link>
|
||||
@endif
|
||||
</div>
|
||||
</flux:table.cell>
|
||||
</flux:table.row>
|
||||
|
||||
Reference in New Issue
Block a user