title: i want to change the text color based on the condition
body: <p>I am trying to show the text color change dynamically based on the condition that i am using in the code.Below is the code that i am using.Please help me out from this problem.</p>
  
  <pre><code>&lt;span class="pendtext" style="font-size:15px;"&gt;{{($duepay-&gt;status == 'issued') ? 'PENDING' : (($duepay-&gt;status == 'paid') ? 'SUCCESSFUL' : $duepay-&gt;status)}}&lt;/span&gt;
  
  
  &lt;script&gt;
  
  if($duepay-&gt;status == 'issued'){
    $(".pendtext").css('color','green');
  }
  else{
    $(".pendtext").css('color','yellow');
  }
  
  &lt;/script&gt;
  </code></pre>