@include('helpers.form_control', ['type' => 'text', 'name' => 'name', 'value' => $segment->name, 'rules' => Acelle\Model\Segment::$rules])
@include('helpers.form_control', ['type' => 'select', 'name' => 'matching', 'label' => trans('messages.how_subscribers_matching'), 'value' => $segment->matching, 'help_class' => 'segment', 'options' => Acelle\Model\Segment::getTypeOptions(), 'rules' => Acelle\Model\Segment::$rules])

{{ trans('messages.conditions') }}

@if ($errors->has("segment_conditions_empty"))
{{ $errors->first("segment_conditions_empty") }}
@endif
@foreach ($segment->segmentConditions as $condition)
@php $cField = ( $condition->field_id ? ( Acelle\Model\Field::findByUid($condition->field_id) ?? (Acelle\Model\Field::find($condition->field_id) ?? NULL) ) : NULL ); @endphp @include('segments._condition_value_control', [ 'field' => $cField, 'field_uid' => $condition->field_id, 'operator' => $condition->operator, 'index' => $condition->uid, 'value' => $condition->value ])
@endforeach

add {{ trans('messages.add_condition') }}