how can i combine multiple tables with different names?

try do it using property_exists

  @foreach($all_pickups as $all_pickup)
       <tr> 
           <td>
 @if(property_exists($all_pickup,'pickup_id_'))
{{-- there is pickup_id_ --}}
@else
{{-- there is no pickup_id_ so it must be id --}}
@endif
          </td>
       </tr> 
     @endforeach

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top