@extends('crm::emails.layout-non-tenant', [
    'subject' => 'Impersonation Request ' . ucfirst($status),
])

@section('content')

    <p>
        Your impersonation request has been <strong>{{ $status }}</strong>.
    </p>

    <ul>
        <li><strong>Target User:</strong> {{ $impersonationRequest->targetUser->name }} ({{ $impersonationRequest->targetUser->email }})</li>
        <li><strong>Actioned by:</strong> {{ $impersonationRequest->actionedBy->name ?? 'Unknown' }}</li>
    </ul>

    @if($status === 'approved')
        <p>
            You can now impersonate this user. Please note the approval is valid for <strong>1 hour</strong>
            and must be used within your current login session.
        </p>
    @endif

    @if($impersonationRequest->admin_notes)
        <p><strong>Notes:</strong> {{ $impersonationRequest->admin_notes }}</p>
    @endif

@endsection
