Is there a way to check the current page's route name with blade? I have a blade layout template that needs to change it's <body> attribute by the current uri. Note that I need to do this through blade, not js.
Here is an example snippet that illustrates what I want to do:
@if (URL::current() == {{ route('admin.index') }}) //not valid syntax
    <body class="dashboard" id="top">
@else 
    <body class="not-dashboard" id="not-top">
@endif
 
    