<?php
	$seo=DB::table('seos')->first();
	$setting=DB::table('settings')->first();
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo e($seo->meta_title); ?> | Admin Dashboard</title>
         
     <link rel="icon" href="<?php echo e(asset($setting->favicon)); ?>">
     <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/fontawesome-free/css/all.min.css')); ?>">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bbootstrap 4 -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css')); ?>">
  <!-- iCheck -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/icheck-bootstrap/icheck-bootstrap.min.css')); ?>">
  <!-- JQVMap -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/jqvmap/jqvmap.min.css')); ?>">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/dist/css/adminlte.min.css')); ?>">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/overlayScrollbars/css/OverlayScrollbars.min.css')); ?>">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/daterangepicker/daterangepicker.css')); ?>">
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/datatables-bs4/css/dataTables.bootstrap4.css')); ?>">
  <!-- summernote -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/summernote/summernote-bs4.css')); ?>">
  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/toaster/toastr.css')); ?>">
   <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/bootstrap-sweetalert/dist/sweetalert.css')); ?>">
    <!-- summernote -->
  <link rel="stylesheet" href="<?php echo e(asset('public/template/plugins/summernote/summernote-bs4.css')); ?>">
   
</head>
<body >


  <?php if(auth()->guard()->guest()): ?>
  <?php else: ?>
  <div class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">
     <!-- Navbar -->
     <nav class="main-header navbar navbar-expand navbar-white navbar-light">
       <!-- Left navbar links -->
       <ul class="navbar-nav">
         <li class="nav-item">
           <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
         </li>
       
       </ul>

     

      <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">

      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-user"></i>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="<?php echo e(route('user.logout')); ?>" class="dropdown-item">
          	Logout
          </a>
        </div>
      </li>

    </ul>
  </nav>
  <!-- /.navbar -->

     <!-- Main Sidebar Container -->
     <aside class="main-sidebar sidebar-dark-primary elevation-4">
       <!-- Brand Logo -->
       <a href="https://www.bdcrimewatch.com/" class="brand-link">
         <img src="<?php echo e(asset('public/template/dist/img/dsc.png')); ?>" alt="" class="brand-image img-circle elevation-3"
              style="opacity: .8">
         <span class="brand-text font-weight-light">CrimeWatch</span>
       </a>

       <!-- Sidebar -->
       <div class="sidebar">
         <!-- Sidebar user panel (optional) -->
         <div class="user-panel mt-3 pb-3 mb-3 d-flex">
           <div class="image">
             <img src="<?php echo e(asset($setting->favicon)); ?>" class="img-circle elevation-2" alt="User Image">
           </div>
           <div class="info">
             <a href="#" class="d-block"><?php echo e(Auth::user()->name); ?></a>
           </div>
         </div>

         <!-- Sidebar Menu -->
         <nav class="mt-2">
           <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
             <!-- Add icons to the links using the .nav-icon class
                  with font-awesome or any other icon font library -->
             <li class="nav-item ">
               <a href="<?php echo e(route('home')); ?>" class="nav-link active">
                 <i class="nav-icon fas fa-tachometer-alt"></i>
                 <p>
                   Dashboard
                 
                 </p>
               </a>
             </li>
        

             <?php if(Auth::user()->category==1): ?>
             <li class="nav-item has-treeview">
               <a href="#" class="nav-link">
                 <i class="nav-icon fa fa-list-alt"></i>
                 <p>
                 Categories
                   <i class="fas fa-angle-left right"></i>
                 </p>
               </a>
               <ul class="nav nav-treeview">
                 <li class="nav-item">
                   <a href="<?php echo e(route('categories')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Category</p>
                   </a>
                 </li>
                 <li class="nav-item">
                   <a href="<?php echo e(route('subcategories')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Subcategory</p>
                   </a>
                 </li>
               </ul>
             </li>
             <?php endif; ?>
			 <?php if(Auth::user()->post==1): ?>
			 <li class="nav-item">
               <a href="<?php echo e(route('insert.post')); ?>" class="nav-link">
                 <i class="nav-icon fa fa-clipboard"></i>
                 <p class="text">Add News</p>
               </a>
             </li>
			 <?php endif; ?>
          <?php if(Auth::user()->allpost==1): ?>
			 <li class="nav-item">
               <a href="<?php echo e(route('all.post')); ?>" class="nav-link">
                 <i class="nav-icon fa fa-clipboard"></i>
                 <p class="text">View All News</p>
               </a>
             </li>
             <?php endif; ?>
             <?php if(Auth::user()->gallery ==1): ?>
               <li class="nav-item has-treeview">
               <a href="#" class="nav-link">
                 <i class="nav-icon far fa-image"></i>
                 <p>
                 Gallery
                   <i class="fas fa-angle-left right"></i>
                 </p>
               </a>
               <ul class="nav nav-treeview">
                 <li class="nav-item">
                   <a href="<?php echo e(route('photos.gallery')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Photo Gallery</p>
                   </a>
                 </li>
                 <li class="nav-item">
                   <a href="<?php echo e(route('video.gallery')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Video gallery</p>
                   </a>
                 </li>
               </ul>
             </li>
             <?php endif; ?>
			 

             <?php if(Auth::user()->ads==1): ?>
              <li class="nav-item has-treeview">
               <a href="#" class="nav-link">
                 <i class="nav-icon fa fa-plus-square"></i>
                 <p>
                 Staff
                   <i class="fas fa-angle-left right"></i>
                 </p>
               </a>
               <ul class="nav nav-treeview">
                 <li class="nav-item">
                   <a href="<?php echo e(route('horizontal.ads')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Staff List</p>
                   </a>
                 </li>
               </ul>
             </li>
             <?php endif; ?>
