@props(['calculation','fieldsList','calculations'])
@php
$ValueType=$calculation->ValueType;
$Operator=$calculation->Operator;
$WorkFlowCalculationId=$calculation->WorkFlowCalculationId;
$FieldsList=$fieldsList;
$Value1=$calculation->Value1;
$Value2=$calculation->Value2;
$Years=$calculation->Years;
$Months=$calculation->Months;
$Days=$calculation->Days;
$Hours=$calculation->Hours;
$Minutes=$calculation->Minutes;
if(isset($calculations))
{
$Calculations=$calculations;
}
else
{
$Calculations=[];
}
@endphp
@if($ValueType==1)
@if($Operator=="8")
@endif
@elseif($ValueType==2)
@if($Operator=="6" || $Operator=="7" || $Operator=="8")
@php
if($Value1)
{
$Value1=date('Y-m-d H:i:s',strtotime($Value1));
}
else
{
$Value1=date('Y-m-d H:i:s');
}
if($Value2)
{
$Value2=date('Y-m-d H:i:s',strtotime($Value2));
}
else
{
$Value2=date('Y-m-d H:i:s');
}
@endphp
@if($Operator=="8")
@endif
@else
@endif
@else
@endif
@if( ($Operator==6 || $Operator==7) )
@endif