@using Grand.Infrastructure;
@inject Grand.Domain.Localization.LanguageSettings languageSettings
@inject IWorkContext workContext
<script>
    const wwwrootpath = '@(Common.WwwRoot)';
</script>
@{
    var supportRtl = workContext.WorkingLanguage.Rtl &&
         !languageSettings.IgnoreRtlPropertyForAdminArea;
    var kendoVersion = "2021.3.914";

    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/bootstrap/css/daterangepicker.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/build/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/simple-line-icons/simple-line-icons.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/magnific-popup/magnific-popup.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/summernote/summernote.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/jquery-ui-themes/smoothness/jquery-ui-1.10.3.custom.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/elfinder/css/elfinder.full.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/elfinder/css/theme.css" />

    <link rel="stylesheet" type="text/css" href="@string.Format(Common.WwwRoot+"/administration/kendo/styles/{0}/kendo.material.mobile.min.css", kendoVersion)" />
    <link rel="stylesheet" type="text/css" href="@string.Format(Common.WwwRoot+"/administration/kendo/styles/{0}/kendo.material.min.css", kendoVersion)" />
    <link rel="stylesheet" type="text/css" href="@string.Format(Common.WwwRoot+"/administration/kendo/styles/{0}/kendo.common-material.min.css", kendoVersion)" />


    //CSS
    if (supportRtl)
    {
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/bootstrap/css/bootstrap-rtl.min.css" />
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/build/css/custom-rtl.css" />
    <link rel="stylesheet" type="text/css" href="@string.Format(Common.WwwRoot+"/administration/kendo/styles/{0}/kendo.rtl.min.css", kendoVersion)" />
    }
    else
    {
    <link rel="stylesheet" type="text/css" href="@(Common.WwwRoot)/administration/build/css/custom.css" />
    }

    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/build/js/jquery.min.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/jquery-ui/jquery-ui.min.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/build/js/moment.min.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/bootstrap/js/daterangepicker.min.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/typeahead.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/admin.search.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/jquery.validate.min.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/jquery.validate.unobtrusive.min.js"></script>
    <script asp-location="Head" asp-src="@(Common.WwwRoot)/administration/admin.common.js"></script>
    <script asp-location="Head" asp-src="@string.Format(Common.WwwRoot+"/administration/kendo/scripts/{0}/kendo.ui.core.min.js", kendoVersion)"></script>
    <script asp-location="Head" asp-src="@string.Format(Common.WwwRoot+"/administration/kendo/scripts/{0}/kendo.grid.js", kendoVersion)"></script>
    <script asp-location="Head" asp-src="@string.Format(Common.WwwRoot+"/administration/kendo/scripts/{0}/cultures/kendo.culture.{1}.min.js", kendoVersion, "en-US" )"></script>


    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/bootstrap/js/popper.min.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/bootstrap/js/bootstrap.min.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/build/js/smartresize.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/build/js/custom.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/summernote/summernote.min.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/elfinder/js/elfinder.min.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/magnific-popup/jquery.magnific-popup.min.js"></script>
    <script asp-location="Footer" asp-src="@(Common.WwwRoot)/administration/jquery.tmpl.min.js"></script>
}