only my meetups events calendar stream url added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-16 15:54:33 +01:00
parent a6fa840fa8
commit b5c5c037ed
3 changed files with 16 additions and 15 deletions

View File

@@ -25,8 +25,7 @@ class DownloadMeetupCalendar extends Controller
$events = $meetup->meetupEvents;
$image = $meetup->getFirstMediaUrl('logo');
} elseif ($request->has('my')) {
$ids = auth()->user()->meetups->pluck('id')
->toArray();
$ids = $request->input('my');
$events = MeetupEvent::query()
->with([
'meetup',

View File

@@ -9,8 +9,8 @@
<div class="flex flex-col space-y-2">
<x-button
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country]) }}',
}"
textToCopy: '{{ route('meetup.ics', ['country' => $country]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
amber>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
@@ -18,8 +18,8 @@
</x-button>
<x-button
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => true]) }}',
}"
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => auth()->user()->meetups->pluck('id')->toArray()]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
black>
<i class="fa fa-thin fa-calendar-heart mr-2"></i>
@@ -27,8 +27,8 @@
</x-button>
<x-button
x-data="{
textToCopy: '{{ $mapEmbedCode }}',
}"
textToCopy: '{{ $mapEmbedCode }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Embed code for the map copied!') }}',icon:'success'});"
amber>
<i class="fa fa-thin fa-code mr-2"></i>

View File

@@ -8,8 +8,8 @@
<div class="flex flex-col space-y-2">
<x-button
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country]) }}',
}"
textToCopy: '{{ route('meetup.ics', ['country' => $country]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
amber>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
@@ -17,8 +17,8 @@
</x-button>
<x-button
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => true]) }}',
}"
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => auth()->user()->meetups->pluck('id')->toArray()]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
black>
<i class="fa fa-thin fa-calendar-heart mr-2"></i>
@@ -26,12 +26,14 @@
</x-button>
<x-button
x-data="{
textToCopy: '{{ $mapEmbedCode }}',
}"
textToCopy: '{{ $mapEmbedCode }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Embed code for the map copied!') }}',icon:'success'});"
amber>
<i class="fa fa-thin fa-code mr-2"></i>
{{ __('Copy embed code for the map') }} <img class="h-6 rounded" src="{{ asset('vendor/blade-country-flags/4x3-'. $country->code .'.svg') }}" alt="{{ $country->code }}">
{{ __('Copy embed code for the map') }} <img class="h-6 rounded"
src="{{ asset('vendor/blade-country-flags/4x3-'. $country->code .'.svg') }}"
alt="{{ $country->code }}">
</x-button>
</div>
</div>