@if(isset($condition))
Editing Condition
@else
New Condition
@endif
Fields are shown based on question type {{$question->question_type}}
@if( $question->question_type=='text' ||
$question->question_type=='textarea' ||
$question->question_type=='dm+d' ||
$question->question_type=='address')
@endif
@if($question->question_type == 'number' ||
$question->question_type=='age' ||
$question->question_type=='5x5_risk_matrix')
@endif
@if($question->question_type == 'date')
@endif
@if($question->question_type =='radio'||
$question->question_type=='checkbox' ||
$question->question_type=='select')
@if(isset($condition) && json_decode($condition->condition_value))
@foreach(json_decode($condition->condition_value) as $value)
@endforeach
@endif
@endif
@if($question->question_type =='time')
@endif
@if($question->question_type=='user')
@endif
@if($question->question_type=='user_type')
@endif
@if($question->question_type !=='time'
&& $question->question_type !== 'user'
&& $question->question_type !== 'user_type')
@else
No action can be added for this question.
@endif