$items = Items::with([ 'sku' => function ($query) { $query->where('sell_price', '<', 'cost_price'); } ]) ->where('item_status', 1) ->paginate(10);
'sku' => function ($query) { $query->where('sell_price', '<', 'cost_price'); }