@php // Rendered on every admin page. The only thing that matters here is that // somebody signed in as a seller can always get back out: an owner who // loses the way back is stuck as a tenant until somebody edits the session. $impersonating = session()->has(\App\Http\Controllers\Admin\ImpersonationController::SESSION_KEY); @endphp @if ($impersonating)
{{ __('You are working as :who.', ['who' => auth()->user()?->reseller?->name ?: auth()->user()?->name]) }} {{ __('Anything you change here is theirs.') }}
@csrf
@endif