I want to filter results based on three conditions in Laravel view blade. I wrote this code but is not giving me the right results because I second condition has to be between two numbers. My code:
@foreach($post_array[$key] as $array)
@if($array['diff'] <= 168)
<td><td>
@elseif($array['diff'] > (168) && (720))
<td><td>
@elseif($array['diff'] > 720)
<td><td>
@endif
@endforeach
Aucun commentaire:
Enregistrer un commentaire