add private event support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
<x-ui.select label="Status" name="status">
|
||||
<option value="draft" {{ ($workshop->status ?? '') === 'draft' ? 'selected' : '' }}>Draft</option>
|
||||
<option value="open" {{ ($workshop->status ?? '') === 'open' ? 'selected' : '' }}>Open</option>
|
||||
<option value="private" {{ ($workshop->status ?? '') === 'private' ? 'selected' : '' }}>Private</option>
|
||||
<option value="full" {{ ($workshop->status ?? '') === 'full' ? 'selected' : '' }}>Full</option>
|
||||
<option value="scheduled" {{ ($workshop->status ?? '') === 'scheduled' ? 'selected' : '' }}>Scheduled</option>
|
||||
<option value="closed" {{ ($workshop->status ?? '') === 'closed' ? 'selected' : '' }}>Closed</option>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
<div class="sm-registration-closed">Registration for this event has closed.</div>
|
||||
@elseif($workshop->status === 'full')
|
||||
<div class="sm-registration-full">This workshop is currently full.</div>
|
||||
@elseif($workshop->status === 'private')
|
||||
<div class="sm-registration-private">This is a private event. Please contact the organiser for details.</div>
|
||||
@elseif($workshop->status === 'scheduled')
|
||||
<div class="sm-registration-scheduled">Registration for this workshop will open soon.</div>
|
||||
@elseif($workshop->status === 'cancelled')
|
||||
|
||||
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user