<div class="header-image">
	<div class="header-text-container">
		<h3>{{ 'ABOUT.WELCOME' | translate }}</h3>
		<h4>{{ 'ABOUT.WELCOME-MESSAGE' | translate }}</h4>
	</div>
</div>
<div class="main-content dashboard-main-container" [class.non-auth-main-container]="!this.isAuthenticated()">
	<div *ngIf="this.isAuthenticated()" class="container-fluid">
		<div class="row" *ngIf="this.isAuthenticated()">
			<div class="col-sm-6 col-md-6 col-lg-6">
				<app-wizard title="{{'QUICKWIZARD.CREATE-ADD.CREATE.TITLE' | translate}}" subtitle="{{'QUICKWIZARD.CREATE-ADD.CREATE.SUBTITLE' | translate}}" routerLink="/quick-wizard" icon="play_circle_outline">
				</app-wizard>
			</div>
			<div class="col-sm-6 col-md-6 col-lg-6">
				<app-wizard title="{{'QUICKWIZARD.CREATE-ADD.ADD.TITLE' | translate}}" subtitle="{{'QUICKWIZARD.CREATE-ADD.ADD.SUBTITLE' | translate}}" routerLink="/datasetcreatewizard" icon="play_circle_outline"></app-wizard>
			</div>
		</div>
		<div class="row">
			<div class="col-md-9">
				<div class="row">
					<div class="col-lg-3 col-md-6 col-sm-6">
						<app-info-counter [title]="'DASHBOARD.MY-DMPS'" [subtitle]="dashboardStatisticsData?.totalDataManagementPlanCount" routerLink='/plans' buttonRedirectLink="/plans/new" icon="view_agenda"></app-info-counter>
					</div>
					<div class="col-lg-3 col-md-6 col-sm-6">
						<app-info-counter [title]="'DASHBOARD.MY-DATASETS'" [subtitle]="dashboardStatisticsData?.totalDataSetCount" routerLink='/datasets' buttonRedirectLink="/datasets/new" icon="library_books"></app-info-counter>
					</div>
					<div class="col-lg-3 col-md-6 col-sm-6">
						<!-- <app-info-counter [title]="'DASHBOARD.MY-GRANTS'" [subtitle]="dashboardStatisticsData?.totalGrantCount" routerLink='/grants' buttonRedirectLink="/grants/new" icon="work_outline"></app-info-counter> -->
						<app-info-counter [title]="'DASHBOARD.MY-GRANTS'" [subtitle]="dashboardStatisticsData?.totalGrantCount" icon="work_outline"></app-info-counter>
					</div>
					<div class="col-lg-3 col-md-6 col-sm-6">
						<app-info-counter [title]="'DASHBOARD.ORGANIZATIONS'" [subtitle]="dashboardStatisticsData?.totalOrganisationCount" icon="scatter_plot">
						</app-info-counter>
					</div>
				</div>
				<div class="row">
					<div class="col-lg-12 col-md-12">
						<app-recent-edited-activity></app-recent-edited-activity>
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<app-drafts></app-drafts>
			</div>
		</div>
	</div>
	<div *ngIf="!this.isAuthenticated()" class="container-fluid">
		<div class="row non-auth-stats">
			<div class="col-lg-3 col-md-6 col-sm-6">
				<app-info-counter [title]="'DASHBOARD.DMPS'" [subtitle]="dashboardStatisticsData?.totalDataManagementPlanCount" routerLink='/explore-plans' buttonRedirectLink="/plans/new" icon="view_agenda"></app-info-counter>
			</div>
			<div class="col-lg-3 col-md-6 col-sm-6">
				<app-info-counter [title]="'DASHBOARD.DATASETS'" [subtitle]="dashboardStatisticsData?.totalDataSetCount" routerLink='/explore' buttonRedirectLink="/datasets/new" icon="library_books"></app-info-counter>
			</div>
			<div class="col-lg-3 col-md-6 col-sm-6">
				<!-- <app-info-counter [title]="'DASHBOARD.GRANTS'" [subtitle]="dashboardStatisticsData?.totalGrantCount" buttonRedirectLink="/grants/new" icon="work_outline"></app-info-counter> -->
				<app-info-counter [title]="'DASHBOARD.GRANTS'" [subtitle]="dashboardStatisticsData?.totalGrantCount" icon="work_outline"></app-info-counter>
			</div>
			<div class="col-lg-3 col-md-6 col-sm-6">
				<app-info-counter title="Related Organizations" [subtitle]="dashboardStatisticsData?.totalOrganisationCount" icon="scatter_plot"></app-info-counter>
			</div>
		</div>
		<div class="d-flex flex-column align-items-center non-auth-title-container">
			<h4>{{'DASHBOARD.TITLE' | translate}}</h4>
			<p>{{'DASHBOARD.INFO-TEXT' | translate}}</p>
		</div>
		<div class="row">
			<div class="col-lg-6 mt-4">
				<div class="title">
					<h4> {{'DASHBOARD.DATA-MANAGEMENT-PLANS' | translate}} </h4>
					<div class="info">
						<p class="subtitle">{{ dashboardStatisticsData?.totalDataManagementPlanCount }} {{'HOME.DMPS' | translate}}</p>
						<a class="view-all" [routerLink]="['/explore-plans']">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</a>
					</div>
				</div>
				<mat-divider></mat-divider>
				<div *ngFor="let dmp of dmpListingItems">
					<app-dmp-info-counter [dmp]="dmp" (onClick)="dmpClicked($event)"></app-dmp-info-counter>
				</div>
			</div>
			<div class="col-lg-6 mt-4">
				<div class="row">
					<div class="col-12 title">
						<h4> DATASETS </h4>
						<div class="info">
							<p class="subtitle">{{ dashboardStatisticsData?.totalDataSetCount }} {{'HOME.DATASETS' | translate}}</p>
							<a class="view-all" [routerLink]="['explore']">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</a>
						</div>
					</div>
					<mat-divider class="col-12"></mat-divider>
					<div class="col-12">
						<div class="row">
							<div *ngFor="let dataset of datasetListingItems" class="col-md-6">
								<app-dataset-info-counter [dataset]="dataset" (onClick)="datasetClicked($event)">
								</app-dataset-info-counter>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
