add buttons changed

This commit is contained in:
HolgerHatGarKeineNode
2023-02-21 20:11:30 +01:00
parent ea196074cc
commit f971818c12
6 changed files with 24 additions and 28 deletions

View File

@@ -3,4 +3,8 @@
<i class="fa fa-thin fa-plus"></i>
{{ __('Register Meetup date') }}
</x-button>
<x-button :href="route('profile.meetups', ['country' => $country])">
<i class="fa fa-thin fa-user-group"></i>
{{ __('My meetups') }}
</x-button>
</div>

View File

@@ -0,0 +1,10 @@
<div class="w-full mb-4 md:w-auto md:mb-0">
<x-button :href="route('meetup.meetup.form', ['country' => $country, 'meetup' => null])">
<i class="fa fa-thin fa-plus"></i>
{{ __('Submit Meetup') }}
</x-button>
<x-button :href="route('profile.meetups', ['country' => $country])">
<i class="fa fa-thin fa-user-group"></i>
{{ __('My meetups') }}
</x-button>
</div>

View File

@@ -56,7 +56,7 @@
<div class="w-full py-24">
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10 space-y-4" id="table">
<livewire:tables.meetup-table :country="null"/>
<livewire:tables.meetup-table :country="$country->code"/>
</div>
</div>
{{-- FOOTER --}}

View File

@@ -13,23 +13,6 @@
<!-- Navigation Links -->
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex sm:items-center">
@if(str(request()->route()->getName())->contains('meetup.'))
<div x-data="{currentUrl: window.location.href}">
<a x-bind:href="'/{{ $country->code ?? 'de' }}/meetup/meetup/form?fromUrl='+currentUrl">
<x-button xs amber>
<i class="fa fa-thin fa-plus"></i>
{{ __('Submit Meetup') }}
</x-button>
</a>
</div>
<div>
<x-button xs amber :href="route('meetup.event.form', ['country' => $country ?? 'de'])">
<i class="fa fa-thin fa-plus"></i>
{{ __('Register Meetup date') }}
</x-button>
</div>
@endif
@if(str(request()->route()->getName())->contains('school.'))
<div>
<x-button xs amber href="/nova/resources/lecturers" target="_blank">
@@ -67,14 +50,6 @@
{{ __('My profile') }}
</x-button>
</div>
<div>
<x-button xs amber href="{{ route('profile.meetups') }}"
:active="request()->routeIs('profile.meetups')">
<i class="fa fa-thin fa-users"></i>
{{ __('My meetups') }}
</x-button>
</div>
</div>
</div>