<style>
.body-sec{background:#fff;}
.circular-div{
box-shadow: 0 0 8px #EAEDED;
border-left:5px solid #F05A59;
border-radius:15px;
}
.circular-header{min-height:30px;}
.circular-header .circular-header-item{float:left;width:50%;min-height:30px;}

ul li a{text-decoration :none; color:#000;}
.circular{background:#E9ECEF;text-align:center;}
</style>

<div class="container-fluid body-sec mt-3 mb-3">
    <div class="row">
        <div class="col-sm-12  pt-3 pb-3">
            
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>Welcome">Home</a></li>
                <li class="breadcrumb-item">Circular</li>
                <li class="breadcrumb-item">All Circulars</li>
            </ul>
            <a href="<?php echo base_url();?>Management/publish_circular" class="btn btn-sm btn-success ">Publish Circular</a>
            <?php
            $table='circular';
            $circular_data=$this->SchoolModel->all_circular($table);
            if($circular_data){
                foreach($circular_data as $circular){
                    // if($circular['notice_community'] =='students' ){
            ?>
            <div class="circular-div p-3 mt-3 mb-3">
                <div class="circular-header">
                    <div class="circular-header-item"><?php echo $circular['subject']; ?></div>
                    <div class="circular-header-item"><?php echo date('d-M-Y',strtotime($circular['cat'])); ?></div>
                </div>
                <hr>
                <div>
                    <p>
                    <?php
                    echo $circular['message'];
                    ?>
                    </p>
                </div>
            </div>

            <?php

                }
            }
            ?>
        </div>

    </div>
</div>