<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
  <title>Ecommerce Dashboard &mdash; Stisla</title>
  <!-- General CSS Files -->
<link rel="stylesheet" href="{{asset('assets/modules/bootstrap/css/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{asset('assets/modules/fontawesome/css/all.min.css')}}">

<!-- CSS Libraries -->
<link rel="stylesheet" href="{{asset('assets/modules/jqvmap/dist/jqvmap.min.css')}}">
<link rel="stylesheet" href="{{asset('assets/modules/summernote/summernote-bs4.css')}}">
<link rel="stylesheet" href="{{asset('assets/modules/owlcarousel2/dist/assets/owl.carousel.min.css')}}">
<link rel="stylesheet" href="{{asset('assets/modules/owlcarousel2/dist/assets/owl.theme.default.min.css')}}">
<link rel="stylesheet" href="{{asset('assets/modules/select2/dist/css/select2.min.css') }}">
<!-- Template CSS -->
<script src="{{asset('assets/js/axios.min.js')}}"></script>
<link rel="stylesheet" href="{{asset('assets/css/style.css')}}">
<link rel="stylesheet" href="{{asset('assets/css/components.css')}}">
<link rel="stylesheet" href="{{asset('assets/snackbar/toastify.min.css') }}">
<script>
    var url = "{{ url('') }}";
</script>

</head>

<body>
  <div id="app">
    <div class="main-wrapper main-wrapper-1">
      <div class="navbar-bg"></div>
      <nav class="navbar navbar-expand-lg main-navbar">
        <form class="form-inline mr-auto">
          <ul class="navbar-nav mr-3">
            <li><a href="#" data-toggle="sidebar" class="nav-link nav-link-lg"><i class="fas fa-bars"></i></a></li>
            <li><a href="#" data-toggle="search" class="nav-link nav-link-lg d-sm-none"><i class="fas fa-search"></i></a></li>
          </ul>
        </form>
        <ul class="navbar-nav navbar-right">
          <li class="dropdown"><a href="#" data-toggle="dropdown" class="nav-link dropdown-toggle nav-link-lg nav-link-user">
            <img alt="image" src="{{ asset('assets/img/avatar/avatar-1.png') }}" class="rounded-circle mr-1">
            <div class="d-sm-none d-lg-inline-block">Hi, {{ Auth::guard('admin')->user() ? Auth::guard('admin')->user()->name : 'User'}}</div></a>
            <div class="dropdown-menu dropdown-menu-right">
              <div class="dropdown-title">Logged in {{ Carbon\Carbon::parse(Auth::guard('admin')->user()->last_login_time)->diffForHumans()}}</div>
              <a href="features-profile.html" class="dropdown-item has-icon">
                <i class="far fa-user"></i> Profile
              </a>
              <div class="dropdown-divider"></div>
              <a href="{{ url('/admin/logout') }}" class="dropdown-item has-icon text-danger">
                <i class="fas fa-sign-out-alt"></i> Logout
              </a>
            </div>
          </li>
        </ul>
      </nav>
      <div class="main-sidebar sidebar-style-2">
        <aside id="sidebar-wrapper">
          <div class="sidebar-brand">
            <a href="{{ url('/admin') }}"><img class="img-fluid" src="{{ asset('assets/img/logo.png') }}" /></a>
          </div>
          <div class="sidebar-brand sidebar-brand-sm">
            <a href="{{ url('/admin') }}"><img src="{{ asset('assets/img/shortlogo.png') }}" alt="img"></a>
          </div>
          <ul class="sidebar-menu">
            <li class="menu-header">Dashboard</li>
            <li class="dropdown {{ (request()->segment(2) == '') ? 'active' : '' }}">
              <a href="{{ url('/admin') }}" class="nav-link"><i class="fas fa-fire"></i><span>Dashboard</span></a>
            </li>
            <li class="menu-header">Products</li>
            <li class="dropdown {{ (request()->segment(2) == 'add_category') || (request()->segment(2) == 'category') || (request()->segment(2) == 'category_banner') ? 'active' : '' }}">
              <a href="#" class="nav-link has-dropdown data-toggle="dropdown"><i class="fas fa-th-list"></i> <span>Category</span></a>
              <ul class="dropdown-menu">
                <li class="{{ (request()->segment(2) == 'add_category') ? 'active' : '' }}"><a class="nav-link" href="{{ url('admin/add_category') }}">Add Category</a></li>
                <li class="{{ (request()->segment(2) == 'category') ? 'active' : '' }}"><a class="nav-link" href="{{ url('admin/category') }}">All Category</a></li>
                <li class="{{ (request()->segment(2) == 'category_banner') ? 'active' : '' }}"><a class="nav-link" href="{{ url('admin/category_banner') }}">Category Banner</a></li>
              </ul>
            </li>
            <li class="dropdown {{ (request()->segment(2) == 'edit_variant') || (request()->segment(2) == 'variant') ? 'active' : '' }}" >
              <a href="#" class="nav-link has-dropdown" data-toggle="dropdown"><i class="fas fa-th-list"></i> <span>Variant</span></a>
              <ul class="dropdown-menu">
                <li class="{{ (request()->segment(2) == 'edit_variant') ? 'active' : '' }}"><a class="nav-link" href="{{ url('admin/add_variant') }}">Add Variant</a></li>
                <li class="{{ (request()->segment(2) == 'variant') ? 'active' : '' }}"><a class="nav-link" href="{{ url('admin/variant') }}">Variant</a></li>
              </ul>
            </li>
            <li class="dropdown {{ (request()->segment(2) == 'products') || (request()->segment(2) == 'add_variant') ? 'active' : '' }}">
              <a href="#" class="nav-link has-dropdown"><i class="fas fa-th"></i> <span>Products</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{ url('admin/add_product') }}">Add Product</a></li>
                <li><a class="nav-link" href="{{ url('admin/products') }}">Products</a></li>
              </ul>
            </li>
            <li class="menu-header">Settings</li>
            <li class="dropdown">
              <a href="#" class="nav-link has-dropdown" data-toggle="dropdown"><i class="fas fa-th-list"></i> <span>Sub Admin</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{ url('admin/subadmin') }}">Add Sub Admin</a></li>
                <li><a class="nav-link" href="{{ url('admin/list-admin') }}">Manage Sub Admin</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="nav-link has-dropdown" data-toggle="dropdown"><i class="fas fa-th-list"></i> <span>Site Pages</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{ url('admin/permission') }}">Manage Pages</a></li>
              </ul>
            </li>
            <li class="menu-header">Vendor</li>
            <li class="dropdown">
              <a href="#" class="nav-link has-dropdown" data-toggle="dropdown"><i class="fas fa-th-list"></i> <span>Vendors</span></a>
              <ul class="dropdown-menu">
                <li><a class="nav-link" href="{{ url('admin/vendors') }}">Add Vendors</a></li>
                <li><a class="nav-link" href="{{ url('admin/list-vendors') }}">Manage Vendors</a></li>
              </ul>
            </li>
          </ul>
        </aside>
      </div>
