<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 Service</h1>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- Main content -->

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

                <div class="row">
                    <div class="col-4">
                        <div class="form-group">
                            <input type="text" value="<?php echo $services['name'];?>" required="true" class="form-control" name="name" placeholder="Name">
                        </div>
                    </div>
                    <div class="col-4">
                        <div class="form-group">
                            <input type="number" required="true" class="form-control" name="rate" value="<?php echo $services['rate'];?>" placeholder="rate">
                        </div>
                    </div>
                    <div class="col-4">
                        <div class="form-group">
                            <select class="form-select" required name="status" id="">
                                <option value="" disabled>Status</option>
                                <option <?php if($services['status']==0){echo 'selected';} ?> value="0">Inactive</option>
                                <option <?php if($services['status']==1){echo 'selected';} ?> value="1" >Active</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="form-group">
                            <input type="text" required="true" class="form-control" name="description"   value="<?php echo $services['description'];?>" placeholder="description">
                        </div>
                    </div>
                </div>

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