@using boilerplate.Models
@{
    ViewBag.Title = ViewBag.PageTitle;
    Layout = "~/Views/_PanelSideBar.cshtml";
    var User = Session["User"] as User;
    if (User == null) { return; }
    bool HasAccess(string Access) => new Functions().HasAccess(User.User_Access, Access);
}

<h2>@ViewBag.PageTitle</h2>


@if (HasAccess("ManageDashboard"))
{
    @section Heads {
        <link href="~/Content/Panel/plugins/custom/fullcalendar/fullcalendar.bundle.rtl.css?v=7.0.6" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    }
    <style>
        .text-gray-75 {
            color: #3F4254;
        }
    </style><div class="row">
        <div class="col-sm-12 form-group">
            <div class="card card-custom">
                <div class="card-body">
                    <div class="row">
                        <div class="col-lg-4 form-group">
                            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0">
                                <div class="card-body">
                                    <div class="d-flex align-items-center p-5">
                                        <div class="mr-6">
                                            <i class="fa fa-network-wired text-primary icon-3x"></i>
                                        </div>
                                        <div class="d-flex flex-column">
                                            <a href="~/panel/Groups" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">@ViewBag.Groups</a>
                                            <div class="text-gray-75">مجموعه ها</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 form-group">
                            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0">
                                <div class="card-body">
                                    <div class="d-flex align-items-center p-5">
                                        <div class="mr-6">
                                            <i class="fa fa-people-group text-primary icon-3x"></i>
                                        </div>
                                        <div class="d-flex flex-column">
                                            <a href="~/panel/Units" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">@ViewBag.Units</a>
                                            <div class="text-gray-75">واحد ها</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 form-group">
                            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0">
                                <div class="card-body">
                                    <div class="d-flex align-items-center p-5">
                                        <div class="mr-6">
                                            <i class="fa fa-address-card text-primary icon-3x"></i>
                                        </div>
                                        <div class="d-flex flex-column">
                                            <a href="~/panel/HrList" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">@ViewBag.Hr</a>
                                            <div class="text-gray-75">منابع انسانی</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        @*<div class="col-lg-6 form-group">
                            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0" style="height:144px;">
                                <div class="card-body">
                                    <div class="d-flex align-items-center p-5">
                                        <div class="mr-6">
                                            <i class="fa fa-comments     text-primary icon-3x"></i>
                                        </div>
                                        <div class="d-flex flex-column">
                                            <a href="" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">
                                                تالار گفتگو
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>*@
                        @*<div class="col-lg-4 form-group">
            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0">
                <div class="card-body">
                    <div class="d-flex align-items-center p-5">
                        <div class="mr-6">
                            <i class="fa fa-meet text-primary icon-3x"></i>
                        </div>
                        <div class="d-flex flex-column">
                            <a href="~/panel/Meetings/0" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">
                                جلسات
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>*@
                        <div class="col-lg-6 form-group">
                            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0">
                                <div class="card-body">
                                    <div class="d-flex align-items-center p-5">
                                        <div class="mr-6">
                                            <i class="flaticon2-settings text-primary icon-3x"></i>
                                        </div>
                                        <div class="d-flex flex-column">
                                            <a href="~/panel/setting" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">
                                                تنظیمات
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6 form-group">
                            <div class="card card-custom wave wave-animate-slow wave-primary mb-8 mb-lg-0">
                                <div class="card-body" style="height:143px;">
                                    <div class="d-flex align-items-center p-5">
                                        <div class="mr-6">
                                            <i class="fa fa-newspaper text-primary icon-3x"></i>
                                        </div>
                                        <div class="d-flex flex-column">
                                            <a href="~/panel/NewsList" class="text-gray text-hover-primary font-weight-bold font-size-h4 mb-3">مدیریت اخبار</a>
                                            
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


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

    </div>
}
@section Script{

}
