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



<div class="row py-3">

    <div class=" col-12 col-xl-3">
        <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">
                        <div class="flex-fill">
                            <h4 class="bold">Your QR code</h4>
                            <p class="text-muted"> Use this in printed material, to gain referrals</p>
                        </div>
                        <div>
                            <a href="api/pictures/1" download="data:image/png;base64,@ImageSource" target="_top">

                                <img class="align-self-center img-fluid"
                                     src="data:image/png;base64,@ImageSource" width="128" />
                            </a>
                        </div>

                    </div>

                    <div class="d-flex flex-column mb-4 pb-2">
                        <h4> Hotel name: <span class="small text-muted"> Example hotel </span></h4>
                        <h4> Address: <span class="small text-muted"> Budapest, Minta u. 46 </span></h4>
                        <h4> Phone number: <span class="small text-muted"> +36 1 123 4567</span></h4>
                    </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-3">
        <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">My orders</span>

                        </div>
                        <div>
                            <h6 class="mb-0"> <a href="/user/transfers">All transfers</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="@OrderData">
                            <Columns>
                                <DxGridDataColumn FieldName="Date" DisplayFormat="D" MinWidth="100">
                                    <CellDisplayTemplate>
                                        <a class="d-block text-left" href="transferdetails">@context.Value</a>
                                    </CellDisplayTemplate>

                                </DxGridDataColumn>
                                <DxGridDataColumn FieldName="Income" Width="15%" />
                                <DxGridDataColumn FieldName="TransactionId" Width="15%" />
                                <DxGridDataColumn FieldName="Status" Width="10%" />
                            </Columns>
                        </DxGrid>



                    </div>

                    <div class="d-flex flex-row mb-4 pb-2">
                        <h4> Some <span class="small text-muted"> conclusion </span></h4>
                    </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-3">
        <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">Messagess</span>

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

                        
                            
                            <div class="media text-muted pt-3">
                                <!--img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="" class="mr-2 rounded" width="32" height="32"-->
                                <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                                    <strong class="d-block text-gray-dark">username</strong>
                                    Donec id elit non mi porta gravida at eget metus...
                                </p>
                            </div>
                            <div class="media text-muted pt-3">
                                
                                <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                                    <strong class="d-block text-gray-dark">username</strong>
                                    Donec id elit non mi porta gravida at eget metus...
                                </p>
                            </div>
                            <div class="media text-muted pt-3">
                                
                                <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                                    <strong class="d-block text-gray-dark">username</strong>
                                    Donec id elit non mi porta gravida at eget metus...
                                </p>
                            </div>
                            <div class="media text-muted pt-3">
                                
                                <p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                                    <strong class="d-block text-gray-dark">username</strong>
                                    Donec id elit non mi porta gravida at eget metus...
                                </p>
                            </div>
                                                  
                      


                    </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-3">
        <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">Panel title</span>
                            <p class="text-muted mb-0">Subtitle</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">
                    <div class="d-flex flex-row mb-4 pb-2">
                        <div class="flex-fill">
                            <h5 class="bold">Some info</h5>
                            <p class="text-muted"> Budapest, Dózsa György út 35, 1146</p>
                        </div>
                        <div>
                            <!--img class="align-self-center img-fluid"
                            src="https://mdbcdn.b-cdn.net/img/Photos/Horizontal/E-commerce/Products/6.webp" width="250"-->
                        </div>

                    </div>
                    <ul id="progressbar-1" class="mx-0 mt-0 mb-5 px-0 pt-0 pb-4">
                        <li class="step0 active" id="step1">
                            <span style="margin-left: 22px; margin-top: 12px;">PLACED</span>
                        </li>
                        <li class="step0 active text-center" id="step2"><span>WAITING FOR PICK UP</span></li>
                        <li class="step0 text-muted text-end" id="step3">
                            <span style="margin-right: 22px;">FINISHED</span>
                        </li>
                    </ul>

                    <div class="d-flex flex-row mb-4 pb-2">
                        <h4> Some <span class="small text-muted"> conclusion </span></h4>
                    </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">
        <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">Details</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">

                    <style>
                        .dxbl-grid {
                            --dxbl-grid-font-family: inherit;
                            --dxbl-grid-font-size: 0.75rem;
                            --dxbl-grid-line-height: 1.4285;
                            --dxbl-grid-min-width: 240px;
                            --dxbl-grid-bg: #e7e6f7;
                            --dxbl-grid-color: #58457b;
                        }
                    </style>

                    <DxGrid Data="@Data">
                        <Columns>
                            <DxGridDataColumn FieldName="CompanyName" AllowSort="true" />
                            <DxGridDataColumn FieldName="ContactName" />
                            <DxGridDataColumn FieldName="ContactTitle" Width="3%" />
                            <DxGridDataColumn FieldName="Country" Width="10%" />
                            <DxGridDataColumn FieldName="City" Width="10%" />
                            <DxGridDataColumn FieldName="Address" />
                            <DxGridDataColumn FieldName="Phone" Width="10%" />
                        </Columns>
                    </DxGrid>

                </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 {

}
