<?php
/**
 * Export document preview (SO / CRV).
 * Expected: $preview_html when searched and data exists
 */
if (empty($searched) || empty($preview_html)) {
    return;
}
?>
<div class="export-preview-wrap mt-4">
  <div class="export-preview-head">
    <h4>Export preview</h4>
    <p class="mb-0">How the document will look when exported to PDF / Word.</p>
  </div>
  <div class="export-preview-frame">
    <?php echo $preview_html; ?>
  </div>
</div>
