How can I pass variables to the partials view in Laravel

In the ProfileController I make this method to pass a user info to user/profile.blade.php
`

class ProfileController extends Controller
{
    public function profile($username)
    {
        $user = User::where('username', $username)->first();

        return view('user.profile', compact('user'));
    }
}

`

I can successfully receive my data from the profile.blade.php file. But the problem is profile.blade.php is a component based layout. And I need to pass the user to a component [A side bar].

In profile.blade.php

<x-user.master>

<x-slot name="title">
    {{ $title ?? 'Profile | Reporter'}}
</x-slot>

<x-user.partials.sidebar />

</x-user.master>

How can I send and receive user info from the sidebar view?