@php $options = [ ['text' => trans('messages.automation.condition.open'), 'value' => 'open'], ['text' => trans('messages.automation.condition.click'), 'value' => 'click'], ]; $trigger = $automation->getTrigger(); if ($trigger->getOption('type') == 'woo-abandoned-cart') { $options = array_merge($options, [ ['text' => trans('messages.automation.condition.cart_buy_anything'), 'value' => 'cart_buy_anything'], ['text' => trans('messages.automation.condition.cart_buy_item'), 'value' => 'cart_buy_item'], ]); } $id = uniqid(); @endphp
{{ trans('messages.automation.action.condition.intro') }}