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

{{ ucfirst(str_replace('-',' ',$route[0])) }} @if(count($route) > 1) @if($route[1] !== 'index' && $route[1] !== 'users') {{ $route[1] }} @endif @endif