// ----------------------- CONTROLLER--------------------------------//

    public function view_quotestatus()
    {
        $data['title']  = 'Quote Status';
        $data['services'] = $this->service_model->readQuoteStatus();  //LISTING


        $this->form_validation->set_rules('quotestatus', "Quote Status", "required|max_length[255]");
        $this->form_validation->set_rules('order_id', "Order Id", "required|max_length[255]");

        $userdata = array(

            'name'       => $this->input->post('quotestatus'),
            'order_id'       => $this->input->post('order_id'),
            'date'         => date("Y-m-d h:i:s"),

        );


// print_r($userdata);die();

        if ($this->form_validation->run())
        {

            if ($this->service_model->createQuoteStatus($userdata)) {

                $this->session->set_flashdata('message', 'Quote Status added successfully!');
                redirect("backend/cms/service/view_quotestatus");

            } else {
                $this->session->set_flashdata('exception', display('please_try_again'));
                redirect("backend/cms/service/view_quotestatus");

            }



        }

        $data['content'] = $this->load->view("backend/service/view_quotestatus", $data, true);
        $this->load->view("backend/layout/main_wrapper", $data);

    } 

-----------------MODEL--------------------------

    public function createQuoteStatus($data = array())
    {
        return $this->db->insert('quote_settings', $data);
       
    }

---------------------VIWE  PAGE----------------------------------

<div class="row">
    <div class="col-sm-12 col-md-12">
        <div class="panel panel-bd lobidrag">
            <div class="panel-heading">
                <div class="panel-title">
                    <h2><?php echo (!empty($title)?$title:null) ?></h2>

                </div>
            </div>
            <div class="panel-body">
                <table class="datatable2 table">
                    <thead>
                        <tr>
                            <th><?php echo display('sl_no') ?></th>
                            <th>Name</th>
                              <th>Services Images</th>
                            <th><?php echo display('Description') ?></th>
                           
                                 <th><?php echo display('Action') ?></th>
                        </tr>
                    </thead>    
                    <tbody>
                        <?php if (!empty($services)) ?>
                        <?php $sl = 1; ?>
                        <?php foreach ($services as $value) { ?>
                        <tr>
                            <td><?php echo $sl++; ?></td>
                            <td><?php echo $value->name; ?></td>
                              <td><img src="<?php  echo base_url($value->image);  ?>" width="100"> </td>
                               <td><?php echo $value->description; ?></td>

                        
                            <td>
                                <a href="<?php echo base_url("backend/cms/service/form/$value->id") ?>" class="btn btn-info btn-sm" data-toggle="tooltip" data-placement="left" title="Update"><i class="fa fa-pencil" aria-hidden="true"></i></a>
                                <a href="<?php echo base_url("backend/cms/service/delete/$value->id") ?>" onclick="return confirm('<?php echo display("are_you_sure") ?>')" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="right" title="Delete "><i class="fa fa-trash-o" aria-hidden="true"></i></a>
                            </td>
                        </tr>
                        <?php } ?>  
                    </tbody>
                </table>
                <?php echo $links; ?>
            </div>
        </div>
    </div>
</div>