title: Laravel table cell color with cell value
body: <p>This is my blade loop.</p>
  
  <pre><code>@for ($coun=0;$coun&lt; $count_2; $coun++)
  &lt;table id="table2" border="1" style="display: inline-block;clear: both;"&gt;
          &lt;tbody&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?php print_r( $array_mem['id'][$coun]); ?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?php print_r( $array_mem['Name'][$coun]); ?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?php print_r( $array_mem['Mark'][$coun]); ?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?php print_r( $array_mem['Sub_1'][$coun]); ?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?php print_r( $array_mem['Sub_2'][$coun]); ?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?php print_r( $array_mem['Sub_3'][$coun]); ?&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;/tbody&gt;
  &lt;/table&gt; @endfor
  </code></pre>
  
  <p>I Have set of conditions to check the values in each column. and also change the cell colour depends. </p>
  
  <pre><code>+-------------------+-------------+
  | Condition         | Cell Colour |
  +-------------------+-------------+
  | If Id &lt; 10        | Red         |
  +-------------------+-------------+
  | If Id&gt;10 &amp;&amp; Id&lt;20 | Green       |
  +-------------------+-------------+
  | If Mark &lt;20       | Red         |
  +-------------------+-------------+
  | If Mark &gt;20       | Green       |
  +-------------------+-------------+
  | If Sub_1 &lt; 20     | Red         |
  +-------------------+-------------+
  </code></pre>
  
  <p>Is there any way to check and make the cell in specific colour. </p>
  
  <p>Am looking something except using if else condition,  that means using <strong>function</strong> or <strong>this</strong>.</p>