<!DOCTYPE html>
<html lang="en" id="html-root" class="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<title><?php echo $__env->yieldContent('title','Dashboard'); ?> - Admin</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css','resources/js/app.js']); ?>
</head>
<body>


<aside class="sidebar">
  <div class="sidebar-header"><?php echo e($appName); ?></div>

  <nav class="sidebar-nav">
    <?php
    $g1 = [
      ['route'=>'admin.dashboard',       'label'=>'Dashboard',
       'icon'=>'M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'],
      ['route'=>'admin.bulletin.index',  'label'=>'Bulletin',
       'icon'=>'M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z'],
      ['route'=>'admin.products.index',  'label'=>'Products',
       'icon'=>'M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4'],
      ['route'=>'admin.licenses.index',  'label'=>'Licenses',
       'icon'=>'M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'],
      ['route'=>'admin.customers.index', 'label'=>'Customers',
       'icon'=>'M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z'],
      ['route'=>'admin.support.index',   'label'=>'Support',
       'icon'=>'M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z'],
      ['route'=>'admin.orders.index',    'label'=>'Orders',
       'icon'=>'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'],
    ];
    $g2 = [
      ['route'=>'admin.settings.index',       'label'=>'Settings',
       'icon'=>'M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065zM15 12a3 3 0 11-6 0 3 3 0 016 0z'],
      ['route'=>'admin.currencies.index',     'label'=>'Currencies',
       'icon'=>'M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4'],
      ['route'=>'admin.tax.index',            'label'=>'Tax',
       'icon'=>'M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2z'],
      ['route'=>'admin.payment-gateways.index','label'=>'Payment Gateways',
       'icon'=>'M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'],
    ];
    $g3 = [
      ['route'=>'admin.security.events',      'label'=>'Security Events',
       'icon'=>'M12 9v2m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z'],
      ['route'=>'admin.security.api-monitor', 'label'=>'API Monitor',
       'icon'=>'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z'],
      ['route'=>'admin.security.audit',       'label'=>'Audit Log',
       'icon'=>'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'],
    ];
    ?>

    <?php $__currentLoopData = $g1; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <a href="<?php echo e(route($n['route'])); ?>" class="nav-item <?php echo e(request()->routeIs($n['route'].'*') ? 'active' : ''); ?>">
      <svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="<?php echo e($n['icon']); ?>"/>
      </svg>
      <?php echo e($n['label']); ?>

    </a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    <div class="sidebar-section" style="margin-top:.5rem">System</div>

    <?php $__currentLoopData = $g2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <a href="<?php echo e(route($n['route'])); ?>" class="nav-item <?php echo e(request()->routeIs($n['route'].'*') ? 'active' : ''); ?>">
      <svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="<?php echo e($n['icon']); ?>"/>
      </svg>
      <?php echo e($n['label']); ?>

    </a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    <div class="sidebar-section" style="margin-top:.5rem">Security</div>

    <?php $__currentLoopData = $g3; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <a href="<?php echo e(route($n['route'])); ?>" class="nav-item <?php echo e(request()->routeIs($n['route'].'*') ? 'active' : ''); ?>">
      <svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="<?php echo e($n['icon']); ?>"/>
      </svg>
      <?php echo e($n['label']); ?>

    </a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </nav>

  <div class="sidebar-footer">
    <div class="sidebar-user">
      <div class="user-avatar"><?php echo e(strtoupper(substr(auth()->user()->name,0,1))); ?></div>
      <div style="flex:1;min-width:0">
        <div style="font-size:.8125rem;font-weight:500;color:var(--sidebar-foreground);
          white-space:nowrap;overflow:hidden;text-overflow:ellipsis"><?php echo e(auth()->user()->name); ?></div>
        <div style="font-size:.6875rem;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.06em">Admin</div>
      </div>
      <form method="POST" action="<?php echo e(route('admin.logout')); ?>" style="flex-shrink:0">
        <?php echo csrf_field(); ?>
        <button type="submit" class="topbar-icon" style="width:1.5rem;height:1.5rem">
          <svg width="14" height="14" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
              d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/>
          </svg>
        </button>
      </form>
    </div>
  </div>
