@if($excluded ?? false)
    <span class="badge bg-secondary-subtle text-secondary">Excluded</span>
@elseif($status === 'completed')
    <span class="badge bg-success-subtle text-success">Extracted</span>
@elseif($status === 'processing')
    <span class="badge bg-primary-subtle text-primary">
        <span class="spinner-border spinner-border-sm me-1" style="width:.6rem;height:.6rem;"></span>Processing
    </span>
@elseif($status === 'failed')
    <span class="badge bg-danger-subtle text-danger">Failed</span>
@elseif($status === 'skipped')
    <span class="badge bg-secondary-subtle text-secondary">Skipped</span>
@elseif($status === 'pending')
    <span class="badge bg-warning-subtle text-warning">Pending</span>
@else
    <span class="badge bg-light text-muted">Not run</span>
@endif
