
@using BlazorAnimation
@using TIAMSharedUI.Shared
@using TIAMWebApp.Shared.Application.Models;
@using TIAMWebApp.Shared.Application.Interfaces;



<div class="row py-3">
    <div class=" col-12 col-xl-3 col-lg-6">
        <Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
            
            <div class="card mycard card-admin" style="border-radius: 16px;">
                <div class="card-header py-2 px-4">
                    <div class="d-flex justify-content-between align-items-center">
                        <div>
                            <span class="fw-bold text-body">Transfers</span>
                            <p class="text-muted mb-0">Summary</p>
                        </div>
                        <div>
                            <h6 class="mb-0"> <a href="#">All details</a> </h6>
                        </div>
                    </div>
                </div>
                <div class="card-body card-admin-body py-2 px-4">

                    <h5>New</h5>
                    <p>12</p>
                    <h5>Scheduled</h5>
                    <p>182</p>
                    <h5>Finished</h5>
                    <p>15665</p>

                </div>



                <div class="card-footer py-2 px-4">
                    <div class="d-flex justify-content-between">

                        <a href="#!">Manage transgfers</a>
                        <div class="border-start h-100"></div>


                    </div>
                </div>
            </div>
        </Animation>
       
    </div>
    <div class=" col-12 col-xl-3 col-lg-6">
        <Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
        <div class="card mycard card-admin" style="border-radius: 16px;">
            <div class="card-header py-2 px-4">
                <div class="d-flex justify-content-between align-items-center">
                    <div>
                        <span class="fw-bold text-body">Service providers</span>
                        <p class="text-muted mb-0">Summary</p>
                    </div>
                    <div>
                        <h6 class="mb-0"> <a href="#">All details</a> </h6>
                    </div>
                </div>
            </div>
            <div class="card-body card-admin-body py-2 px-4">

                <h5>Guides</h5>
                <p>32</p>
                <h5>Hotels</h5>
                <p>82</p>
                <h5>Restaurants</h5>
                <p>15</p>
                <h5>Transfer company</h5>
                <p>1</p>

            </div>
            <div class="card-footer py-2 px-4">
                <div class="d-flex justify-content-between">

                    <a href="#!">Manage service providers</a>
                    <div class="border-start h-100"></div>


                </div>
            </div>
        </div>
        </Animation>
    </div>
    <div class=" col-12 col-xl-3 col-lg-6">
        <Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
        <div class="card mycard card-admin" style="border-radius: 16px;">
            <div class="card-header py-2 px-4">
                <div class="d-flex justify-content-between align-items-center">
                    <div>
                        <span class="fw-bold text-body">Finances</span>
                        <p class="text-muted mb-0">Summary</p>
                    </div>
                    <div>
                        <h6 class="mb-0"> <a href="#">All details</a> </h6>
                    </div>
                </div>
            </div>
            <div class="card-body card-admin-body py-2 px-4">

                <h5>Income</h5>
                <p>$32 456</p>
                <h5>Comission to be paid</h5>
                <p>$5 345</p>
                <h5>Service fees to be paid</h5>
                <p>$23 871</p>
                <h5>Revenue</h5>
                <p>$3 240</p>

            </div>
            <div class="card-footer py-2 px-4">
                <div class="d-flex justify-content-between">

                    <a href="#!">Manage service providers</a>
                    <div class="border-start h-100"></div>


                </div>
            </div>
        </div>
        </Animation>
    </div>
    <div class=" col-12 col-xl-3 col-lg-6">
        <Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
        <div class="card mycard card-admin" style="border-radius: 16px;">
            <div class="card-header py-2 px-4">
                <div class="d-flex justify-content-between align-items-center">
                    <div>
                        <span class="fw-bold text-body">Affiliates</span>
                        <p class="text-muted mb-0">Summary</p>
                    </div>
                    <div>
                        <h6 class="mb-0"> <a href="#">All details</a> </h6>
                    </div>
                </div>
            </div>
            <div class="card-body card-admin-body py-2 px-4">

                <h5>Top affiliate</h5>
                <p>Hotel Bambara</p>
                <h5>Comission Earned</h5>
                <p>$1 315</p>
                <hr />
                <h5>Top referred item</h5>
                <p>Buda castle tour</p>
                <hr />
                <h5>Level 1 affiliates</h5>
                <p>132</p>

            </div>
            <div class="card-footer py-2 px-4">
                <div class="d-flex justify-content-between">

                    <a href="#!">Manage affiliates</a>
                    <div class="border-start h-100"></div>


                </div>
            </div>
        </div>
        </Animation>
    </div>
    <div class="col-12 col-xl-6">
        <Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
        <div class="card mycard card-admin" style="border-radius: 16px;">
            <div class="card-header py-2 px-4">
                <div class="d-flex justify-content-between align-items-center">
                    <div>
                        <span class="fw-bold text-body">Hotel details</span>

                    </div>
                    <div>
                        <h6 class="mb-0"> <a href="#">All settings</a> </h6>
                    </div>
                </div>
            </div>
            <div class="card-body card-admin-body py-2 px-4">
                <div class="d-flex flex-row mb-4 pb-2">

                    <DxGrid Data="@AffiliateData">
                        <Columns>
                            <DxGridDataColumn FieldName="AffiliateId" Width="5%" />
                            <DxGridDataColumn FieldName="IncomeThisMonth" Width="15%" />
                            <DxGridDataColumn FieldName="IncomeAlltime" Width="15%" />
                            <DxGridDataColumn FieldName="CompanyName" />
                            <DxGridDataColumn FieldName="Status" Width="10%" />
                        </Columns>
                    </DxGrid>



                </div>
            </div>
            <div class="card-footer py-2 px-4">
                <div class="d-flex justify-content-between">

                    <a href="#!">Modify</a>
                    <div class="border-start h-100"></div>


                </div>
            </div>
        </div>
        </Animation>
    </div>
    <div class="col-12 col-xl-6">
        <Animation Effect="@Effect.FadeInUp" Speed="@Speed.Fast" Delay="@TimeSpan.FromMilliseconds(250)">
        <div class="card mycard card-admin" style="border-radius: 16px;">
            <div class="card-header py-2 px-4">
                <div class="d-flex justify-content-between align-items-center">
                    <div>
                        <span class="fw-bold text-body">Population Data</span>
                        <p class="text-muted mb-0">12,March 2020 </p>
                    </div>
                    <div>
                        <h6 class="mb-0"> <a href="#">View source</a> </h6>
                    </div>
                </div>
            </div>
            <div class="card-body py-2 px-4">
                <div class="d-flex flex-row mb-4 pb-2">
                    <DxChart T="PopulationAgeStructureItem"
                             Data="@ChartsData"
                             Width="100%" Height="300px">
                        <DxChartTitle Text="Population: Age Structure">
                            <DxChartSubTitle Text="Data Estimate for 2020" />
                        </DxChartTitle>
                        <DxChartBarSeries Name="0-14 years"
                                          T="PopulationAgeStructureItem"
                                          TArgument="string"
                                          TValue="int"
                                          ArgumentField="pasi => pasi.Country"
                                          ValueField="pasi => pasi.Population"
                                          SummaryMethod="Enumerable.Sum"
                                          Filter='pasi => pasi.AgeGroup == "0-14 years"' />
                        <DxChartBarSeries Name="15-64 years"
                                          T="PopulationAgeStructureItem"
                                          TArgument="string"
                                          TValue="int"
                                          ArgumentField="pasi => pasi.Country"
                                          ValueField="pasi => pasi.Population"
                                          SummaryMethod="Enumerable.Sum"
                                          Filter='pasi => pasi.AgeGroup == "15-64 years"' />
                        <DxChartBarSeries Name="65 years and older"
                                          T="PopulationAgeStructureItem"
                                          TArgument="string"
                                          TValue="int"
                                          ArgumentField="pasi => pasi.Country"
                                          ValueField="pasi => pasi.Population"
                                          SummaryMethod="Enumerable.Sum"
                                          Filter='pasi => pasi.AgeGroup == "65 years and older"' />
                        <DxChartLegend Position="RelativePosition.Outside"
                                       HorizontalAlignment="HorizontalAlignment.Center"
                                       VerticalAlignment="VerticalEdge.Bottom" />
                        <DxChartTooltip Enabled="true"
                                        Position="RelativePosition.Outside">
                            <div style="margin: 0.75rem">
                                <div class="fw-bold">@context.Point.Argument</div>
                                <div>Age Group: @context.Point.SeriesName</div>
                                <div>Population: @($"{context.Point.Value:N0}")</div>
                            </div>
                        </DxChartTooltip>
                    </DxChart>



                </div>

            </div>
            <div class="card-footer py-2 px-4">
                <div class="d-flex justify-content-between">

                    <a href="#!">Modify</a>
                    <div class="border-start h-100"></div>


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

    </div>

</div>

@code {

}
