<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Cuba admin is super flexible, powerful, clean &amp; modern responsive bootstrap 5 admin template with unlimited possibilities.">
    <meta name="keywords" content="admin template, Cuba admin template, dashboard template, flat admin template, responsive admin template, web app">
    <meta name="author" content="pixelstrap">
    <link rel="icon" href="/adminassets/images/favicon.png" type="image/x-icon">
    <link rel="shortcut icon" href="/adminassets/images/favicon.png" type="image/x-icon">
    <title>آنسه تیم</title>
    <!-- Google font-->

    <script src="https://cdn.ckeditor.com/ckeditor5/35.0.1/classic/ckeditor.js"></script>

    <link href="https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i&amp;display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900&amp;display=swap" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/adminassets/css/font-awesome.css">
    <!-- ico-font-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/icofont.css">
    <!-- Themify icon-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/themify.css">
    <!-- Flag icon-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/flag-icon.css">
    <!-- Feather icon-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/feather-icon.css">
    <!-- Plugins css start-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/scrollbar.css">
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/prism.css">
    <!-- Plugins css Ends-->
    <!-- Bootstrap css-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/bootstrap.css">
    <!-- App css-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/style.css">
    <link id="color" rel="stylesheet" href="/adminassets/css/color-1.css" media="screen">
    <!-- Responsive css-->
    <link rel="stylesheet" type="text/css" href="/adminassets/css/responsive.css">
    <link rel="stylesheet" type="text/css" href="/adminassets/css/vendors/select2.css">
</head>
<body class="rtl">
<!-- tap on top starts-->
<div class="tap-top"><i data-feather="chevrons-up"></i></div>
<!-- tap on tap ends-->
<!-- page-wrapper Start-->
<div class="page-wrapper compact-wrapper" id="pageWrapper">
    <!-- Page Header Start-->

    <%- include('../../partials/header') %>

    <!-- Page Sidebar Ends-->
    <div class="page-body">
        <div class="container-fluid">
            <div class="page-title">
                <div class="row">
                    <div class="col-6">
                        <h3>مدیریت تایید ادمین

                        </h3>
                    </div>
                    <div class="col-6">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="index.html"><i data-feather="home"></i></a></li>
                            <li class="breadcrumb-item">تایید ادمین</li>
                            <li class="breadcrumb-item active">  تایید ادمین</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- Container-fluid starts-->
        <!-- Container-fluid starts-->
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-12">
                    <div class="card">
                        <div class="card-header">
                            <h5>مشاهده لیست مقالات برای نمایش در سایت </h5>
                        </div>
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                <tr class="border-bottom-primary" style="text-align:center">
                                    <th scope="col"></th>
                                    <th scope="col"> عنوان مقاله</th>
                                    <th scope="col"> دسته بندی مقاله </th>
                                    <th scope="col">توضیحات کوتاه</th>
                                    <th scope="col">تایید جهت نمایش</th>
                                </tr>
                                </thead>
                                <tbody>

                                <% for (var i = 0; i < blogs.length; i++) { %>
                                    <tr class="border-bottom-info" style="text-align:center">
                                        <th scope="row"><%= i+1 %></th>
                                        <td><%= blogs[i].Title %></td>
                                        <td><%= blogs[i].BlogTypes[0].Name %></td>
                                        <td><%= blogs[i].SmallCaption.slice(0,25) %></td>

                                        <% if(blogs[i].Show == true) { %>
                                            <td><a href="/confirm/admin/show/blog/<%= blogs[i]._id %>/false" class="btn btn-square btn-success-gradien"><i class="fa-solid fa-check"></i></a></td>
                                        <% } else { %>
                                            <td><a href="/confirm/admin/show/blog/<%= blogs[i]._id %>/true" class="btn btn-square btn-warning-gradien"><i class="fa-solid fa-xmark"></i></a></td>
                                        <% } %>

                                    </tr>
                                <% } %>

                                </tbody>
                            </table>

                        </div>
                    </div>

                    <div class="card">
                        <div class="card-header">
                            <h5>مشاهده لیست خدمات  برای نمایش در سایت </h5>
                        </div>
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                <tr class="border-bottom-primary" style="text-align:center">
                                    <th scope="col"></th>
                                    <th scope="col"> عنوان خدمات</th>
                                    <th scope="col"> دسته بندی خدمات </th>
                                    <th scope="col">توضیحات کوتاه</th>
                                    <th scope="col">تایید جهت نمایش</th>
                                </tr>
                                </thead>
                                <tbody>

                                <% for (var i = 0; i < services.length; i++) { %>
                                    <tr class="border-bottom-info" style="text-align:center">
                                        <th scope="row"><%= i+1 %></th>
                                        <td><%= services[i].Title %></td>
                                        <td><%= services[i].ServiceTypes[0].Name %></td>
                                        <td><%= services[i].SmallCaption.slice(0,25) %></td>

                                        <% if(services[i].Show == true) { %>
                                            <td><a href="/confirm/admin/show/service/<%= services[i]._id %>/false" class="btn btn-square btn-success-gradien"><i class="fa-solid fa-check"></i></a></td>
                                        <% } else { %>
                                            <td><a href="/confirm/admin/show/service/<%= services[i]._id %>/true" class="btn btn-square btn-warning-gradien"><i class="fa-solid fa-xmark"></i></a></td>
                                        <% } %>

                                    </tr>
                                <% } %>

                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>

            </div>

        </div>
        <!-- Container-fluid Ends-->

        <!-- Container-fluid Ends-->
    </div>


    <%- include("../../partials/footer") %>
</div>
</div>
<!-- latest jquery-->
<script src="/adminassets/js/jquery-3.5.1.min.js"></script>
<!-- Bootstrap js-->
<script src="/adminassets/js/bootstrap/bootstrap.bundle.min.js"></script>
<!-- feather icon js-->
<script src="/adminassets/js/icons/feather-icon/feather.min.js"></script>
<script src="/adminassets/js/icons/feather-icon/feather-icon.js"></script>
<!-- scrollbar js-->
<script src="/adminassets/js/scrollbar/simplebar.js"></script>
<script src="/adminassets/js/scrollbar/custom.js"></script>
<!-- Sidebar jquery-->
<script src="/adminassets/js/config.js"></script>
<!-- Plugins JS start-->
<script src="/adminassets/js/sidebar-menu.js"></script>
<script src="/adminassets/js/prism/prism.min.js"></script>
<script src="/adminassets/js/clipboard/clipboard.min.js"></script>
<script src="/adminassets/js/custom-card/custom-card.js"></script>
<script src="/adminassets/js/tooltip-init.js"></script>
<!-- Plugins JS Ends-->
<!-- Theme js-->
<script src="/adminassets/js/script.js"></script>
<!-- login js-->
<!--error message for inputs-->
<script src="/adminassets/js/input-error.js"></script>
<script src="/adminassets/js/tiny/tinymce.min.js"></script>
<!-- Plugin used-->
<script src="/adminassets/js/select2/select2.full.min.js"></script>
<script src="/adminassets/js/select2/select2-custom.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js"></script>
<!-- script pop up -->



</body>
</html>
