@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 = $automation->getAutoTriggerFor($contact); @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->getLastExecuted()) { $executedAt = $action->getLastExecutedCarbon($customer->timezone); $notes = sprintf(', %s (%s)', $executedAt->diffForHumans(), $customer->formatDatetime($executedAt, 'datetime_full'), $customer->timezone, ); } else { $notes = ''; } @endphp @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