<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Backup</title>
  <!-- Favicon -->
  <link rel="shortcut icon" href="<?php echo e(url('design/img/svg/Logo_Original.png')); ?>">
  <!-- Bootstrap -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <!-- Custom styles -->
  <!-- Fontawesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  <!-- Custom styles -->
  <link rel="stylesheet" href="<?php echo e(url('design/css/style.min.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(url('design/fonts/stylesheet.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(url('design/css/project-style.css')); ?>">
</head>

<body>
  <div class="layer"></div>
  <!-- ! Body -->
  <div class="page-flex">
    <!-- ! Sidebar -->
    <?php echo $__env->make('component.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="main-wrapper">
      <!-- ! Main nav -->
      <?php echo $__env->make('component.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
      <!-- ! Main -->
      <main class="main users chart-page">
        <div class="container">
          <h2 class="main-title">Back Up</h2>
          <div class="row justify-content-center">
            <div class="col-lg-4">
              <div class="white-block">
                <div class="row">
                  <div class="col-6">
                    <img src="<?php echo e(url('design/img/svg/down-arrow.svg')); ?>" class="p-5" alt="Download">
                  </div>
                  <div class="col-6 text-center">
                    <h5 class="mt-5">Download Backup Data</h5>
                    <div class="d-flex justify-content-center mt-3">
                      <?php if(session('role') == "Dokter" || session('role') == "Developer"): ?>
                      <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#backupModal">
                        Back Up
                      </button>
                      <?php else: ?>
                      <h1 style="color: red;">Anda tidak memiliki akses !</h1>
                      <?php endif; ?>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </main>
      <!-- ! Footer -->
      <?php echo $__env->make('component.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
  </div>

  <!-- Modal -->
  <div class="modal fade" id="backupModal" tabindex="-1" aria-labelledby="backupModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="backupModalLabel">Backup Auth</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body">
          <form id="formBackUp" action="<?php echo e(route('BackUp')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <label class="form-label-wrapper">
              <p class="form-label">Email</p>
              <input class="form-input" type="email" name="u_email" placeholder="Masukan email anda" required>
            </label>
            <label class="form-label-wrapper">
              <p class="form-label">Password</p>
              <input class="form-input" type="password" name="u_password" placeholder="Masukan password anda" required>
            </label>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
          <button class="btn btn-primary" type="submit" form="formBackUp">Download</button>
        </div>
      </div>
    </div>
  </div>

  <!-- jQuery -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <!-- Bootstrap -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
  <!-- Chart library -->
  <script src="<?php echo e(url('design/plugins/chart.min.js')); ?>"></script>
  <!-- Icons library -->
  <script src="<?php echo e(url('design/plugins/feather.min.js')); ?>"></script>
  <!-- Custom scripts -->
  <script src="<?php echo e(url('design/js/script.js')); ?>"></script>
  <!-- Notiflix -->
  <script src="https://cdn.jsdelivr.net/npm/notiflix@3.0.1/dist/notiflix-aio-3.0.1.min.js"></script>

  <?php if(Session::has('notif')): ?>
  <?php if(Session::get('notif') == 'success'): ?>
  <script>
    Notiflix.Notify.success('Data berhasil dibackup', {
      useFontAwesome: true,
      fontSize: "15px",
      borderRadius: "10px",
    });
  </script>
  <?php elseif(Session::get('notif') == 'error'): ?>
  <script>
    Notiflix.Notify.failure('Anda tidak memiliki izin', {
      useFontAwesome: true,
      fontSize: "15px",
      borderRadius: "10px",
    });
  </script>
  <?php endif; ?>
  <?php endif; ?>
</body>

</html><?php /**PATH D:\website-dokter-budi-master\resources\views\system\backup.blade.php ENDPATH**/ ?>