I am using laravel 5.5. I am creating a table highlighting various records for different stages and years. Right now, each year and stage has its own variable. I want to hide records that come back 0-0. Right now I am doing it this way:
<td>-</td>
@if(($roundtwoyearone || $roundtwoyearoneloss) == 0)
@else
<td>-</td>
@endif
Is there a way to set a global if-statement for all variables stating that if any two variables equal 0 and 0 that they will all be hidden? Perhaps with CSS? I am also stuck trying to figure out a loop for these if anybody wants to tackle that aspect of it, but I want to research a bit more on that before I ask that question individually.
Aucun commentaire:
Enregistrer un commentaire