<?php foreach($posts as $post):?>
    <div class="post">
        <div class="post-header">
            <div class="content">
                <div class="sport"><span><?php echo $post->id_sport; ?></span></div>
                <div class="date-time"><span><?php echo $post->game_date; ?></span></div>
                <div class="status"><span><?php echo $post->game_stat; ?></span></div>
            </div>
        </div>
        <div class="post-body">
            <div class="teams">
                <div class="team team-a">
                    <div class="team-logo">
                        <img src="<?php echo $post->home_image; ?>" alt="">
                    </div>
                    <div class="team-name"><span><?php echo $post->home_name; ?></span></div>
                </div>
                <div class="team team-vs">
                    <div class="vs-logo"><span>vs</span></div>
                    <div class="vs-name"><span><?php echo $post->numPicks; ?> POSTS</span></div>
                </div>
                <div class="team team-b">
                    <div class="team-logo">
                        <img src="<?php echo $post->visitor_image; ?>" alt="">
                    </div>
                    <div class="team-name"><span><?php echo $post->visitor_name; ?></span></div>
                </div>
            </div>
        </div>
    </div>
<?php endforeach; ?>
