mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add intro for meetups
This commit is contained in:
@@ -7,6 +7,7 @@ use Ebess\AdvancedNovaMediaLibrary\Fields\Images;
|
|||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Laravel\Nova\Fields\ID;
|
use Laravel\Nova\Fields\ID;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Laravel\Nova\Fields\Markdown;
|
||||||
use Laravel\Nova\Fields\Text;
|
use Laravel\Nova\Fields\Text;
|
||||||
use Laravel\Nova\Fields\BelongsTo;
|
use Laravel\Nova\Fields\BelongsTo;
|
||||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||||
@@ -75,6 +76,9 @@ class Meetup extends Resource
|
|||||||
|
|
||||||
BelongsTo::make(__('City'), 'city', City::class)->searchable()->withSubtitles(),
|
BelongsTo::make(__('City'), 'city', City::class)->searchable()->withSubtitles(),
|
||||||
|
|
||||||
|
Markdown::make(__('Intro'), 'intro')
|
||||||
|
->help(__('This is the introduction text that is shown on the landing page.')),
|
||||||
|
|
||||||
BelongsTo::make(__('Created By'), 'createdBy', User::class)
|
BelongsTo::make(__('Created By'), 'createdBy', User::class)
|
||||||
->canSee(function ($request) {
|
->canSee(function ($request) {
|
||||||
return $request->user()
|
return $request->user()
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration {
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('meetups', function (Blueprint $table) {
|
||||||
|
$table->text('intro')
|
||||||
|
->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('meetups', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -11,16 +11,18 @@
|
|||||||
{{ __('Plebs together strong 💪') }}
|
{{ __('Plebs together strong 💪') }}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="px-0 mb-6 text-lg text-gray-600 md:text-xl">
|
<div class="px-0 mb-6 text-lg text-gray-600 md:text-xl">
|
||||||
{{ __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!') }}
|
<x-markdown>
|
||||||
|
{!! $meetup->intro !!}
|
||||||
<x-button
|
</x-markdown>
|
||||||
target="_blank"
|
|
||||||
:href="$meetup->link"
|
|
||||||
primary lg class="whitespace-nowrap">
|
|
||||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
|
||||||
{{ __('Link') }}
|
|
||||||
</x-button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<x-button
|
||||||
|
target="_blank"
|
||||||
|
:href="$meetup->link"
|
||||||
|
primary lg class="mt-4 whitespace-nowrap">
|
||||||
|
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||||
|
{{ __('Link') }}
|
||||||
|
</x-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
href="{{ $currentModal?->link }}" target="_blank">{{ __('Link to the registration') }}</a>
|
href="{{ $currentModal?->link }}" target="_blank">{{ __('Link to the registration') }}</a>
|
||||||
<div class="prose-xl prose-white">
|
<div class="prose-xl prose-white">
|
||||||
<x-markdown>
|
<x-markdown>
|
||||||
{{ $currentModal?->course->description }}
|
{!! $currentModal?->course->description !!}
|
||||||
</x-markdown>
|
</x-markdown>
|
||||||
</div>
|
</div>
|
||||||
<a class="block w-full rounded-md border border-transparent bg-white py-3 px-5 text-center text-base font-medium text-amber-500 shadow-md hover:bg-gray-50 sm:inline-block sm:w-auto"
|
<a class="block w-full rounded-md border border-transparent bg-white py-3 px-5 text-center text-base font-medium text-amber-500 shadow-md hover:bg-gray-50 sm:inline-block sm:w-auto"
|
||||||
|
|||||||
Reference in New Issue
Block a user