@php $trigger = $automation->getTrigger(); $data = $trigger->getOption('source_uid') ? Acelle\Model\Source::findByUid($trigger->getOption('source_uid'))->getData() : null; $shopinfo = !$data ? [] : Acelle\Model\Source::findByUid($trigger->getOption('source_uid'))->getData()['data']; @endphp @if (isset($shopinfo['name']) && !request()->options)
@php $waitTime = $trigger->getOption('wait') ? $trigger->getOption('wait') : '24_hour' @endphp
check_circle
{!! trans('messages.cart.send_notification_email_after', [ 'time' => trans_choice( 'messages.automation.delay.' . explode('_', $waitTime)[1] , explode('_', $waitTime)[0]), ]) !!}
@if ($trigger->getOption('list_uid')) @php $list = Acelle\Model\MailList::findByUid($trigger->getOption('list_uid')); @endphp
check_circle
{!! trans('messages.cart.auto_add_buyer_to_list', [ 'list' => $list->name, ]) !!}
@else
check_circle
{!! trans('messages.cart.auto_add_buyer_to_list.none') !!}
@endif
check_circle
{!! trans('messages.cart.connected_to_store', [ 'store' => $shopinfo['name'], ]) !!}
@endif
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'label' => '', 'name' => 'options[source_uid]', 'value' => $trigger->getOption('source_uid'), 'options' => request()->user()->customer->getSelectOptions('woocommerce'), 'help_class' => 'trigger', 'rules' => [], ])