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

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