<?php if(session('site_sync_success')): ?>
    <div class="alert alert-success mansion-site-sync-status" role="status">
        <?php echo e(session('site_sync_success')); ?>

    </div>
<?php elseif($siteSyncStatus === 'pending'): ?>
    <div class="error mansion-site-sync-status" role="alert">
        <strong>サイト再同期待ち</strong>
        <p>物件情報の保存は完了しましたが、サイトへの反映に失敗しました。自動的に再送します。必要に応じて「サイトへ再同期」を実行してください。</p>
        <form method="POST" action="<?php echo e(route('mansion.site-sync.retry', ['id' => $buildingId])); ?>">
            <?php echo e(csrf_field()); ?>

            <button type="submit">サイトへ再同期</button>
        </form>
    </div>
<?php elseif($siteSyncStatus === 'failed'): ?>
    <div class="error mansion-site-sync-status" role="alert">
        <strong>サイト同期失敗</strong>
        <p>物件情報の保存は完了しましたが、自動再送に失敗しました。「サイトへ再同期」を実行してください。</p>
        <form method="POST" action="<?php echo e(route('mansion.site-sync.retry', ['id' => $buildingId])); ?>">
            <?php echo e(csrf_field()); ?>

            <button type="submit">サイトへ再同期</button>
        </form>
    </div>
<?php elseif($siteSyncStatus === 'processing'): ?>
    <div class="alert alert-info mansion-site-sync-status" role="status">
        <strong>サイト再同期処理中</strong>
        <p>現在サイトへの再同期を実行中です。しばらくしてから再度ご確認ください。</p>
    </div>
<?php endif; ?>
