<?= $this->extend('layout') ?>
<?= $this->section('content') ?>

<div class ="flex2">
<div class ="content">


<h11>Caution this page lists blogs which can be deleted</h11>


<div> 

<?php 
foreach ($blogList as $list)

{



echo "  <div class =\"blog\">  <img class = \"img-fluid \"        <img src =\"blogImages/".$list['image'] . "\">             ".$list['title']. " Id is :  ".$list['Id']." </div><br>   " ;


}


?>


 </div>




<div class="d-flex justify-content-center">

<?= form_open('delBlog') ?>
<?= csrf_field() ?>

 <div class="form-group"> 
    <label for="blogId">Blog Id </label>
    <input type="input" name="BlogId" id ="BlogId" class="form-control"/><br />
     </div>
    <div class="form-group"> 
			 <h1 style ="color:red";>  <?php echo $info ;?></h1>
			   </div>
			
   
   
 
			 



    <input type="submit" name="submit" class="btn btn-info"value="submit" />

<?php echo form_close();?>

</div>
</div>
</div>
<?= $this->endSection() ?>
