@if (strpos($operator, 'tag') !== false)
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'conditions['.$index.'][operator]', 'label' => '', 'value' => (isset($operator) ? $operator : ''), 'options' => Acelle\Model\Segment::tagOperators() ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'conditions['.$index.'][value]', 'label' => '', 'value' => (isset($value) ? $value : '') ])
@elseif (strpos($operator, 'last_open_email') !== false)
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'conditions['.$index.'][operator]', 'label' => '', 'value' => (isset($operator) ? $operator : ''), 'options' => Acelle\Model\Segment::openMailOperators() ])
@include('helpers.form_control', [ 'type' => 'number', 'name' => 'conditions['.$index.'][value]', 'label' => '', 'value' => (isset($value) ? $value : '') ])
@elseif (strpos($operator, 'last_link_click') !== false)
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'conditions['.$index.'][operator]', 'label' => '', 'value' => (isset($operator) ? $operator : ''), 'options' => Acelle\Model\Segment::clickLinkOperators() ])
@include('helpers.form_control', [ 'type' => 'number', 'name' => 'conditions['.$index.'][value]', 'label' => '', 'value' => (isset($value) ? $value : '') ])
@elseif (strpos($operator, 'verification') !== false)
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'conditions['.$index.'][operator]', 'label' => '', 'value' => (isset($operator) ? $operator : ''), 'options' => Acelle\Model\Segment::verificationOperators() ])
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'conditions['.$index.'][value]', 'label' => '', 'value' => (isset($value) ? $value : ''), 'options' => Acelle\Model\Subscriber::getVerificationStates() ])
@elseif (strpos($operator, 'created_date') !== false) @include('segments.operator.created_date') @elseif ($field && in_array($field->type, [Acelle\Model\Field::TYPE_DATE])) @include('segments.conditions.date') @elseif ($field && in_array($field->type, [Acelle\Model\Field::TYPE_DATETIME])) @include('segments.conditions.datetime') @else
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'conditions['.$index.'][operator]', 'label' => '', 'value' => (isset($operator) ? $operator : ''), 'options' => Acelle\Model\Segment::operators() ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'conditions['.$index.'][value]', 'label' => '', 'value' => (isset($value) ? $value : '') ])
@endif