@php $route = explode('.',Route::currentRouteName()); @endphp

{{ ucfirst(str_replace('-',' ',$route[0])) }}