@php $user = DB::table('users') ->where('id',$id) ->first(); $osoba = DB::table('t035_osoby') ->where('id',$user->pracownik_id) ->first(); $navbar_id_form = $osoba->id; //return dd($osoba->nazwisko); @endphp @extends('layouts.site') @section('content')