diff --git a/resources/css/app.css b/resources/css/app.css index c71ba0d..1fb823c 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -285,6 +285,10 @@ body.swal2-height-auto { @apply bg-purple-600 text-xs; } +.sm-banner-private { + @apply bg-purple-600; +} + .sm-registration-none, .sm-registration-email, .sm-registration-message, .sm-registration-scheduled, .sm-registration-draft { @apply text-xs rounded py-2 px-2.5 text-center mb-4 border border-yellow-400 text-yellow-800 bg-yellow-100; } @@ -296,3 +300,7 @@ body.swal2-height-auto { .sm-registration-full { @apply text-xs rounded py-2 px-2.5 text-center mb-4 border border-purple-400 text-purple-800 bg-purple-100; } + +.sm-registration-private { + @apply text-xs rounded py-2 px-2.5 text-center mb-4 border border-purple-400 text-purple-800 bg-purple-100; +} diff --git a/resources/views/admin/workshop/edit.blade.php b/resources/views/admin/workshop/edit.blade.php index 862cdb0..da5029d 100644 --- a/resources/views/admin/workshop/edit.blade.php +++ b/resources/views/admin/workshop/edit.blade.php @@ -46,6 +46,7 @@ + diff --git a/resources/views/workshop/show.blade.php b/resources/views/workshop/show.blade.php index a4a94a1..0f21db3 100644 --- a/resources/views/workshop/show.blade.php +++ b/resources/views/workshop/show.blade.php @@ -12,6 +12,8 @@
Registration for this event has closed.
@elseif($workshop->status === 'full')
This workshop is currently full.
+ @elseif($workshop->status === 'private') +
This is a private event. Please contact the organiser for details.
@elseif($workshop->status === 'scheduled')
Registration for this workshop will open soon.
@elseif($workshop->status === 'cancelled') diff --git a/routes/console.php b/routes/console.php index 0a1db7f..8cfbb86 100644 --- a/routes/console.php +++ b/routes/console.php @@ -31,7 +31,7 @@ Artisan::command('cleanup', function() { // Close workshops DB::table('workshops') - ->whereIn('status', ['open', 'full']) + ->whereIn('status', ['open', 'full', 'private']) ->where('closes_at', '<', now()) ->update(['status' => 'closed']);