mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
NeedMeetupMiddleware added
This commit is contained in:
@@ -644,5 +644,18 @@
|
||||
"points": "Punkte",
|
||||
"Submit new book case": "Bücherschrank einreichen",
|
||||
"Share url copied!": "Link kopiert!",
|
||||
"Share link": "Link zum Teilen"
|
||||
"Share link": "Link zum Teilen",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "Suche dir eine oder mehrere Meetup-Gruppen aus, um Zugriff auf diese Gruppen im Backend zu erhalten.",
|
||||
"choice": "Auswahl",
|
||||
"By id": "nach ID",
|
||||
"Twitter": "",
|
||||
"New City": "Neue Stadt",
|
||||
"My meetups": "Meine Meetups",
|
||||
"please limit your search here": "bitte begrenze deine Suche hier",
|
||||
"Deselect": "Abwählen",
|
||||
"Your current Meetup groups": "Deine aktuellen Meetup-Gruppen",
|
||||
"Thanks, continue here": "Danke, weiter geht es hier"
|
||||
}
|
||||
|
||||
@@ -635,10 +635,20 @@
|
||||
"logins": "",
|
||||
"points": "",
|
||||
"New meetup created: :title": "New meetup created: :title",
|
||||
"Submit new book case": "",
|
||||
"Submit new book case": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": ""
|
||||
"Share link": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"choice": "",
|
||||
"By id": "",
|
||||
"Twitter": "",
|
||||
"New City": "",
|
||||
"My meetups": "",
|
||||
"please limit your search here": "",
|
||||
"Deselect": "",
|
||||
"Your current Meetup groups": "",
|
||||
"Thanks, continue here": ""
|
||||
}
|
||||
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -634,5 +634,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -608,5 +608,17 @@
|
||||
"You get a point when you log in.": "",
|
||||
"points": "",
|
||||
"All courses of :name": "",
|
||||
"Here you can see all events of :name.": ""
|
||||
"Here you can see all events of :name.": "",
|
||||
"By id": "",
|
||||
"Telegram-Link": "",
|
||||
"Website": "",
|
||||
"Twitter Username": "",
|
||||
"Share url copied!": "",
|
||||
"Share link": "",
|
||||
"Twitter": "",
|
||||
"Submit new book case": "",
|
||||
"choice": "",
|
||||
"Select one or more meetup groups so that you can get access to these groups in the backend.": "",
|
||||
"New City": "",
|
||||
"My meetups": ""
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
"Remove sort option": "Entferne Sortierauswahl",
|
||||
"Search": "Suche",
|
||||
"Select All": "Alle auswählen",
|
||||
"Select": "Auswählen",
|
||||
"Showing": "Anzeigen",
|
||||
"Deselect All": "Alle abwählen",
|
||||
"You are currently selecting all": "Es sind schon alle ausgewählt",
|
||||
@@ -23,4 +24,4 @@
|
||||
"rows, do you want to select all": "Zeilen, sollen alle ausgewählt werden",
|
||||
"to": "nach",
|
||||
"No items found. Try to broaden your search.": "Es gibt keine Ergebnisse\/Einträge. Versuche die Suche zu erweitern."
|
||||
}
|
||||
}
|
||||
|
||||
109
resources/views/livewire/profile/meetups.blade.php
Normal file
109
resources/views/livewire/profile/meetups.blade.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<div class="flex flex-col">
|
||||
<section class="">
|
||||
<div class="px-10 pt-6 mx-auto max-w-7xl">
|
||||
<div class="w-full mx-auto text-left md:text-center">
|
||||
<h1 class="mb-6 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-900 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
|
||||
<span
|
||||
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-500 lg:inline">{{ __('Meetup') }}</span>
|
||||
<br class="lg:block hidden"> {{ __('choice') }}
|
||||
</h1>
|
||||
<p class="px-0 mb-6 text-lg text-gray-200 md:text-xl lg:px-24">
|
||||
{{ __('Select one or more meetup groups so that you can get access to these groups in the backend.') }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section x-data="{ open: @entangle('hasMeetups') }"
|
||||
x-show="open"
|
||||
x-transition:enter="transition ease-out duration-300"
|
||||
x-transition:enter-start="opacity-0 scale-90"
|
||||
x-transition:enter-end="opacity-100 scale-100"
|
||||
x-transition:leave="transition ease-in duration-300"
|
||||
x-transition:leave-start="opacity-100 scale-100"
|
||||
x-transition:leave-end="opacity-0 scale-90"
|
||||
>
|
||||
<div class="px-10 pt-6 mx-auto max-w-7xl">
|
||||
<div class="w-full mx-auto text-left md:text-center">
|
||||
<p class="px-0 mb-6 text-lg text-gray-200 md:text-xl lg:px-24">
|
||||
<x-button href="/" primary lg>
|
||||
{{ __('Thanks, continue here') }}
|
||||
</x-button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="grid grid-cols-2">
|
||||
<div class="">
|
||||
<div class="px-10 pt-6 mx-auto max-w-7xl">
|
||||
<div class="bg-21gray p-6 rounded">
|
||||
|
||||
<div>
|
||||
<x-input wire:model="search" placeholder="{{ __('Search') }}"
|
||||
hint="{{ __('please limit your search here') }}"/>
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flow-root">
|
||||
|
||||
<ul role="list" class="-my-5 divide-y divide-gray-200">
|
||||
|
||||
@foreach($meetups as $meetup)
|
||||
|
||||
@php
|
||||
$activeClass = in_array($meetup->id, $myMeetups, true) ? 'font-bold text-amber-500' : 'text-gray-200';
|
||||
@endphp
|
||||
|
||||
<li class="py-4" wire:key="meetup_id_{{ $meetup->id }}">
|
||||
<div class="flex items-center space-x-4">
|
||||
<div class="flex-shrink-0">
|
||||
<img class="h-12 w-12 rounded object-cover"
|
||||
src="{{ $meetup->getFirstMediaUrl('logo') }}"
|
||||
alt="{{ $meetup->name }}">
|
||||
</div>
|
||||
<div class="min-w-0 flex-1">
|
||||
<p class="truncate text-sm font-medium {{ $activeClass }}">{{ $meetup->name }}</p>
|
||||
<p class="truncate text-sm {{ $activeClass }}">{{ $meetup->city->name }}</p>
|
||||
</div>
|
||||
<div>
|
||||
@if(in_array($meetup->id, $myMeetups, true))
|
||||
<x-button
|
||||
primary
|
||||
wire:click="signUpForMeetup({{ $meetup->id }})"
|
||||
>
|
||||
<i class="fa-thin fa-xmark"></i>
|
||||
{{ __('Deselect') }}
|
||||
</x-button>
|
||||
@else
|
||||
<x-button
|
||||
black
|
||||
wire:click="signUpForMeetup({{ $meetup->id }})"
|
||||
>
|
||||
<i class="fa-thin fa-check"></i>
|
||||
{{ __('Select') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-4">
|
||||
<p class="px-0 mb-6 text-lg text-gray-200 md:text-xl">
|
||||
{{ __('Your current Meetup groups') }}
|
||||
</p>
|
||||
<div class="grid grid-cols-4 gap-2">
|
||||
@foreach($myMeetupNames as $id => $myMeetupName)
|
||||
<x-badge class="cursor-pointer" wire:click="signUpForMeetup({{ $id }})" lg outline white
|
||||
label="{{ $myMeetupName }}"/>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -83,6 +83,14 @@
|
||||
{{ __('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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user