@php $nav = [ 'Compose SMS' => 'communications.sms', 'SMS history' => 'communications.history', 'Compose email' => 'communications.email', 'Email history' => 'communications.email.history', ]; $current = request()->route()?->getName() ?? ''; @endphp