This commit is contained in:
Benjamin Takats
2023-01-24 16:59:36 +01:00
parent 7e5f6c30ad
commit e444a4e973
11 changed files with 267 additions and 203 deletions

View File

@@ -39,7 +39,15 @@ class SyncGithubMeetups extends Command
'github_data' => $meetup, 'github_data' => $meetup,
]); ]);
} else { } else {
$this->info('Missing: '.$meetup['name'] . ' Url: ' . $meetup['url']); $this->info('Missing: '.$meetup['name'].' Url: '.$meetup['url']);
if (app()->environment('local')) {
Meetup::create([
'name' => $meetup['name'],
'city_id' => 1,
'created_by' => 1,
'github_data' => $meetup,
]);
}
} }
} }

View File

@@ -1,4 +1,4 @@
<div wire:key="bitcoin_events_action_{{ $row->id }}"> <div>
<a href="{{ $row->link }}" target="_blank"> <a href="{{ $row->link }}" target="_blank">
<x-badge class="whitespace-nowrap">{{ __('Link') }}</x-badge> <x-badge class="whitespace-nowrap">{{ __('Link') }}</x-badge>
</a> </a>

View File

@@ -1,11 +1,15 @@
<div class="flex flex-col space-y-1" wire:key="bookcase_action_{{ $row->id }}"> <div class="flex flex-col space-y-1" wire:key="bookcase_action_{{ $row->id }}">
@auth @auth
<div>
@if($row->orange_pills_count > 0) @if($row->orange_pills_count > 0)
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_plus.webp') }}" alt=""> <img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_plus.webp') }}" alt="">
@endif @endif
</div>
<div>
@if($row->orange_pills_count < 1) @if($row->orange_pills_count < 1)
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_minus.webp') }}" alt=""> <img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_minus.webp') }}" alt="">
@endif @endif
</div>
<div class="flex items-center space-x-1"> <div class="flex items-center space-x-1">
<x-button class="whitespace-nowrap" primary class="text-21gray whitespace-nowrap" <x-button class="whitespace-nowrap" primary class="text-21gray whitespace-nowrap"
wire:click="viewHistoryModal({{ $row->id }})">{{ __('💊 Orange Pill Now') }}</x-button> wire:click="viewHistoryModal({{ $row->id }})">{{ __('💊 Orange Pill Now') }}</x-button>

View File