</aside>


<div class="main">
  <header class="topbar">
    <div style="display:flex;align-items:center;gap:.125rem">
      <a href="<?php echo e(route('admin.bulletin.index')); ?>"
         class="topbar-link <?php echo e(request()->routeIs('admin.bulletin*') ? 'active' : ''); ?>">
        <svg width="14" height="14" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75"
            d="M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"/>
        </svg>
        Bulletin
      </a>
      <a href="<?php echo e(route('admin.support.index')); ?>"
         class="topbar-link <?php echo e(request()->routeIs('admin.support*') ? 'active' : ''); ?>">
        <svg width="14" height="14" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75"
            d="M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z"/>
        </svg>
        Tickets
      </a>
      <a href="<?php echo e(route('admin.security.events')); ?>"
         class="topbar-link <?php echo e(request()->routeIs('admin.security*') ? 'active' : ''); ?>">
        <svg width="14" height="14" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75"
            d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
        </svg>
        Security
      </a>
    </div>

    <div style="flex:1"></div>

    <div style="display:flex;align-items:center;gap:.125rem">
      <div class="online-dot" title="System operational"></div>
      <span style="font-size:.75rem;color:var(--muted-foreground);margin-left:.25rem;margin-right:.25rem">Operational</span>

      
      <button class="topbar-icon">
        <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6"
            d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
        </svg>
      </button>

      
      <button class="topbar-icon">
        <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6"
            d="M15.536 8.464a5 5 0 010 7.072M12 18.364l-4.243-4.243H5a1 1 0 01-1-1v-2.242a1 1 0 011-1h2.757L12 5.636v12.728z"/>
        </svg>
      </button>

      
      <button class="topbar-icon" id="theme-toggle">
        <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6"
            d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364-6.364l-.707.707M6.343 17.657l-.707.707M17.657 17.657l-.707-.707M6.343 6.343l-.707-.707M12 8a4 4 0 100 8 4 4 0 000-8z"/>
        </svg>
      </button>

      <div class="topbar-sep"></div>

      
      <div style="position:relative" id="a-user-wrap">
        <button id="a-user-btn" onclick="aToggle()"
          style="display:flex;align-items:center;gap:.5rem;padding:.25rem .625rem .25rem .375rem;
            border-radius:var(--radius);border:1px solid var(--border);background:var(--sidebar);
            cursor:pointer;transition:background .1s;font-family:inherit;line-height:1"
          onmouseover="this.style.background='var(--muted)'"
          onmouseout="this.style.background='var(--sidebar)'">
          <div class="user-avatar"><?php echo e(strtoupper(substr(auth()->user()->name,0,1))); ?></div>
          <div style="text-align:left">
            <div style="font-size:.8rem;font-weight:600;color:var(--foreground);line-height:1.25;white-space:nowrap">
              <?php echo e(str_replace(' ','_',strtolower(auth()->user()->name))); ?>

            </div>
            <div style="font-size:.625rem;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.07em;font-weight:500">Admin</div>
          </div>
          <svg id="a-chevron" width="12" height="12" fill="none" stroke="var(--muted-foreground)" viewBox="0 0 24 24"
            style="flex-shrink:0;transition:transform .15s">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
          </svg>
        </button>

        <div id="a-user-drop"
          style="display:none;position:absolute;top:calc(100% + .375rem);right:0;
            min-width:210px;background:var(--background);
            border:1px solid var(--border);border-radius:var(--radius);
            box-shadow:0 8px 24px rgba(0,0,0,.1),0 2px 6px rgba(0,0,0,.06);
            z-index:200;overflow:hidden">

          <div style="padding:.875rem 1rem;border-bottom:1px solid var(--border)">
            <div style="font-size:.875rem;font-weight:600;color:var(--foreground);margin-bottom:.125rem">
              <?php echo e(str_replace(' ','_',strtolower(auth()->user()->name))); ?>

            </div>
            <div style="font-size:.8125rem;color:var(--muted-foreground)"><?php echo e(auth()->user()->email); ?></div>
          </div>

          <div style="padding:.3125rem">
            <a href="#"
              style="display:flex;align-items:center;gap:.625rem;padding:.5rem .75rem;
                border-radius:calc(var(--radius) - .15rem);font-size:.875rem;
                color:var(--foreground);text-decoration:none;transition:background .1s"
              onmouseover="this.style.background='var(--muted)'"
              onmouseout="this.style.background='transparent'">
              <svg width="15" height="15" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75"
                  d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065zM15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
              </svg>
              Settings
            </a>
          </div>

          <div style="border-top:1px solid var(--border);padding:.3125rem">
            <form method="POST" action="<?php echo e(route('admin.logout')); ?>" style="margin:0">
              <?php echo csrf_field(); ?>
              <button type="submit"
                style="width:100%;display:flex;align-items:center;gap:.625rem;padding:.5rem .75rem;
                  border-radius:calc(var(--radius) - .15rem);font-size:.875rem;font-weight:400;
                  color:#dc2626;background:transparent;border:none;cursor:pointer;
                  font-family:inherit;text-align:left;transition:background .1s"
                onmouseover="this.style.background='#fef2f2'"
                onmouseout="this.style.background='transparent'">
                <svg width="15" height="15" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75"
                    d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/>
                </svg>
                Sign out
              </button>
            </form>
          </div>
        </div>
      </div>

    </div>
  </header>

  <?php if(session('success')): ?>
  <div style="padding:.75rem 2rem 0">
    <div class="flash-ok">
      <svg width="14" height="14" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
      </svg>
      <?php echo e(session('success')); ?>

    </div>
  </div>
  <?php endif; ?>
  <?php if(session('error') || $errors->any()): ?>
  <div style="padding:.75rem 2rem 0">
    <div class="flash-err">
      <svg width="14" height="14" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
          d="M12 9v2m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/>
      </svg>
      <?php echo e(session('error') ?? $errors->first()); ?>

    </div>
  </div>
  <?php endif; ?>

  <main class="page">
    <?php echo $__env->yieldContent('content'); ?>
  </main>
