@{
    if (ItemType == 0) {
        typeVariable = "Related tours";
    }

    else
    {
        typeVariable = "Featured partner restaurants";
    }
}

<section class="py-5">
    
    @{
        if (DisplayTitle) {
            <h2 class="fw-bolder mb-4"> @typeVariable</h2>
        }
    }    
    
        <div class="row">
            <div class="col-xl-3 col-lg-4 col-md-4 col-xs-4 col-6">
                <div class="card my-5">
                    <img src="_content/TIAMSharedUI/images/slider1.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">Card title</h5>
                        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                        <a href="Restaurants" class="btn btn-primary">See all</a>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-4 col-md-4 col-xs-4 col-6">
                <div class="card my-5">
                    <img src="_content/TIAMSharedUI/images/slider2.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">Card title</h5>
                        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                        <a href="Restaurants" class="btn btn-primary">See all</a>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-4 col-md-4 col-xs-4 col-6">
                <div class="card my-5">
                    <img src="_content/TIAMSharedUI/images/slider3.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">Card title</h5>
                        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                        <a href="Restaurants" class="btn btn-primary">See all</a>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-4 col-md-4 col-xs-4 col-6">
                <div class="card my-5">
                    <img src="_content/TIAMSharedUI/images/slider4.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">Card title</h5>
                        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                        <a href="Restaurants" class="btn btn-primary">See all</a>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-4 col-md-4 col-xs-4 col-6">
                <div class="card my-5">
                    <img src="_content/TIAMSharedUI/images/slider5.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">Card title</h5>
                        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                        <a href="Restaurants" class="btn btn-primary">See all</a>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-4 col-md-4 col-xs-4 col-6">
                <div class="card my-5">
                    <img src="_content/TIAMSharedUI/Images/slider6.jpg" class="card-img-top" alt="...">
                    <div class="card-body">
                        <h5 class="card-title">Card title</h5>
                        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
                        <a href="Restaurants" class="btn btn-primary">See all</a>
                    </div>
                </div>
            </div>
        </div>

</section>

@code {
    [Parameter]
    public int ItemType { get; set; }

    [Parameter]
    public bool DisplayTitle { get; set; } = true;

    public string typeVariable;    
}
