
{{--{{dd($Admin->task)}}--}}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Borje Web</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="" name="keywords">
    <meta content="" name="description">

    <!-- Favicon -->
    <link href="img/favicon.ico" rel="icon">

    <!-- Google Web Fonts -->
    <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=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap" rel="stylesheet">

    <!-- Icon Font Stylesheet -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">

    <!-- Libraries Stylesheet -->
    <link href="https://admin.borjeweb.com/adminpanel/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="https://admin.borjeweb.com/adminpanel/lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />

    <!-- Customized Bootstrap Stylesheet -->
    <link href="https://admin.borjeweb.com/adminpanel/css/bootstrap.min.css" rel="stylesheet">

    <!-- Template Stylesheet -->
    <link href="https://admin.borjeweb.com/adminpanel/css/style.css" rel="stylesheet">
</head>

<body>
<div class="container-fluid position-relative d-flex p-0">

    <!-- Sidebar Start -->
    <div class="sidebar pe-4 pb-3">
        <nav class="navbar bg-secondary navbar-dark">
            <a href="index.html" class="navbar-brand mx-4 mb-3">
                <h3 class="text-primary"><i class="fa fa-user-edit me-2"></i>Borje Web</h3>
            </a>
            <div class="d-flex align-items-center ms-4 mb-4">
                <div class="position-relative">
                    <img class="rounded-circle" src="https://admin.borjeweb.com/adminpanel/admins/img/{{$Admin->name}}.jpg" onerror="this.src='https://admin.borjeweb.com/adminpanel/admins/mobin.png'" alt="" style="width: 40px; height: 40px;">
                    <div class="bg-success rounded-circle border border-2 border-white position-absolute end-0 bottom-0 p-1"></div>
                </div>
                <div class="ms-3">
                    <h6 class="mb-0">{{$Admin->name}}</h6>
                    <span>{{$Admin->premises}}</span>
                </div>
            </div>
            <div class="navbar-nav w-100">
                <form action="" method="post" id="sidebar">@csrf
{{--                    <input type="hidden" name="adminName" value="{{$Admin->name}}">--}}
{{--                    <a class="nav-item nav-link active"><i class="fa fa-tachometer-alt me-2"></i>Dashboard</a>--}}
                    @if($Admin->premises == 0)
                    <a class="nav-item nav-link" onmousedown="document.getElementById('sidebar').action = 'addtask'" onmouseup="document.getElementById('sidebar').submit()"><i class="fa fa-laptop me-2"></i>
                        tasks</a>
                    <a class="nav-item nav-link" onmousedown="document.getElementById('sidebar').action = 'addproject'" onmouseup="document.getElementById('sidebar').submit()"><i class="fa fa-file-alt me-2"></i>
                        projects</a>
                    <a class="nav-item nav-link" onmousedown="document.getElementById('sidebar').action = 'addadmins'" onmouseup="document.getElementById('sidebar').submit()"><i class="fa fa-keyboard me-2"></i>
                        admins</a>
{{--                    <a class="nav-item nav-link" onmousedown="document.getElementById('sidebar').action = 'addusers'" onmouseup="document.getElementById('sidebar').submit()"><i class="fa fa-chart-bar me-2"></i>--}}
{{--                        users</a>--}}
                    @endif

