testing with a session data to display a photo in a blade page : i want to test "sexe" to display a photo. I use the session but nothing happens

that's the controller: 

       public function store () {

        request()->validate([
                
          
                'username'=>['required'],
                'sexe'=>['required'] ,
                'role'=>['required'] ,
        ]);

    	$enfant= new enfant();

                
    	$enfant->username=request('username');
        $enfant->role=request('role');
    	$enfant->sexe=request('sexe'); 
    	$enfant->parent_id=Auth::user()->id;

    	$enfant->save();
        $sexe = session()->get( 'sexe' );
        return redirect ('/themes', compact('enfants'))->with([ 'sexe' => $sexe ]);
       
    }

and that's the view

      {{ session()->get( 'sexe' ) }}
               @if ( 'sexe'=='f' )
               <img src="images/avatarF.png" class="profile" style="width: 160px ; height: 160px;">
              @endif 
               @if ( 'sexe'=='h' )
               <img src="images/avatarG.png" class="profile" style="width: 1600px ; height: 160px; margin-top: 0px;">
              @endif 


