I would like to not display the checkbox that has the value equal to zero. Is there any way of using Jquery(or any other way that I have not tagged) to achieve this?
Blade syntax below:
@foreach ($displays as $display)
<div class="divclass">
<input name="subject{{$display->subject}}" id="list" type="checkbox" value="{{$display->id}}">{{$display->name}}
</div>
@endforeach
One of the {{$display->id}} is zero and so how could I ensure that the div does not get displayed?
@foreachput@if ($display->id != 0)