<!doctype html>
<html lang="ko">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>처리 결과</title>
</head>
<body>
<script>
    (function () {
        var ok = @json($ok ?? false);
        var message = @json($message ?? '');
        var redirect = @json($redirect ?? '/');

        if (message) {
            alert(message);
        }

        try {
            if (window.top) window.top.location.href = redirect;
            else window.location.href = redirect;
        } catch (e) {
            window.location.href = redirect;
        }
    })();
</script>

<noscript>
    <a href="{{ $redirect }}">계속</a>
</noscript>
</body>
</html>
