title: How to check current URL inside @if statement in Laravel 5.6
body: <p>I am using laravel 5.6 and im trying to check if my current URL inside an <code>@if</code> statement.</p>
  
  <p>I saw some other posts stating that it could be done like this <code>@if(Request:url() === 'url to check')</code>. But that particular post i saw was the solution for Laravel 4. Anyone knows how to get the current url and put inside an <code>@if</code> statement for Laravel 5.6? </p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>@if(Request::url() === '/dashboard/attendance/report')
        &lt;a href="#" class="btn btn-danger" target="_blank"&gt;Button&lt;/a&gt;
  @endif
  </code></pre>