</div>

<script>
(function(){
  var r = document.getElementById('html-root');
  var btn = document.getElementById('theme-toggle');
  function apply(t) {
    if (t === 'dark') { r.classList.remove('light'); r.classList.add('dark'); }
    else              { r.classList.remove('dark'); r.classList.add('light'); }
    localStorage.setItem('lp_theme', t);
  }
  apply(localStorage.getItem('lp_theme') || 'light');
  btn.addEventListener('click', function() {
    apply(r.classList.contains('dark') ? 'light' : 'dark');
  });
})();

function aToggle() {
  var drop = document.getElementById('a-user-drop');
  var chev = document.getElementById('a-chevron');
  var open = drop.style.display === 'block';
  drop.style.display = open ? 'none' : 'block';
  chev.style.transform = open ? 'rotate(0deg)' : 'rotate(180deg)';
}
document.addEventListener('click', function(e) {
  var wrap = document.getElementById('a-user-wrap');
  if (wrap && !wrap.contains(e.target)) {
    var drop = document.getElementById('a-user-drop');
    var chev = document.getElementById('a-chevron');
    if (drop) drop.style.display = 'none';
    if (chev) chev.style.transform = 'rotate(0deg)';
  }
});
</script>
</body>
</html>
<?php /**PATH D:\License system\license-platform\resources\views/layouts/admin.blade.php ENDPATH**/ ?>