check rows in blade which has relationship with another table
In Blade file, how to check a result variable that has children table or not?
I have 3 related tables as 'parent' and 'child' which
//parent
id => 1
title => 'accessories' // which connected to a 'child' tables
id => 2
title => 'services' // which connected to a 'child' tables
id = 3
title => 'about' // which has no connected table
// accessories as child
id => 1
title => 'cable'
id => 2
title => 'holder'
// services as child
id => 1
title => 'repair'
id => 2
title => 'change'
l want to print all rows in parent table which has a relationship with another table as child