<?php if(Auth::user()->role == 1): ?>
<li class="nav-item has-treeview">
  <a href="#" class="nav-link">
    <i class="nav-icon fa fa-users"></i>
    <p>
      Applications
      <i class="fas fa-angle-left right"></i>
    </p>
  </a>
  <ul class="nav nav-treeview">
    <li class="nav-item">
      <a href="<?php echo e(url('/applications')); ?>" class="nav-link">
        <i class="far fa-circle nav-icon"></i>
        <p>Application List</p>
      </a>
    </li>
    <li class="nav-item">
      <a href="<?php echo e(url('/applications/apply')); ?>" class="nav-link">
        <i class="far fa-circle nav-icon"></i>
        <p>Apply New</p>
      </a>
    </li>
    <!--
    <li class="nav-item">
      <a href="<?php echo e(route('password.change')); ?>" class="nav-link">
        <i class="far fa-circle nav-icon"></i>
        <p>Change Password</p>
      </a>
    </li>
    -->
  </ul>
</li>
<?php endif; ?>
             <?php if(Auth::user()->role ==1): ?>
              <li class="nav-item has-treeview">
               <a href="#" class="nav-link">
                 <i class="nav-icon fa fa-users"></i>
                 <p>
                 Reporter Role
                   <i class="fas fa-angle-left right"></i>
                 </p>
               </a>
               <ul class="nav nav-treeview">
                 <li class="nav-item">
                   <a href="<?php echo e(route('insert.writer')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Add Reporter</p>
                   </a>
                 </li>
                 <li class="nav-item">
                   <a href="<?php echo e(route('all.writer')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>All Reporter</p>
                   </a>
                 </li>
				                  <li class="nav-item">
                   <a href="<?php echo e(route('password.change')); ?>" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Chnage Password</p>
                   </a>
                 </li>
               </ul>
             </li>
             <?php endif; ?>
			 <?php if(Auth::user()->setting==1): ?>
			   <li class="nav-item">
               <a href="<?php echo e(route('website.setting')); ?>" class="nav-link">
                 <i class="nav-icon fa fa-cog"></i>
                 <p class="text">Setting & Configuration</p>
               </a>
             </li>
			 			   <li class="nav-item">
               <a href="<?php echo e(route('livetv.setting')); ?>" class="nav-link">
                 <i class="nav-icon fa fa-desktop"></i>
                 <p class="text">Live TV Setup</p>
               </a>
             </li>
			 			   <li class="nav-item">
               <a href="<?php echo e(route('namaz.setting')); ?>" class="nav-link">
                 <i class="nav-icon fas fa-pray"></i>
                 <p class="text">Namaz Shedule</p>
               </a>
             </li>
			 			   <li class="nav-item">
               <a href="<?php echo e(route('notice.setting')); ?>" class="nav-link">
                 <i class="nav-icon fa fa-bell"></i>
                 <p class="text">Notice Setup</p>
               </a>
             </li>
			 			   <li class="nav-item">
               <a href="<?php echo e(route('social.setting')); ?>" class="nav-link">
                 <i class="nav-icon fab fa-facebook-f"></i>
                 <p class="text">Socail Account Setup</p>
               </a>
             </li>
			 			   <li class="nav-item">
               <a href="<?php echo e(route('seo.setting')); ?>" class="nav-link">
                 <i class="nav-icon fas fa-search"></i>
                 <p class="text">Adds & SEO Setting</p>
               </a>
             </li>
			 			 			   <li class="nav-item">
               <a href="<?php echo e(route('important.website')); ?>" class="nav-link">
                 <i class="nav-icon fas fa-th"></i>
                 <p class="text">Important Website Link</p>
               </a>
             </li>
			 <?php endif; ?>
             </li>
           </ul>
         </nav>
         <!-- /.sidebar-menu -->
       </div>
       <!-- /.sidebar -->
     </aside>
   </div>
 </div>

  <?php endif; ?>



  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <?php echo $__env->yieldContent('content'); ?>
  </div>


  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<footer class="main-footer">
 <p style="text-align: center;"><span>সকল কারিগরী সহযোগিতায় <a href="https://www.dhakasupplier2.com/" target="_blank"><span>dhakasupplier</span></a></span></p>
 </footer>

