<style>
    .card-lab{
        display: block;
        margin: 0 auto;
        width: auto;
    }
</style>
<?php foreach ($result as $key => $value) { ?>
    

    
    <div class="content-card" style="">
        <a href="<?= base_url(['美容專欄/內容', $value['id']]) ?>" class="stretched-link"></a>
        <a href="<?= base_url(['美容專欄/內容', $value['id']]) ?>" target=""  class="card-img" style="background: url(<?= base_url().'/assets/images/uploads/' . pathinfo($value['cover_img_link'])['basename'] ?>) no-repeat center;background-size: 100% auto;height:180px;">
        </a>
        <div class="card-content" style="">
            
            <div class="card-title-div text-center" style="">
                <a href="<?= base_url(['美容專欄/內容', $value['id']]) ?>" target="_blank">
                    <span class="card-title-span" style="font-size: 16pt;"><?= $value['title'] ?></span>
                </a>
            </div>
            <div class="card-title-div text-center" style="">
                <span class="card-title-span" style=""><?= $value['date'] ?></span>
            </div>
            <div class="card-detail-tab text-center" style="padding-bottom: 10px;">
                <div class="card-lab">
                    <!--<div class="card-lab-1 text-center">-->
                        <!--<span style="position: relative; color: #056505; font-size: 10pt;">類別</span>-->
                    <!--</div>-->
                    <div class="card-lab-2">
                        <?php foreach ($value['tag'] as $sub_val) { ?>
                            <div class="card-lab-label" style="background: <?= $sub_val['color'] ?>;" data="<?= $sub_val['id'] ?>" data-n="<?= $sub_val['name'] ?>">
                                <nobr style="position: relative;  color: #fff;"><?= $sub_val['name'] ?></nobr>
                            </div>
                        <?php } ?>
                    </div>
                </div>
            </div>
           
        </div>
    </div>
 
<?php } ?>
<!--總頁數-->
<input type="hidden" id="page_total" value="<?= $count ?>" />

