@include('includes.header') @php if (Auth::check()) { $gestion = DB::table('users') ->join('copropriete', 'users.copropriete_active', '=', 'copropriete.id') ->where('copropriete_active', Auth::user()->copropriete_active) ->first(); } else { $gestion = DB::table('copropriete') ->where('id', '=', 2) ->first(); } @endphp