<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <?php
        $versionedAsset = function (string $path): string {
            $normalizedPath = ltrim($path, '/');
            $publicRelativePath = str_starts_with($normalizedPath, 'public/')
                ? substr($normalizedPath, 7)
                : $normalizedPath;
            $fullPath = public_path($publicRelativePath);
            $version = is_file($fullPath) ? filemtime($fullPath) : time();

            return asset($path).'?v='.$version;
        };
    ?>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta name="theme-color" content="#10335b">
    <title><?php echo e(config('app.name', 'Just Exam League')); ?></title>

    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/css/app.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/bundles/datatables/datatables.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/bundles/datatables/DataTables-1.10.16/css/dataTables.bootstrap4.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/css/style.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/css/adminstyle.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/css/printsheetstyle.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/css/components.css')); ?>">
    <link rel="stylesheet" href="<?php echo e($versionedAsset('public/admin/assets/css/custom.css')); ?>">
    <link rel="icon" href="<?php echo e($versionedAsset('public/frontend/images/logo.png')); ?>">
    <?php echo $__env->yieldPushContent('styles'); ?>
</head>
<body class="theme-white jel-admin-shell">
<div class="loader"></div>
  <div id="app">
    <div class="main-wrapper main-wrapper-1">
      <script src="<?php echo e($versionedAsset('public/admin/assets/js/app.min.js')); ?>"></script>
      <script>
        (function () {
          var ckeditorScriptUrl = <?php echo json_encode($versionedAsset('public/admin/assets/bundles/ckeditor/ckeditor.js'), 15, 512) ?>;
          var adminScriptPromises = window.__portalAdminScriptPromises = window.__portalAdminScriptPromises || {};

          var loadScriptOnce = function (src) {
            if (adminScriptPromises[src]) {
              return adminScriptPromises[src];
            }

            adminScriptPromises[src] = new Promise(function (resolve, reject) {
              var existing = document.querySelector('script[src="' + src + '"]');
              if (existing) {
                if (window.CKEDITOR) {
                  resolve(window.CKEDITOR);
                  return;
                }

                existing.addEventListener('load', function () {
                  resolve(window.CKEDITOR);
                }, { once: true });
                existing.addEventListener('error', reject, { once: true });
                return;
              }

              var script = document.createElement('script');
              script.src = src;
              script.onload = function () {
                resolve(window.CKEDITOR);
              };
              script.onerror = reject;
              document.body.appendChild(script);
            });

            return adminScriptPromises[src];
          };

          var ensureLegacyCkeditor = function () {
            if (window.CKEDITOR) {
              return Promise.resolve(window.CKEDITOR);
            }

            return loadScriptOnce(ckeditorScriptUrl);
          };

          var makeEditorId = function (element, index) {
            if (!element.id) {
              element.id = (element.name || 'admin-editor') + '-' + index;
            }

            return element.id;
          };

          var attachLegacyCkeditor = function (elements) {
            if (!window.$ || !elements || !elements.length) {
              return;
            }

            ensureLegacyCkeditor()
              .then(function () {
                window.$(elements).each(function (index, element) {
                  var editorId = makeEditorId(element, index);
                  if (!window.CKEDITOR.instances[editorId]) {
                    window.CKEDITOR.replace(editorId);
                  }
                });
              })
              .catch(function () {
                console.warn('CKEditor could not be loaded for this page.');
              });
          };

          window.attachLegacyCkeditor = attachLegacyCkeditor;

          if (window.$ && typeof window.$.fn.ckeditor !== 'function') {
            window.$.fn.ckeditor = function () {
              attachLegacyCkeditor(this);
              return this;
            };
          }
        })();
      </script>
      <?php echo $__env->make('include.header', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
      <div class="main-sidebar sidebar-style-2">
          <?php echo $__env->make($adminSidebarView ?? 'include.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
      </div>
      <div class="main-content">
        <section class="section">
          <div class="section-body">
            <div class="row">
              <div class="col-12">
                <div class="card abhishekclass portal-admin-card">
                    <?php echo $__env->make('include.validation-errors', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    <?php echo $__env->yieldContent('content'); ?>
                </div>
              </div>
            </div>
          </div>
        </section>
      </div>
     <?php echo $__env->make('include.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    </div>
  </div>
  <script src="<?php echo e($versionedAsset('public/admin/assets/js/scripts.js')); ?>"></script>
  <script src="<?php echo e($versionedAsset('public/admin/assets/js/custom.js')); ?>"></script>
  <script>
    (function () {
      var uploadUrl = <?php echo json_encode(route('admin.upload.attachment'), 15, 512) ?>;

      var bindConfirmActions = function () {
        if (!window.$) {
          return;
        }

        window.$(document)
          .off('click.admin-confirm', '.deletedata')
          .on('click.admin-confirm', '.deletedata', function () {
            var message = this.getAttribute('data-confirm-message') || 'Are you sure you want to continue?';
            return window.confirm(message);
          });
      };

      var bindAlertDismiss = function () {
        document.querySelectorAll('[data-dismiss="alert"], [data-bs-dismiss="alert"]').forEach(function (button) {
          if (button.dataset.portalAlertBound === '1') {
            return;
          }

          button.dataset.portalAlertBound = '1';
          button.addEventListener('click', function (event) {
            event.preventDefault();
            var alertNode = button.closest('.alert');

            if (!alertNode) {
              return;
            }

            if (window.bootstrap && window.bootstrap.Alert) {
              window.bootstrap.Alert.getOrCreateInstance(alertNode).close();
              return;
            }

            alertNode.remove();
          });
        });
      };

      var initLegacyEditors = function () {
        if (!window.attachLegacyCkeditor) {
          return;
        }

        var editorFields = document.querySelectorAll('textarea[name="DSC"]');
        if (!editorFields.length) {
          return;
        }

        window.attachLegacyCkeditor(editorFields);
      };

      var bindLegacyUploadForm = function () {
        if (!window.$) {
          return;
        }

        var $form = window.$('#uploadForm');
        var $fileInput = window.$('#newuploaed');
        var $trigger = window.$('#newuploadphoto');
        var $target = window.$('#targetLayer');
        var $loading = window.$('.loading');

        if (! $form.length || ! $fileInput.length || ! $trigger.length || ! $target.length) {
          return;
        }

        $trigger.off('click.admin-upload').on('click.admin-upload', function (event) {
          event.preventDefault();
          $fileInput.trigger('click');
        });

        $fileInput.off('change.admin-upload').on('change.admin-upload', function () {
          if (this.files && this.files.length) {
            $form.trigger('submit');
          }
        });

        $form.off('submit.admin-upload').on('submit.admin-upload', function (event) {
          event.preventDefault();
          $loading.fadeIn();

          window.$.ajax({
            url: uploadUrl,
            type: 'POST',
            data: new FormData(this),
            contentType: false,
            cache: false,
            processData: false,
            success: function (html) {
              $loading.fadeOut();
              $target.html(html);
            },
            error: function () {
              $loading.fadeOut();
              window.alert('Image upload failed. Please try again.');
            }
          });
        });
      };

      var bootAdminHelpers = function () {
        initLegacyEditors();
        bindLegacyUploadForm();
        bindConfirmActions();
        bindAlertDismiss();

        if (window.bootstrap && typeof window.bootstrap.Tooltip === 'function') {
          document.querySelectorAll('[data-bs-toggle="tooltip"], [data-toggle="tooltip"]').forEach(function (element) {
            if (!window.bootstrap.Tooltip.getInstance(element)) {
              new window.bootstrap.Tooltip(element);
            }
          });
        }
      };

      if (window.$) {
        window.$(bootAdminHelpers);
      } else if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', bootAdminHelpers);
      } else {
        bootAdminHelpers();
      }
    })();
  </script>
  <script>
    (function () {
      var needsDatatables = document.querySelector('#table-1, #table-2, #save-stage, #tableExport');
      if (!needsDatatables) {
        return;
      }

      var loadScript = function (src) {
        return new Promise(function (resolve, reject) {
          var script = document.createElement('script');
          script.src = src;
          script.onload = resolve;
          script.onerror = reject;
          document.body.appendChild(script);
        });
      };

      loadScript(<?php echo json_encode($versionedAsset('public/admin/assets/bundles/datatables/datatables.min.js'), 15, 512) ?>)
        .then(function () {
          return loadScript(<?php echo json_encode($versionedAsset('public/admin/assets/bundles/datatables/DataTables-1.10.16/js/dataTables.bootstrap4.min.js'), 15, 512) ?>);
        })
        .then(function () {
          return loadScript(<?php echo json_encode($versionedAsset('public/admin/assets/bundles/jquery-ui/jquery-ui.min.js'), 15, 512) ?>);
        })
        .then(function () {
          return loadScript(<?php echo json_encode($versionedAsset('public/admin/assets/js/page/datatables.js'), 15, 512) ?>);
        })
        .catch(function () {
          console.warn('Admin table scripts could not be loaded.');
        });
    })();
  </script>
  <?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html>
<?php /**PATH C:\xampp\htdocs\examproject\examproject_new\resources\views/layouts/admin.blade.php ENDPATH**/ ?>