<div class="d-block d-lg-none">
    <div class="row no-gutters mb-3 mb-lg-4">
        <div class="col-auto d-flex">
            <a class="btn btn-sm btn-block btn-warning btn-control h-100 px-2" href="#provider-slider" role="button" data-slide="prev">
                <span class="text-dark font-weight-bold"><i class="fi fi-rr-angle-left"></i></span>
            </a>
        </div>
        <div class="col">
            <div id="provider-slider" class="carousel slide" data-interval="false" data-ride="carousel">
                <div class="carousel-inner row row-cols-5 w-100 mx-auto px-0">
                    <?php foreach ( $providers as $key => $provider ) : ?>
                        <div class="carousel-item col px-0">
                            <a class="d-block h-100" href="<?php echo $provider; ?>">
                                <div class="card card-provider bg-color-1 h-100 mb-0">
                                    <div class="card-body px-1 py-2">
                                        <img class="filter-white provider-thumbnail" src="<?php echo '/assets/images/providers/' . strtolower( str_replace( '.html', '', $provider ) ) . '.png'; ?>">
                                        <p class="text-white text-center text-uppercase mt-2 mb-0">
                                            <small class="font-weight-bold"><?php echo $key; ?></small>
                                        </p>
                                    </div>
                                </div>
                            </a>
                        </div>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>
        <div class="col-auto d-flex">
            <a class="btn btn-sm btn-block btn-warning btn-control h-100 px-2" href="#provider-slider" role="button" data-slide="next">
                <span class="text-dark font-weight-bold"><i class="fi fi-rr-angle-right"></i></span>
            </a>
        </div>
    </div>
</div>
<div class="d-none d-lg-block">
    <div class="list-group px-0 py-0">
        <div class="list-group-item list-group-item-action px-0 py-0">
            <div class="card card-list-provider bg-gradient-gold h-100 mb-0">
                <div class="card-body px-3 py-2">
                    <div id="jam" class="d-block text-dark font-weight-bold text-center"></div>
                </div>
            </div>
        </div>
        <?php foreach ( $providers as $key => $provider ) : ?>
            <a class="list-group-item list-group-item-action px-0 py-0" href="<?php echo $provider; ?>">
                <div class="card card-list-provider bg-color-1 h-100 mb-0">
                    <div class="card-body px-3 py-3">
                        <div class="row no-gutters align-items-center">
                            <div class="col-auto">
                                <img class="filter-white provider-thumbnail" src="<?php echo '/assets/images/providers/' . strtolower( str_replace( '.html', '', $provider ) ) . '.png'; ?>">
                            </div>
                            <div class="col-auto ml-lg-3">
                                <h5 class="text-white text-center text-uppercase mb-0">
                                    <small class="font-weight-bold"><?php echo str_replace( '.html', '', $provider ); ?></small>
                                </h5>
                            </div>
                        </div>
                    </div>
                </div>
            </a>
        <?php endforeach; ?>
    </div>
</div>  