title: How can I make a single notification read and show it?
body: <p>I have a list of database notifications, rendered like:</p>
  
  <h2>Code</h2>
  
  <pre><code>    &lt;ul class="nav navbar-nav ml-auto"&gt;
          &lt;li class="nav-item dropdown"&gt;
              &lt;a id="navbarDropdown" class="nav-link" href="#" role="button" data-   toggle="dropdown"
              aria-haspopup="true" aria-expanded="false" v-pre&gt;&lt;i class="fas fa-bell"
              style="color:cornsilk"&gt;&lt;/i&gt;&lt;/a&gt;
              &lt;ul class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"&gt;
                  @foreach ($user-&gt;unreadNotifications as $notification)
                      &lt;li&gt;&lt;a class="dropdown-item"
                      href="/predmeti/{{$notification-&gt;data['subject_id']}}/obavjestenja/{{$notification-&gt;data['obavjestenje_id']}}"
                      style="color: #d66e0a"&gt;{{$notification-&gt;data['naslov']}}&lt;/a&gt;
                      &lt;/li&gt;
                  @endforeach
                  @foreach ($user-&gt;readNotifications as $notification)
                      &lt;li&gt;&lt;a class="dropdown-item text-dark" href="#"&gt;{{$notification-&gt;data['naslov']}}&lt;/a&gt;
                      &lt;/ul&gt;
                      &lt;/li&gt;
                  @endforeach
              &lt;/ul&gt;
          &lt;/li&gt;
  </code></pre>
  
  <h3>Problem</h3>
  
  <p>Now what I want is when I click on a single notification, I want to be redirected to that notification(I have a blade file for that and it works).
  And I also want to mark it as read in a database table plus change the color of it according to the status of a notification.
  I tried it in a <code>Controller</code> but I can't seem to redirect to the following url :</p>
  
  <pre><code>    /predmeti/{{$notification-&gt;data['subject_id']}}/obavjestenja/{{$notification-&gt;data['obavjestenje_id']}}
  </code></pre>
  
  <p>From within the <code>Controller</code>. Do I need jquery for this or can it be done with route/controller?</p>