@if ($contacts->count() > 0)

{{ trans('messages.automation.contact.all_count', ['count' => number_with_delimiter($contacts->total(), $precision = 0)]) }}

@foreach ($contacts as $key => $contact) @php $trigger = $contact->autoTriggers[0] ?? null; @endphp
{{ $contact->getFullName() }} {{ $contact->email }}
@if (!is_null($trigger)) @php $points = $trigger->getExecutedActions(); @endphp @if (empty($points)) {{ trans('messages.automation.status.triggered.desc') }} @endif @foreach ($points as $action) @php if ($action->getOption('error')) { $style = 'action-error'; } else { $style = "action-{$action->getType()}"; } @endphp getOption('error')) data-action="retry" data-url="{{ action('AutoTrigger@retry', [ 'action_id' => $action->getId(), 'auto_trigger_id' => $trigger->id, ]) }}" @endif class="xtooltip round-action-point {{ $style }}" title="{{ $action->getProgressDescription($customer->timezone, $customer->getLanguageCode()) }}"> @endforeach @endif
@if (is_null($trigger)) {{ trans('messages.automation.trigger_now') }} @else {{ trans('messages.automation.last_activity') }} • {{ trans('messages.trigger.check') }} @endif
@endforeach @include('helpers._pagination', ['paginator' => $contacts] ) @else
{{ trans('messages.automation.empty_contacts') }}
@endif