Laravel 5.4 blade foreach loop
问题 I am building a venue manangement system, and on the landing page, i m trying to show all the available slots to the visitors. The ones that have already been booked are shown as not available. I have created two variables, one that carries the info from the time table and the other from the booking table and tyring to use blade to compare and show. This is how I am trying to implement it in blade: @foreach($times as $time) @foreach($bookings as $booking) <tr> @if($time->availble_times ==