UGC moderation

Nothing reaches the Wall until it's approved here. Approving awards the customer's points once.
View the Wall
@foreach (['pending' => 'Pending', 'approved' => 'Live', 'featured' => 'Featured', 'rejected' => 'Rejected', 'all' => 'All'] as $k => $l) @endforeach
@if ($status === 'pending' && count($selected)) @endif
@if ($posts->isEmpty())
{{ $status === 'pending' ? 'All caught up — nothing waiting for review.' : 'No posts here.' }}
@else
@foreach ($posts as $post)
@if ($post->before_path)
BeforeBefore
@endif
AfterAfter
@if ($post->status === \App\Enums\UgcStatus::Pending) @endif {{ $post->status->label() }}
@can('view-customers'){{ $post->user?->name }}@else{{ $post->user?->name }}@endcan @if ($post->social_handle)· {{ '@'.$post->social_handle }}@endif {{ $post->colour?->name ?? 'No colour' }}{{ $post->product ? ' · '.$post->product->name : '' }}{{ $post->challenge ? ' · '.$post->challenge->name : '' }} · {{ $post->created_at->diffForHumans() }} @if ($post->caption)

“{{ $post->caption }}”

@endif @if ($post->rejection_reason)

Rejected: {{ $post->rejection_reason }}

@endif @if ($post->moderator)by {{ $post->moderator->name }} · {{ $post->moderated_at?->format('j M, H:i') }}@endif @if ($post->votes_count){{ $post->votes_count }} {{ \Illuminate\Support\Str::plural('vote', $post->votes_count) }}@endif @if ($rejecting === $post->uuid)
@else
@if (! $post->isPublic())@endif @if ($post->status === \App\Enums\UgcStatus::Featured) @elseif ($post->status !== \App\Enums\UgcStatus::Rejected) @endif @if ($post->status !== \App\Enums\UgcStatus::Rejected)@endif
@endif
@endforeach
{{ $posts->links() }} @endif