title: How do I show specific projects of each user for the admin.?
body: <p>The admin of the application has access to list each projects of a user. Write now I am able to list the projects but they all are listed together no matter the unique id of the URL. </p>
  
  <pre><code>   //    Admin form case controller
      public function adminforms (Project $project){
          $users = User::get();
       return view('smiledesign.adminforms', compact('users', 'project'));
   } 
  ///Records controller
      public function records(user $users, project $project){
          $project = project::get();
  
          $users = user::get();
  
          return view ('/smiledesign/records' , compact( 'users','project'));
      }
  </code></pre>
  
  <pre><code>&lt;table class="table"&gt;
              &lt;thead&gt;
                      &lt;tr&gt;
                              &lt;th&gt;Dr Name&lt;/th&gt;
                              &lt;th&gt;User Id&lt;/th&gt;
                              &lt;th&gt;Email&lt;/th&gt;
                      &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
         @foreach ($users as $user)
               &lt;tr&gt;
                   &lt;td&gt; &lt;a href="/smiledesign/{{$user-&gt;id}}/records"&gt;{{$user-&gt;name}}&lt;/a&gt;&lt;/td&gt;
                   &lt;td&gt; &lt;a href="/smiledesign/{{$user-&gt;id}}/records"&gt;{{$user-&gt;id}}&lt;/a&gt;&lt;/td&gt;
                   &lt;td&gt; &lt;a href="/smiledesign/{{$user-&gt;id}}/records"&gt;{{$user-&gt;email}}&lt;/a&gt;&lt;/td&gt;
               &lt;/tr&gt;
  
           &lt;/tbody&gt;
           @endforeach
       &lt;/table&gt;
  </code></pre>
  
  <pre><code>// Records view
  &lt;table class="table table-striped table-bordered" id="table_id"&gt;
              &lt;thead&gt;
                      &lt;tr&gt;
                              &lt;th&gt;Case Number&lt;/th&gt;
                              &lt;th&gt;Case Form&lt;/th&gt;
                              &lt;th&gt;Patient Name&lt;/th&gt;
                              &lt;th&gt;Date Created&lt;/th&gt;
                              &lt;th&gt;Status&lt;/th&gt;
                      &lt;/tr&gt;
              &lt;/thead&gt;
              @foreach ($project as $project)
              &lt;tbody&gt;
  
               &lt;tr&gt;
  
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;case_number}}&lt;/a&gt;&lt;/td&gt;
  
                   @if ($project-&gt;services0)
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;services0}}&lt;/a&gt;&lt;/td&gt; 
                   @elseif ($project-&gt;services1)
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;services1}}&lt;/a&gt;&lt;/td&gt; 
                   @elseif ($project-&gt;services2)
                   {{-- &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;services2 . '  '  . $project-&gt;mockup0}}&lt;/a&gt;&lt;/td&gt;  --}}
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;services2 . '  '  . $project-&gt;mockup0 . ' ' . $project-&gt;mockup1}}&lt;/a&gt;&lt;/td&gt; 
  
                   @endif
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;first_name . ' ' . $project-&gt;last_name}}&lt;/a&gt;&lt;/td&gt;
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;created_at}}&lt;/a&gt;&lt;/td&gt;
                   &lt;td&gt; &lt;a href="/smiledesign/{{$project-&gt;id}}/show"&gt;{{$project-&gt;concerns}}&lt;/a&gt;&lt;/td&gt; 
               &lt;/tr&gt;
  
           &lt;/tbody&gt;
           @endforeach
  
       &lt;/table&gt;
  </code></pre>
  
  <p>What I wanna see is each project of a specific user when I click The link from the adminforms user. Instead, every link I go I see all projects of all users</p>