@extends('base') @section('main') @php($formatTime = fn ($value) => \App\Services\Inbox\WorkerReview::time($value)) @php($label = fn ($value) => \App\Services\Inbox\WorkerReview::label($value)) @php($reviewPresenter = app(\App\Services\Inbox\WorkerReview::class))
← Worker review

Review task activity

@if(session('notice'))
{{ session('notice') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif

{{ $task->email }} · {{ $assignment->platform === 'micro' ? 'Microworkers' : 'SproutGigs' }} / {{ $assignment->external_job }} · Worker {{ $assignment->worker_id }}

Worker attempt: {{ $assignment->attempt_number ?? 1 }}. Each attempt has its own completion, review and payment record.

@if($previousAttempt)

Previous saved worker attempt: {{ $previousAttempt->email }}

@endif

Saved observations only · Times: Africa/Casablanca · Last recorded message check: {{ $formatTime($evidence['last_checked']) }}

@if($task->paid_at)
Payment was recorded on {{ $formatTime($task->paid_at) }}. This task cannot be approved or paid again here.
@elseif($task->completed_at && $task->completion_evidence)
Completion was recorded on {{ $formatTime($task->completed_at) }}. Review the evidence and later activity before making your payment decision.
@elseif($task->check_status === 'unavailable')
Checking is unavailable: {{ $label($task->check_error) }}. This is a service/access issue, not proof of worker misconduct.
@elseif($task->deadline_at->isPast())
The deadline passed without recorded completion. Review the saved messages and any checking failures.
@else
Completion has not been recorded yet. The task may still be waiting for messages or work.
@endif @if($evidence['later_unqualified'])
Later activity needs review: {{ $evidence['later_unqualified'] }} later observation(s) show a message used in completion evidence no longer meeting the requirements. Earlier completion evidence is preserved. These observations do not identify who made the change.
@endif
Frozen work messages{{ $task->work_message_ids !== null ? count($task->work_message_ids) : 'Not frozen' }}{{ $task->expected_count }} planned by Cortex
Last recorded qualifying messages{{ $evidence['qualifying'] }} / {{ $evidence['work_count'] }}{{ $task->required_count }} required · margin {{ $task->policy['margin'] ?? 0 }}
Completion evidence{{ count($task->completion_evidence ?? []) }}Saved qualifying-message records
Checking failures recorded{{ $evidence['failure_count'] }}Separate from observed message changes

Estimated activity

@include('inbox.partials.bulk-estimate', ['estimate' => $evidence['bulk_estimate']])
@if($evidence['bulk_estimate']['status'] === 'unclassified')

{{ $evidence['bulk_estimate']['reason'] }}

@endif

Bulk activity: 5 or more different task messages have the same recorded change within 5 seconds. Otherwise, recorded read or Inbox changes are estimated as One by one.

Read changes and Spam → Inbox changes are counted separately. The estimate uses existing saved history, including older tasks. Each logical message counts once. First sightings and changes after completion are excluded; service failures are not message actions.

This is an estimate of grouped message-state changes, not proof of “Select all” or human reading. It never changes completion, approval or payment.

@if($evidence['bulk_estimate']['activity'])
Saved estimate evidence
{{ json_encode($evidence['bulk_estimate'], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif

Message work

@if($evidence['arrival_counts'])

At countdown end: Inbox {{ $evidence['arrival_counts']['inbox'] ?? 0 }} · Spam {{ $evidence['arrival_counts']['spam'] ?? 0 }} · Other {{ $evidence['arrival_counts']['other'] ?? 0 }}

@else

Original Inbox/Spam counts were not frozen for this task.

@endif

Last recorded locations: Inbox {{ $evidence['locations']['inbox'] }} · Spam {{ $evidence['locations']['spam'] }} · Other {{ $evidence['locations']['other'] }}

Unfinished: Inbox {{ $evidence['pending']['inbox'] }} · Spam {{ $evidence['pending']['spam'] }} · Other {{ $evidence['pending']['other'] }} · Not found {{ $evidence['pending']['missing'] }}

Worker and connection

Task created
{{ $formatTime($task->created_at) }}
Latest Gmail authorization
{{ $formatTime($connectionInfo?->authorized_at) }}
Account ID
{{ $assignment->account_id ?? 'Not linked' }}
Connection IP
{{ $assignment->metadata['ip'] ?? 'Not recorded' }}
Device / browser
{{ $assignment->metadata['device'] ?? 'Not recorded' }} / {{ $assignment->metadata['browser'] ?? 'Not recorded' }}
Assignment
{{ $assignment->revoked_at ? 'Revoked' : 'Active' }}
Device and IP details are request observations, not verified identity.
@if($assignment->metadata)
Saved worker and connection information
{{ json_encode($assignment->metadata, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif @if($assignment->entry_mode === 'platform_link')

This worker entered through the public platform link. Verify job eligibility and worker ID in your platform records before approving payment.

@endif

Task: {{ $task->status }} · Check: {{ $task->check_status }} @if($task->check_error)({{ $task->check_error }})@endif

{{ $task->required_count }} qualifying logical messages required. Deadline {{ $formatTime($task->deadline_at) }}.

Saved margin of error: {{ $task->policy['margin'] ?? 0 }} messages.

👍 reaction required: {{ ($task->policy['require_thumbs_up'] ?? false) ? 'Yes' : 'No (original task rules)' }}. @if($task->policy['require_thumbs_up'] ?? false){{ $evidence['reaction_count'] }} task messages have a verified outgoing 👍.@endif

@if($task->policy['received_messages_only'] ?? false)

Work list: {{ $task->work_started_at ? count($task->work_message_ids).' messages found in Gmail at '.$formatTime($task->work_started_at) : 'Waiting for countdown and delivery check' }}. Later arrivals do not increase this task's work count.

@endif @if($task->policy['subject'] ?? '')

Campaign subject: {{ $task->policy['subject'] }}

@endif

Completed: {{ $task->completed_at ? $formatTime($task->completed_at) : 'Not observed' }} · Monitor until: {{ $formatTime($task->monitor_until) }}

Review: {{ $label($task->review_status) }} · Payment: {{ $task->paid_at ? 'Recorded at '.$formatTime($task->paid_at) : 'Not recorded' }}

@if($task->reviewed_at)

Reviewed by administrator {{ $task->reviewed_by }} on {{ $formatTime($task->reviewed_at) }}. Notes: {{ $task->review_notes }}

@endif @if($task->paid_at)

Payment recorded by administrator {{ $task->payment_recorded_by }}.

@endif

These records describe observed Gmail state. They do not establish who changed a label or prove human reading. Sending status does not prove Gmail receipt. Later changes do not erase completion evidence.

@if($dispatch)

Request status: {{ $dispatch->status }} · HTTP attempts: {{ $dispatch->attempts }} @if($dispatch->last_error)· {{ $dispatch->last_error }}@endif

@endif @if($canRetry)
@csrf

After fixing the service or authentication issue, retry the original request. Its body and idempotency key stay unchanged. Already claimed Cortex sending slots are not sent again.

@endif
Frozen completion evidence @if($task->completion_evidence)
{{ json_encode($task->completion_evidence, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@else

No completion evidence recorded.

@endif
@if($task->policy['require_thumbs_up'] ?? false)
Saved 👍 reaction evidence

Outgoing reactions from the connected mailbox, matched to each original task Message-ID. Earlier evidence is kept if the Sent copy is later deleted. This records a reaction; it does not prove human reading.

{{ json_encode(array_values($task->reaction_state['matched'] ?? []), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) }}
@endif

Checking and access failures

These are service results. A timeout, rate limit, or revoked access does not establish that the worker deleted or changed a message.

@if($task->check_status === 'unavailable')

Current checking issue: {{ $label($task->check_error) }}.

@endif
@forelse($evidence['failures'] as $failure)@empty@endforelse
TimeService issue
{{ $formatTime($failure['time']) }}{{ $failure['reason'] }}
No checking failures recorded.
@if($evidence['failure_count'] > 30)

Showing the latest 30 of {{ $evidence['failure_count'] }} checking failures.

@endif
Message identifiers, sending attempts and Gmail records

Messages and physical attempts

@forelse($attempts as $attempt)@php($message = $messages->firstWhere('id', $attempt->message_id))@empty@endforelse
Logical message / IP slotAttemptRFC Message-IDSending state
{{ $message->logical_id }} / {{ $message->slot_id }}{{ $attempt->external_id }} @if($attempt->resend_of)
Resend of {{ $attempt->resend_of }}@endif
{{ $attempt->rfc_message_id }}{{ $attempt->sending_state }}
Awaiting the verified Cortex manifest.

Last saved Gmail observations

@forelse($deliveries as $delivery)@empty@endforelse
Gmail message IDPresentLabelsQualifiesChecked at
{{ $delivery->gmail_message_id }}{{ $delivery->present ? 'Yes' : 'Not found' }}{{ implode(', ', json_decode($delivery->labels, true)) }}{{ $delivery->qualifies ? 'Yes' : 'No' }}{{ $formatTime($delivery->checked_at) }}
No matched Gmail messages observed.

Observed message history

{{ $evidence['observation_count'] }} observations recorded; showing the latest {{ $observations->count() }}. {{ $evidence['later_changes'] }} observations after completion. Changes identify message state, not the person who changed it.

@forelse($observations as $observation)@empty@endforelse
Observed atObserved changeGmail message IDCompletion timing
{{ $formatTime($observation->observed_at) }}{{ $reviewPresenter->describe($observation) }}{{ $deliveries->firstWhere('id', $observation->delivery_id)?->gmail_message_id ?? 'Not recorded' }}{{ !$task->completed_at ? 'Completion not recorded' : (\Illuminate\Support\Carbon::parse($observation->observed_at)->gt($task->completed_at) ? 'After completion' : 'Before / at completion') }}
No message observations recorded.

Manual review

@csrf

Record manual payment

This records a payment made outside this application. It does not transfer money.

@csrf
Detailed activity log (latest 200)
@forelse($events as $event)@empty@endforelse
TimeActivityOperatorDetails
{{ $formatTime($event->created_at) }}{{ $label($event->kind) }}{{ $event->actor_id ?? 'System / worker authorization' }}{{ $event->details }}
No activity recorded.
@endsection