<div class="form-group text-right">
 <?php if($this->permission->method('ordermanage','create')->access()): ?>

<?php endif; ?>

</div>
<div id="add0" class="modal fade" role="dialog">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <strong><?php echo display('add_type');?></strong>
            </div>
            <div class="modal-body">
           
<div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="panel">
               
                <div class="panel-body">

                    <?php echo  form_open('ordermanage/customertype/create') ?>
                    <?php echo form_hidden('customer_type_id', (!empty($intinfo->customer_type_id)?$intinfo->customer_type_id:null)) ?>
                        <div class="form-group row">
                            <label for="typename" class="col-sm-4 col-form-label"><?php echo display('type_name') ?> *</label>
                            <div class="col-sm-8">
                                <input name="typename" class="form-control" type="text" placeholder="Add <?php echo display('type_name') ?>" id="tablename" value="">
                            </div>
                        </div>
                        
                        <div class="form-group text-right">
                            <button type="reset" class="btn btn-primary w-md m-b-5"><?php echo display('reset') ?></button>
                            <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('Ad') ?></button>
                        </div>
                    <?php echo form_close() ?>

                </div>  
            </div>
        </div>
    </div>
             
    
   
    </div>
     
            </div>
            <div class="modal-footer">

            </div>

        </div>

    </div>

<div id="edit" class="modal fade" role="dialog">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <strong><?php echo display('edit_type');?></strong>
            </div>
            <div class="modal-body editinfo">
            
    		</div>
     
            </div>
            <div class="modal-footer">

            </div>

        </div>

    </div>
<div class="row">
    <!--  table area -->
    <div class="col-sm-12">

        <div class="card panel-default thumbnail"> 
            <div class="card-header">
                <h4><?php echo display('customertype_list') ?></h4>
            </div>
            <div class="card-body">
                <table width="100%" id="exdatatable" class="datatable table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th><?php echo display('Sl') ?></th>
                            <th><?php echo display('type_name') ?></th>
                            <th><?php echo display('action') ?></th> 
                           
                        </tr>
                    </thead>
                    <tbody>
                        <?php if (!empty($typelist)) { ?>
                            <?php $sl = 1; ?>
                            <?php foreach ($typelist as $type) { ?>
                                <tr class="<?php echo ($sl & 1)?"odd gradeX":"even gradeC" ?>">
                                    <td><?php echo $sl; ?></td>
                                    <td><?php echo $type->customer_type; ?></td>
                                   <td class="center">
                                    <?php if($this->permission->method('ordermanage','update')->access()): ?>
                                    <input name="url" type="hidden" id="url_<?php echo $type->customer_type_id; ?>" value="<?php echo base_url("ordermanage/customertype/updateintfrm") ?>" />
                                        <a onclick="editinfo('<?php echo $type->customer_type_id; ?>')" class="btn btn-info btn-sm" data-toggle="tooltip" data-placement="left" title="Update"><i class="ti-pencil" aria-hidden="true"></i></a> 
                                         <?php endif; ?>
                                       
                                    </td>
                                    
                                </tr>
                                <?php $sl++; ?>
                            <?php } ?> 
                        <?php } ?> 
                    </tbody>
                </table>  <!-- /.table-responsive -->
            </div>
        </div>
    </div>
</div>

     
