@php $currentUrl = request()->path(); // Get the path portion of the URL $segments = explode('/', $currentUrl); // Split the path into segments $startingSlug = $segments[0]; // Get the first segment $baseUrl = url(''); @endphp

Dashboard

@yield('content')
@yield('script')