{{--                    <div class="nav-item dropdown">
                        <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"><i class="far fa-file-alt me-2"></i>Pages</a>
                        <div class="dropdown-menu bg-transparent border-0">
                            <a href="signin.html" class="dropdown-item">Sign In</a>
                            <a href="signup.html" class="dropdown-item">Sign Up</a>
                            <a href="404.html" class="dropdown-item">404 Error</a>
                            <a href="blank.html" class="dropdown-item">Blank Page</a>
                        </div>
                    </div>--}}
                </form>

            </div>
        </nav>
    </div>
    <!-- Sidebar End -->


    <!-- Content Start -->
    <div class="content">
        <!-- Navbar Start -->
        <nav class="navbar navbar-expand bg-secondary navbar-dark sticky-top px-4 py-0">
            <a href="index.html" class="navbar-brand d-flex d-lg-none me-4">
                <h2 class="text-primary mb-0"><i class="fa fa-user-edit"></i></h2>
            </a>
            <a href="#" class="sidebar-toggler flex-shrink-0">
                <i class="fa fa-bars"></i>
            </a>
            <form class="d-none d-md-flex ms-4">
                <input class="form-control bg-dark border-0" type="search" placeholder="Search">
            </form>
            <div class="navbar-nav align-items-center ms-auto">
                <div class="nav-item dropdown">
                    <a class="nav-link" href="https://admin.borjeweb.com" target="_blank">
                        <i class="fa fa-table me-lg-2"></i>
                        <span class="d-none d-lg-inline-flex">calendar</span>
                    </a>
                </div>
                <div class="nav-item dropdown">
                    <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">
                        <i class="fa fa-bell me-lg-2"></i>
                        <span class="d-none d-lg-inline-flex">Notificatin</span>
                    </a>
                    <div class="dropdown-menu dropdown-menu-end bg-secondary border-0 rounded-0 rounded-bottom m-0">
                        <a href="#" class="dropdown-item">
                            <h6 class="fw-normal mb-0">Profile updated</h6>
                            <small>15 minutes ago</small>
                        </a>
                        <hr class="dropdown-divider">
                        <a href="#" class="dropdown-item">
                            <h6 class="fw-normal mb-0">New user added</h6>
                            <small>15 minutes ago</small>
                        </a>
                        <hr class="dropdown-divider">
                        <a href="#" class="dropdown-item">
                            <h6 class="fw-normal mb-0">Password changed</h6>
                            <small>15 minutes ago</small>
                        </a>
                        <hr class="dropdown-divider">
                        <a href="#" class="dropdown-item text-center">See all notifications</a>
                    </div>
                </div>
                <div class="nav-item dropdown">
                    <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">
                        <img class="rounded-circle me-lg-2" src="https://admin.borjeweb.com/adminpanel/admins/img/{{$Admin->name}}.jpg" alt="" onerror="this.src='https://admin.borjeweb.com/adminpanel/admins/mobin.png'" style="width: 40px; height: 40px;">
                        <span class="d-none d-lg-inline-flex">{{$Admin->name}}</span>
                    </a>
                    <div class="dropdown-menu dropdown-menu-end bg-secondary border-0 rounded-0 rounded-bottom m-0">
                        <a href="#" class="dropdown-item">My Profile</a>
                        <a href="#" class="dropdown-item">Settings</a>
                        <a href="#" class="dropdown-item">Log Out</a>
                    </div>
                </div>
            </div>
        </nav>
        <!-- Navbar End -->


        <!-- Sale & Revenue Start -->
        <div class="container-fluid pt-4 px-4">
            <div class="row g-4">
                <form method="post" id="taskslinks">@csrf
                    <div class="col-sm-6 col-xl-3">
                    @foreach($Admin->task as $task)

                            <a onmousedown="document.getElementById('taskslinks').action = 'readtask/{{$task->id}}'" onmouseup="document.getElementById('taskslinks').submit();">
                                <div class="bg-secondary rounded d-flex align-items-center justify-content-between p-4">

                                    <div class="ms-3">
                                        <p class="mb-2" style="font-size: 30px;font-weight: 700;color: red;">{{substr($task->title,0,15).'...'}}</p>
                                        <h6 class="mb-0">{{substr($task->task,0,20).'...'}}</h6>
                                    </div>
                                </div>
                            </a>



                    @endforeach
            </div>
                </form>


            </div>
        </div>
        <!-- Sale & Revenue End -->


    </div>
    <!-- Content End -->


    <!-- Back to Top -->
    <a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
</div>

<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/chart/chart.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/easing/easing.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/waypoints/waypoints.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/owlcarousel/owl.carousel.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/tempusdominus/js/moment.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/tempusdominus/js/moment-timezone.min.js"></script>
<script src="https://admin.borjeweb.com/adminpanel/lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>

<!-- Template Javascript -->
<script src="https://admin.borjeweb.com/adminpanel/js/main.js"></script>
</body>

</html>