<!-- jQuery -->
<script src="<?php echo e(asset('public/template/plugins/jquery/jquery.min.js')); ?>"></script>
<!-- jQuery UI 1.11.4 -->
<script src="<?php echo e(asset('public/template/plugins/jquery-ui/jquery-ui.min.js')); ?>"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="<?php echo e(asset('public/template/plugins/bootstrap/js/bootstrap.bundle.min.js')); ?>"></script>

<script src="<?php echo e(asset('public/template/plugins/datatables/jquery.dataTables.js')); ?>"></script>
<script src="<?php echo e(asset('public/template/plugins/datatables-bs4/js/dataTables.bootstrap4.js')); ?>"></script>
<script>
  $(function () {
    $("#example1").DataTable();
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
    });
  });
</script>
<script  src="<?php echo e(asset('public/template/plugins/toaster/toastr.min.js')); ?>"></script>
<script  src="<?php echo e(asset('public/template/plugins/bootstrap-sweetalert/dist/sweetalert.min.js')); ?>"></script>

<!-- ChartJS -->
<script src="<?php echo e(asset('public/template/plugins/chart.js/Chart.min.js')); ?>"></script>
<!-- Sparkline -->
<script src="<?php echo e(asset('public/template/plugins/sparklines/sparkline.js')); ?>"></script>
<!-- JQVMap -->
<script src="<?php echo e(asset('public/template/plugins/jqvmap/jquery.vmap.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/template/plugins/jqvmap/maps/jquery.vmap.usa.js')); ?>"></script>
<!-- jQuery Knob Chart -->
<script src="<?php echo e(asset('public/template/plugins/jquery-knob/jquery.knob.min.js')); ?>"></script>
<!-- daterangepicker -->
<script src="<?php echo e(asset('public/template/plugins/moment/moment.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/template/plugins/daterangepicker/daterangepicker.js')); ?>"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="<?php echo e(asset('public/template/plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js')); ?>"></script>
<!-- Summernote -->
<script src="<?php echo e(asset('public/template/plugins/summernote/summernote-bs4.min.js')); ?>"></script>

<script>
  $(function () {
    // Summernote
    $('.textarea').summernote()
  })
</script>

<!-- overlayScrollbars -->
<script src="<?php echo e(asset('public/template/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js')); ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo e(asset('public/template/dist/js/adminlte.js')); ?>"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="<?php echo e(asset('public/template/dist/js/pages/dashboard.js')); ?>"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo e(asset('public/template/dist/js/demo.js')); ?>"></script>
 

 <script>
     <?php if(Session::has('messege')): ?>
          var type="<?php echo e(Session::get('alert-type','info')); ?>"
          switch(type){
              case 'info':
                   toastr.info("<?php echo e(Session::get('messege')); ?>");
                   break;
              case 'success':
                  toastr.success("<?php echo e(Session::get('messege')); ?>");
                  break;
              case 'warning':
                 toastr.warning("<?php echo e(Session::get('messege')); ?>");
                  break;
              case 'error':
                  toastr.error("<?php echo e(Session::get('messege')); ?>");
                  break;
          }
        <?php endif; ?>
  </script>

    <script>
            $(document).on("click", "#delete", function(e){
                e.preventDefault();
                 var link = $(this).attr("href");
                 swal({
                  title: "Are you sure?",
                  text: "You will not be able to recover this imaginary file!",
                  type: "warning",
                  showCancelButton: true,
                  confirmButtonClass: "btn-danger",
                  confirmButtonText: "Yes, delete it!",
                  cancelButtonText: "No, cancel!",
                },
                function(isConfirm) {
                  if (isConfirm) {
                    swal("Deleted!", "Your imaginary file has been deleted.", "success");
                    window.location.href = link;
                  } else {
                    swal("Cancelled", "Your imaginary file is safe :)", "error");
                  }
                });
               });
       </script>


</body>
</html>
<?php /**PATH /home/dhakasupplier/bdcrimewatch.com/resources/views/layouts/app.blade.php ENDPATH**/ ?>