@@ -1,5 +1,6 @@
<div class="flex flex-col space-y-1" wire:key="cities_action_{{ $row->id }}"> <div class="flex flex-col space-y-1">
@if($type === 'school') @if($type === 'school')
<div>
<div> <div>
@if($row->course_events_count > 0) @if($row->course_events_count > 0)
<x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray"> <x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
@@ -7,6 +8,8 @@
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }} {{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->course_events_count < 1) @if($row->course_events_count < 1)
<x-button outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray"> <x-button outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
<i class="fa fa-thin fa-person-chalkboard mr-2"></i> <i class="fa fa-thin fa-person-chalkboard mr-2"></i>
@@ -14,7 +17,9 @@
</x-button> </x-button>
@endif @endif
</div> </div>
</div>
@endif @endif
<div>
@if($type === 'bookCase') @if($type === 'bookCase')
<div> <div>
<x-button amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray"> <x-button amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray">
@@ -23,4 +28,5 @@
</x-button> </x-button>
</div> </div>
@endif @endif
</div>
</div> </div>

View File

@@ -1,4 +1,4 @@
<div wire:key="courses_action_{{ $row->id }}"> <div>
<x-button amber wire:click="courseSearch({{ $row->id }})"> <x-button amber wire:click="courseSearch({{ $row->id }})">
{{ __('Show dates') }} {{ __('Show dates') }}
</x-button> </x-button>

View File

@@ -1,3 +1,3 @@
<div wire:key="course_events_action_{{ $row->id }}"> <div>
<x-button class="whitespace-nowrap" amber wire:click="viewHistoryModal({{ $row->id }})">{{ __('Register') }}</x-button> <x-button class="whitespace-nowrap" amber wire:click="viewHistoryModal({{ $row->id }})">{{ __('Register') }}</x-button>
</div> </div>

View File

@@ -1,32 +1,42 @@
<div wire:key="lecturers_action_{{ $row->id }}"> <div>
<div>
@if($row->courses_count > 0) @if($row->courses_count > 0)
<x-button amber wire:click="lecturerSearch({{ $row->id }})"> <x-button amber wire:click="lecturerSearch({{ $row->id }})">
<i class="fa fa-thin fa-calendar mr-2"></i> <i class="fa fa-thin fa-calendar mr-2"></i>
{{ __('Show dates') }} ({{ $row->courses_count }}) {{ __('Show dates') }} ({{ $row->courses_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->courses_count < 1) @if($row->courses_count < 1)
<x-button outlined wire:click="lecturerSearch({{ $row->id }})"> <x-button outlined wire:click="lecturerSearch({{ $row->id }})">
<i class="fa fa-thin fa-calendar mr-2"></i> <i class="fa fa-thin fa-calendar mr-2"></i>
{{ __('Show dates') }} ({{ $row->courses_count }}) {{ __('Show dates') }} ({{ $row->courses_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->library_items_count > 0) @if($row->library_items_count > 0)
<x-button amber wire:click="lecturerSearch({{ $row->id }}, false)"> <x-button amber wire:click="lecturerSearch({{ $row->id }}, false)">
<i class="fa fa-thin fa-book mr-2"></i> <i class="fa fa-thin fa-book mr-2"></i>
{{ __('Show content') }} ({{ $row->library_items_count }}) {{ __('Show content') }} ({{ $row->library_items_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->library_items_count < 1) @if($row->library_items_count < 1)
<x-button outlined wire:click="lecturerSearch({{ $row->id }}, false)"> <x-button outlined wire:click="lecturerSearch({{ $row->id }}, false)">
<i class="fa fa-thin fa-book mr-2"></i> <i class="fa fa-thin fa-book mr-2"></i>
{{ __('Show content') }} ({{ $row->library_items_count }}) {{ __('Show content') }} ({{ $row->library_items_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
<x-button <x-button
:href="route('school.landingPage.lecturer', ['country' => $country, 'lecturer' => $row->slug])" :href="route('school.landingPage.lecturer', ['country' => $country, 'lecturer' => $row->slug])"
amber> amber>
<i class="fa fa-thin fa-browser mr-2"></i> <i class="fa fa-thin fa-browser mr-2"></i>
{{ __('Show landing page') }} {{ __('Show landing page') }}
</x-button> </x-button>
</div>
</div> </div>

View File

@@ -1,29 +1,38 @@
<div class="flex flex-col space-y-1" wire:key="library_items_action_{{ $row->id }}"> <div class="flex flex-col space-y-1">
<div>
@if(str($row->value)->contains('http')) @if(str($row->value)->contains('http'))
<x-button xs amber :href="$row->value" target="_blank"> <x-button xs amber :href="$row->value" target="_blank">
<i class="fa fa-thin fa-book-open mr-2"></i> <i class="fa fa-thin fa-book-open mr-2"></i>
{{ __('Open') }} {{ __('Open') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->type === 'downloadable_file') @if($row->type === 'downloadable_file')
<x-button xs amber :href="$row->getFirstMediaUrl('single_file')" target="_blank"> <x-button xs amber :href="$row->getFirstMediaUrl('single_file')" target="_blank">
<i class="fa fa-thin fa-download mr-2"></i> <i class="fa fa-thin fa-download mr-2"></i>
{{ __('Download') }} {{ __('Download') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->type === 'podcast_episode') @if($row->type === 'podcast_episode')
<x-button xs amber :href="$row->episode->data['link']" target="_blank"> <x-button xs amber :href="$row->episode->data['link']" target="_blank">
<i class="fa fa-thin fa-headphones mr-2"></i> <i class="fa fa-thin fa-headphones mr-2"></i>
{{ __('Listen') }} {{ __('Listen') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->type === 'markdown_article') @if($row->type === 'markdown_article')
<x-button xs amber :href="route('article.view', [$row])"> <x-button xs amber :href="route('article.view', [$row])">
<i class="fa fa-thin fa-newspaper mr-2"></i> <i class="fa fa-thin fa-newspaper mr-2"></i>
{{ __('Read') }} {{ __('Read') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->type !== 'markdown_article') @if($row->type !== 'markdown_article')
<x-button <x-button
x-data="{ x-data="{
@@ -45,4 +54,5 @@
{{ __('Share link') }} {{ __('Share link') }}
</x-button> </x-button>
@endif @endif
</div>
</div> </div>

View File

@@ -1,4 +1,5 @@
<div class="flex flex-col space-y-1" wire:key="meetup_events_action_{{ $row->id }}"> <div class="flex flex-col space-y-1">
<div>
<x-button <x-button
black black
xs xs
@@ -7,6 +8,8 @@
<i class="fa fa-thin fa-browser mr-2"></i> <i class="fa fa-thin fa-browser mr-2"></i>
{{ __('Show landing page') }} {{ __('Show landing page') }}
</x-button> </x-button>
</div>
<div>
@if($row->meetup->telegram_link) @if($row->meetup->telegram_link)
<x-button <x-button
xs xs
@@ -18,6 +21,8 @@
{{ __('Telegram-Link') }} {{ __('Telegram-Link') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->meetup->webpage) @if($row->meetup->webpage)
<x-button <x-button
xs xs
@@ -29,6 +34,8 @@
{{ __('Website') }} {{ __('Website') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->meetup->twitter_username) @if($row->meetup->twitter_username)
<x-button <x-button
xs xs
@@ -40,4 +47,5 @@
{{ __('Twitter') }} {{ __('Twitter') }}
</x-button> </x-button>
@endif @endif
</div>
</div> </div>

View File

@@ -1,4 +1,5 @@
<div class="flex flex-col space-y-1" wire:key="meetup_action_{{ $row->id }}"> <div class="flex flex-col space-y-1">
<div>
@if($row->meetup_events_count > 0) @if($row->meetup_events_count > 0)
<x-button <x-button
xs xs
@@ -8,6 +9,8 @@
{{ __('Show dates') }} ({{ $row->meetup_events_count }}) {{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->meetup_events_count < 1) @if($row->meetup_events_count < 1)
<x-button <x-button
xs xs
@@ -17,6 +20,8 @@
{{ __('Show dates') }} ({{ $row->meetup_events_count }}) {{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
<x-button <x-button
xs xs
black black
@@ -28,6 +33,8 @@
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i> <i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }}) {{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
</div>
<div>
<x-button <x-button
black black
xs xs
@@ -36,6 +43,8 @@
<i class="fa fa-thin fa-browser mr-2"></i> <i class="fa fa-thin fa-browser mr-2"></i>
{{ __('Show landing page') }} {{ __('Show landing page') }}
</x-button> </x-button>
</div>
<div>
@if($row->telegram_link) @if($row->telegram_link)
<x-button <x-button
xs xs
@@ -47,6 +56,8 @@
{{ __('Telegram-Link') }} {{ __('Telegram-Link') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->webpage) @if($row->webpage)
<x-button <x-button
xs xs
@@ -58,6 +69,8 @@
{{ __('Website') }} {{ __('Website') }}
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->twitter_username) @if($row->twitter_username)
<x-button <x-button
xs xs
@@ -69,4 +82,5 @@
{{ __('Twitter') }} {{ __('Twitter') }}
</x-button> </x-button>
@endif @endif
</div>
</div> </div>

View File

@@ -1,12 +1,16 @@
<div wire:key="venues_action_{{ $row->id }}"> <div>
<div>
@if($row->course_events_count > 0) @if($row->course_events_count > 0)
<x-button amber wire:click="venueSearch({{ $row->id }})"> <x-button amber wire:click="venueSearch({{ $row->id }})">
{{ __('Show dates') }} ({{ $row->course_events_count }}) {{ __('Show dates') }} ({{ $row->course_events_count }})
</x-button> </x-button>
@endif @endif
</div>
<div>
@if($row->course_events_count < 1) @if($row->course_events_count < 1)
<x-button outlined wire:click="venueSearch({{ $row->id }})"> <x-button outlined wire:click="venueSearch({{ $row->id }})">
{{ __('Show dates') }} ({{ $row->course_events_count }}) {{ __('Show dates') }} ({{ $row->course_events_count }})
</x-button> </x-button>
@endif @endif
</div>
</div> </div>