@php
if($action == 'edit') {
$attributes = json_decode($trigger->attributes);
}
@endphp
@if($type == 'list' || $type == 'date')
@php
if($action == 'edit') {
$list_ids = $attributes->list_ids;
}
@endphp
@include('includes.dropdown_lists', ['popup' => 0, 'multiple' => 1, 'required' => 1, 'client_package_lists' => 1])
@if($type == 'list' || $type == 'date')
@endif
@elseif($type == 'segment')
@php
if($action == 'edit') {
$segment_ids = $attributes->segment_ids;
}
@endphp
@include('includes.dropdown_segments', ['multiple' => 0, 'required' => 1])
@endif
@if($type == 'date')
@endif
@if($type == 'campaign')
@php
if($action == 'edit') {
$schedule_campaign_stat_ids = $attributes->schedule_campaign_stat_ids;
}
@endphp
@include('includes.dropdown_campaigns', ['multiple' => 1, 'required' => 1])
@endif
@if($type == 'list' || $type == 'date' || $type == 'segment' || $type == 'campaign')
@if($action == 'create')
@else
@endif
@endif
@if($type == 'send_campaign')
@elseif($type == 'start_drip')
@endif
@if($type == 'send_campaign')
@endif