<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 Category</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/editcategorydata/'.$catid) ; ?>">
            <div class="card-body d-flex flex-column justify-content-center align-items-center">

                <div class="row">
                    <div class="col-6">
                        <div class="form-group">
                            <input type="text" required="true" class="form-control" name="name" value="<?php echo $category['name']; ?>" placeholder="Name">
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="form-group">
                            <input type="text" required="true" class="form-control" name="description" value="<?php echo $category['description']; ?>" placeholder="description">
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="form-group">
                            <select class="form-select" required name="status" id="">
                                <option value="" disabled>Status</option>
                                <option <?php if($category['status']==0){echo 'selected';} ?> value="0">Inactive</option>
                                <option <?php if($category['status']==1){echo 'selected';} ?> value="1" >Active</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="form-group">
                            <select class="form-select" required name="type">
                                <option value="" disabled>Type</option>
                                <option <?php if($category['type']=='client'){echo 'selected';} ?> value="client">Client</option>
                                <option value="staff" <?php if($category['type']=='staff'){echo 'selected';} ?>>Staff</option>
                            </select>
                        </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 -->