<!doctype html>
<html lang="fr">
<head>
    <meta charset="utf-8">
    <title>{{ $title }}</title>
</head>
<body style="font-family: Arial, sans-serif; color: #0b1e33; line-height: 1.5;">
    <h2 style="margin: 0 0 12px;">{{ $title }}</h2>
    <p style="margin: 0 0 14px;">{{ $body }}</p>

    @if(!empty($payload))
        <h4 style="margin: 0 0 8px;">Informations</h4>
        <ul style="margin: 0; padding-left: 18px;">
            @foreach($payload as $key => $value)
                <li>
                    <strong>{{ $key }}:</strong>
                    {{ is_scalar($value) || $value === null ? (string) $value : json_encode($value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}
                </li>
            @endforeach
        </ul>
    @endif

    <p style="margin-top: 20px; color: #556777;">
        Cet email est envoye automatiquement par LineUp France.
    </p>
</body>
</html>
