Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vibe's avatar
Level 1

query

I need help i want to display the patient who has the body temp more the 45 from the database i am getting the clue because it is in the relationship table

0 likes
3 replies
vibe's avatar
Level 1
 @foreach($tt->pto2 as $rt)
                            @if($rt->spo_2 >80)
                            
                              <td>{{$rt->spo_2 }}</td>
                              @endif
                              @endforeach 
´´´´
this is working but i need the value between them 


vibe's avatar
vibe
OP
Best Answer
Level 1
                       ´´´´
                        @foreach($tt->pto2 as $rt)
                        @if($rt->spo_2 >80 && $rt->spo_2 <6000)
                        
                          <td>{{$rt->spo_2 }}</td>
                          @endif
                          @endforeach
                         ````

Thank you for your great support I got the answer by another method hope helpful for other

Thank you Burlresearch Your idea is grate to implement in the Restful API

Please or to participate in this conversation.