<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <h1 class="m-0 text-dark">Edit News</h1>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- Main content -->
<section class="content">
    <div class="container-fluid">
        <?php 

        
        ?>
        <form method="post" class="card" action="<?php echo base_url('dashboard/editnewsdata/'.$catid) ; ?>">
            <div class="card-body d-flex flex-column justify-content-center align-items-center">

                  <div class="row">
                    <div class="col-12">
                        <div class="form-group">
           
                            <input type="text"  value="<?php echo $category['title']; ?>" required="true" class="form-control" name="title" placeholder="Title">
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-12">
                        <div class="form-group">
           
                            <textarea  required="true" class="form-control" name="description" placeholder="Name"><?php echo $category['description']; ?></textarea>
                        </div>
                    </div>
                </div>

                <button type="submit" class="btn btn-md selfalign-center rounded-pill bg-custom-blue text-white px-5"> Save</button>
            </div>
        </form>
    </div>
</section>
<!-- /.content -->