{{ Session('activeProfileName') }}
{{ __('You are now acting as') }}
@include('post-header', ['title' => session('activeProfileName')])
@php $activeType = session('activeProfileType'); $activeId = session('activeProfileId'); $roleLabel = match($activeType) { 'App\Models\User' => __('User'), 'App\Models\Admin' => __('Administrator'), 'App\Models\Organization', 'App\Models\Bank' => canActiveProfileCreatePayments() ? __('Manager') . ' — ' . __('Full access including payments') : __('Coordinator') . ' — ' . __('Full access except payments'), default => null, }; @endphp @if ($roleLabel)
{{ __('Your role:') }} {!! $roleLabel !!}
@endif