we can now delete meetup events

This commit is contained in:
HolgerHatGarKeineNode
2023-02-07 15:53:58 +01:00
parent a93598ef2e
commit 8e00da34a4
6 changed files with 62 additions and 18 deletions

View File

@@ -31,7 +31,7 @@
<script src="https://kit.fontawesome.com/03bc14bd1e.js" crossorigin="anonymous"></script>
@mapstyles
@mapscripts
<wireui:scripts/>
@wireUiScripts
<x-comments::scripts/>
@vite(['resources/css/app.css', 'resources/js/app.js'])
<!-- Styles -->
@@ -79,12 +79,13 @@
</style>
</head>
<body class="font-sans antialiased bg-21gray dark">
<x-notifications z-index="z-50" blur="md" align="center"/>
<x-dialog z-index="z-50" blur="md" align="center" />
@if(auth()->user())
{{-- HIGHSCORE-CHAT --}}
<livewire:chat.highscore-chat/>
@endif
<livewire:laravel-echo/>
<x-notifications z-index="z-50" blur="md" align="center"/>
<x-jet-banner/>
<div class="min-h-screen">
@auth

View File

@@ -80,6 +80,7 @@
<body class="font-sans antialiased bg-21gray dark">
<livewire:laravel-echo/>
<x-notifications z-index="z-50" blur="md" align="center"/>
<x-dialog z-index="z-50" blur="md" align="center" />
{{ $slot }}
@stack('modals')
@livewireScripts

View File

@@ -2,8 +2,21 @@
<div class="pb-5 flex flex-row justify-between">
<h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('Meetup Event') }}</h3>
<div>
<x-button :href="route('meetup.table.meetupEvent', ['country' => $country])">{{ __('Back') }}</x-button>
<div class="flex flex-row space-x-2 items-center">
<div>
@if($meetupEvent->id)
<x-button negative wire:click="deleteMe">
<i class="fa fa-thin fa-trash"></i>
{{ __('Delete') }}
</x-button>
@endif
</div>
<div>
<x-button :href="route('meetup.table.meetupEvent', ['country' => $country])">
<i class="fa fa-thin fa-arrow-left"></i>
{{ __('Back') }}
</x-button>
</div>
</div>
</div>