<?php
require_once __DIR__ . '/mj_v304_bootstrap.php';
$userType = mjv304_is_admin() ? 'admin' : 'user';
$userId = mjv304_is_admin() ? null : mjv304_current_user_id();
$assetPrefix = (strpos($_SERVER['SCRIPT_NAME'] ?? '', '/admin/') !== false) ? '../' : '';
?>
<link rel="stylesheet" href="<?php echo $assetPrefix; ?>assets/css/mj-v304.css?v=304">
<link rel="stylesheet" href="<?php echo $assetPrefix; ?>assets/css/mj-v3041-location-notifications.css?v=3041">
<div class="mj-v304-notification-root" style="display:inline-block;position:relative;">
  <button type="button" class="mj-notify-bell" title="Notifications" aria-label="Notifications">
    🔔 <span class="mj-notify-count">0</span>
  </button>
  <div class="mj-notify-panel">
    <div class="mj-notify-head">
      <span>Notifications</span>
      <a href="#" data-mj-notify-readall style="font-size:12px;text-decoration:none;">Mark all read</a>
    </div>
    <div class="mj-notify-list"><div class="mj-empty">Loading...</div></div>
  </div>
</div>
<script>window.MJ_V304_NOTIFY_ENDPOINT='<?php echo $assetPrefix; ?>ajax/mj-v3041-notifications.php';</script>
<script src="<?php echo $assetPrefix; ?>assets/js/mj-v3041-notifications.js?v=3041" defer></script>
