<div>
    @if(session()->has('impersonator_id'))
        <div style="position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;">
            <div class="card shadow mb-0">
                <div class="card-body py-2 px-3 d-flex align-items-center gap-3">
                    <div class="text-danger">
                        <i class="mdi mdi-account-switch me-1"></i>
                        <span class="fw-medium">You are impersonating {{ auth()->user()->name_first }} {{ auth()->user()->name_last }}</span>
                    </div>
                    <form method="POST" action="{{ route('admin.users.stop-impersonation') }}">
                        @csrf
                        <button class="btn btn-sm btn-danger">
                            Exit
                        </button>
                    </form>
                </div>
            </div>
        </div>
    @endif
</div>