@page "/home"
@using TIAMSharedUI.Shared
@using TIAMWebApp.Shared.Application.Models;
@using TIAMWebApp.Shared.Application.Interfaces;
@layout AdminLayout
@inject IPopulationStructureDataProvider DataProvider
@inject ISupplierService SupplierService
@inject IUserDataService UserDataService
Transfer
Dashboard
Have a nice day!
@{
if(userType == 4)
{
New
12
Scheduled
182
Finished
15665
Guides
32
Hotels
82
Restaurants
15
Transfer company
1
Income
$32 456
Comission to be paid
$5 345
Service fees to be paid
$23 871
Revenue
$3 240
Top affiliate
Hotel Bambara
Comission Earned
$1 315
Top referred item
Buda castle tour
Level 1 affiliates
132
@context.Point.Argument
Age Group: @context.Point.SeriesName
Population: @($"{context.Point.Value:N0}")
}
else if(userType == 1)
{
Your QR code
Use this in printed material, to gain referrals
Some conclusion
Some info
Budapest, Dózsa György út 35, 1146
-
PLACED
- WAITING FOR PICK UP
-
FINISHED
Some conclusion
}
}
Some info
Budapest, Dózsa György út 35, 1146
-
PLACED
- WAITING FOR PICK UP
-
FINISHED
Some conclusion
Some info
Budapest, Dózsa György út 35, 1146
-
PLACED
- WAITING FOR PICK UP
-
FINISHED
Some conclusion
Some info
Budapest, Dózsa György út 35, 1146
-
PLACED
- WAITING FOR PICK UP
-
FINISHED
Some conclusion
@code {
object? OrderData { get; set; }
object? AffiliateData { get; set; }
IEnumerable? ChartsData;
object? Data { get; set; }
bool isUserLoggedIn;
int userType = 0;
protected override async Task OnInitializedAsync()
{
base.OnInitialized();
OrderData = new object[]
{
new {
Date = DateTime.Now.AddDays(3),
Income = "$5",
TransactionId = "POX987532582",
Status = "Finished"
},
new {
Date = DateTime.Today.AddDays(-2),
Income = "$5",
TransactionId = "POX645646382",
Status = "Finished"
},
new {
Date = DateTime.Today.AddDays(-6),
Income = "$8",
TransactionId = "POX645766311",
Status = "Finished"
},
};
AffiliateData = new object[]
{
new {
AffiliateId = 1,
IncomeThisMonth = "$5",
IncomeAlltime = "9425",
CompanyName = "Upgen Ltd.",
Status = "Active"
},
new {
AffiliateId = 2,
IncomeThisMonth = "$538",
IncomeAlltime = "13425",
CompanyName = "Kovacs hotel Ltd.",
Status = "Active"
},
new {
AffiliateId = 3,
IncomeThisMonth = "$0",
IncomeAlltime = "134200",
CompanyName = "Innosaurus Ltd.",
Status = "Passive"
},
};
ChartsData = await DataProvider.QueryData();
var suppliers = await SupplierService.GetSuppliersAsync();
Data = suppliers.Select(s =>
{
return new
{
CompanyName = s.CompanyName,
ContactName = s.ContactName,
ContactTitle = s.ContactTitle,
Country = s.Country,
City = s.City,
Address = s.Address,
Phone = s.Phone
};
});
}
[Parameter] public bool ShowSeriesPointMarkers { get; set; }
[Parameter] public bool ShowSeriesLabels { get; set; }
}