<main class="container bg-light shadow-sm rounded border my-2">
    <h1 class="visually-hidden"><?php echo APP_NAME; ?> Latest MP3 Songs 2021</h1>
    <h2 class="visually-hidden"><?php echo APP_NAME; ?></h2>
    <?php echo getAds($AdsPath . '/home_top'); ?>
    <div class="row">
        <!-- Start Main Container -->
        <div class="col-12 col-lg-8">
            <div id="trendingSongs">
                <h3><i class="fa fa-tint" aria-hidden="true"></i> Trending Songs</h3>
                <?php
                $files = $trendsongs;
                require __DIR__ . '/_files_list.php';
                unset($trendsongs);
                ?>
                <div class="text-center mt-2"><a href="<?php echo APP_URL . '/musics/1/trending' . $endRoute; ?>" class="btn btn-outline-primary text-uppercase">See All <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
                    </a></div>
            </div>
            <div id="latestSongs">
                <h3><i class="fa fa-bandcamp" aria-hidden="true"></i> Latest Songs</h3>
                <?php
                $files = $newsongs;
                require __DIR__ . '/_files_list.php';
                unset($newsongs);
                ?>
                <div class="text-center m-2"><a href="<?php echo APP_URL . '/musics/1/latest-songs' . $endRoute; ?>" class="btn btn-outline-primary text-uppercase">See All <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
                    </a></div>
            </div>
            <div id="latestAlbums">
                <h3><i class="fa fa-film" aria-hidden="true"></i> Latest Album/Movie</h3>
                    <?php
                    $categories = $newalbums;
                    require __DIR__ . '/_category_list.php';
                    unset($newalbums);
                    ?>
                <div class="text-center m-2"><a href="<?php echo APP_URL . '/musics/1/latest-albums' . $endRoute; ?>" class="btn btn-outline-primary text-uppercase">See All <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
                    </a></div>
            </div>
            <div id="featuredArtist">
                <h3><i class="fa fa-user-o" aria-hidden="true"></i> Featured Artists</h3>
                <div class="row row-cols-3 row-cols-sm-4 row-cols-md-6 bg-light g-1 g-sm-2">
                    <?php
                    $collection = $homeartists;
                    $goroute = 'artist';
                    require __DIR__ . '/_collection_list.php';
                    unset($homeartists);
                    ?>
                </div>
                <div class="text-center m-2"><a href="<?php echo APP_URL . '/artists/1/a-to-z' . $endRoute; ?>" class="btn btn-outline-primary text-uppercase">See All <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
                    </a></div>
            </div>
        </div>
        <!-- End Main Container -->
        <!-- Start Sidebar -->
        <div class="col-12 col-lg-4">
            <aside>
                <div id="topSongs">
                    <h3><i class="fa fa-award" aria-hidden="true"></i> Top Songs <span class="float-end d-none d-sm-block"><a href="<?php echo APP_URL . '/musics/1/top-songs' . $endRoute; ?>" class="btn btn-outline-primary btn-xs">See All <i class="fa fa-plus-circle" aria-hidden="true"></i>
                            </a></span></h3>
                    <ul class="list-group sb-list">
                        <?php
                        $listitems = $mostviewed;
                        include __DIR__ . '/_list_item.php';
                        unset($mostviewed);
                        ?>
                    </ul>
                </div>
                <div id="featuredAlbum">
                    <h3><i class="fa fa-folder-open" aria-hidden="true"></i> Featured Album/Movie</h3>
                    <ul class="list-group sb-list">
                        <?php
                        $listitems = $homecategories;
                        include __DIR__ . '/_list_category.php';
                        unset($homecategories);
                        ?>
                    </ul>
                </div>
            </aside>
        </div>
        <!-- End Sidebar -->
    </div>
    <?php echo getAds($AdsPath . '/home_bottom'); ?>
</main>