@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 = \Acelle\Model\AutoTrigger::find($contact->auto_trigger_id); @endphp
@if (is_null($contact->id)) [moved or deleted] @else {{ $contact->getFullName($default = null, $reload = true) }} @endif {{ is_null($contact->id) ? $trigger->getSubscriberCachedInfo('email') : $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 @elseif ($automation->isDateOfBirthTrigger()) @if (is_null($contact->dob)) # @else $contact->dob, 'triggeron' => $contact->dob_to_trigger, 'x' => $contact->date_modify, 't' => $contact->timediff, 'diff' => $contact->datediff, ]) }}'>{{trans('messages.automation.trigger.date_of_birth.wait_until', [ 'w' => $contact->dob_to_trigger, 'diff' => $contact->datediff ])}} @endif @else @endif
@if (is_null($trigger)) {{ trans('messages.automation.trigger_now') }} @elseif (is_null($contact->id)) {{ trans('messages.automation.last_activity') }} • {{ trans('messages.trigger.check') }} @else {{ trans('messages.automation.last_activity') }} • {{ trans('messages.trigger.check') }} @endif
@endforeach @include('helpers._pagination', ['paginator' => $contacts] ) @else
{{ trans('messages.automation.empty_contacts') }}
@endif