 <div class="card">
     <?php if ($this->permission->method('customer', 'create')->access()) : ?>
     <div class="card-header">
         <h4><?php echo display('customer_list') ?><small class="float-right"><a
                     href="<?php echo base_url("customer/customer_info/create") ?>" class="btn btn-primary btn-md">
                     <i class="ti-plus" aria-hidden="true"></i>
                     <?php echo display('add_new_customer') ?></a></small></h4>
     </div>
     <?php endif; ?>
     <div id="add0" class="modal fade" role="dialog">
         <div class="modal-dialog modal-md">
             <div class="modal-content">
                 <div class="modal-header">
                     <strong><?php echo display('add_new'); ?></strong>
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
                 </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('customer/customer_info/create'); ?>
                                     <?php echo form_hidden('customerid', (!empty($intinfo->customerid) ? $intinfo->customerid : null)) ?>
                                     <div class="form-group row">
                                         <label for="firstname"
                                             class="col-sm-4 col-form-label"><?php echo display('firstname') ?> <span
                                                 class="text-danger">*</span></label>
                                         <div class="col-sm-8">
                                             <input name="firstname" autocomplete="off" class="form-control" type="text"
                                                 placeholder="<?php echo display('firstname') ?>" id="firstname"
                                                 value="">
                                         </div>
                                     </div>
                                     <div class="form-group row">
                                         <label for="lastname"
                                             class="col-sm-4 col-form-label"><?php echo display('lastname') ?> <span
                                                 class="text-danger">*</span></label>
                                         <div class="col-sm-8">
                                             <input name="lastname" autocomplete="off" class="form-control" type="text"
                                                 placeholder="<?php echo display('lastname') ?>" id="lastname" value="">
                                         </div>
                                     </div>
                                     <div class="form-group row">
                                         <label for="email"
                                             class="col-sm-4 col-form-label"><?php echo display('email') ?></label>
                                         <div class="col-sm-8">
                                             <input name="email" autocomplete="off" class="form-control" type="text"
                                                 placeholder="<?php echo display('email') ?>" id="email" value="">
                                         </div>
                                     </div>
                                     <div class="form-group row">
                                         <label for="phone"
                                             class="col-sm-4 col-form-label"><?php echo display('phone') ?>* </label>
                                         <div class="col-sm-8">
                                             <input name="phone" autocomplete="off" class="form-control" type="number"
                                                 placeholder="<?php echo display('phone') ?>" id="phone" value="">
                                         </div>
                                     </div>
                                     <div class="form-group row">
                                         <label for="address"
                                             class="col-sm-4 col-form-label"><?php echo display('address') ?> </label>
                                         <div class="col-sm-8">
                                             <textarea name="address" cols="30" rows="3" autocomplete="off"
                                                 class="form-control"
                                                 placeholder="<?php echo display('address') ?>"></textarea>
                                         </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">
                     <strong><?php echo display('update'); ?></strong>
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
                 </div>
                 <div class="modal-body editinfo">

                 </div>

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

             </div>

         </div>

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

                 </div>

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

             </div>

         </div>

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

             <div class="card-body">
                 <div class="table-responsive">
                     <table width="100%" id="exdatatable"
                         class="datatable table table-striped table-bordered table-hover">
                         <thead>
                             <tr>
                                 <th><?php echo display('sl_no') ?></th>
                                 <th><?php echo display('firstname') ?></th>
                                 <th><?php echo display('lastname') ?></th>
                                 <th><?php echo display('email') ?></th>
                                 <th><?php echo display('phone') ?></th>
                                 <th><?php echo display('balance') ?></th>
                                 <th><?php echo display('action') ?></th>

                             </tr>
                         </thead>
                         <tbody>
                             <?php if (!empty($customer_infolist)) {
                            ?>
                             <?php $sl = 1; ?>
                             <?php foreach ($customer_infolist as $customer) { ?>
                             <tr class="<?php echo ($sl & 1) ? "odd gradeX" : "even gradeC" ?>">
                                 <td><?php echo $sl; ?></td>
                                 <td><?php echo html_escape($customer->firstname); ?></td>
                                 <td><?php echo html_escape($customer->lastname); ?></td>
                                 <td><?php echo html_escape($customer->email); ?></td>
                                 <td><?php echo html_escape($customer->cust_phone); ?></td>
                                 <td><?php echo html_escape($customer->balance); ?></td>
                                 <td class="center">
                                     <?php

                                            if ($this->permission->method('customer', 'update')->access()) : ?>
                                     <input name="url" type="hidden"
                                         id="url_<?php echo html_escape($customer->customerid); ?>"
                                         value="<?php echo base_url("customer/customer-update") ?>" />
                                     <a href="<?php echo base_url("customer/customer-update/" . html_escape($customer->customerid)) ?>"
                                         class="btn btn-info btn-sm" data-toggle="tooltip" data-placement="left"
                                         title="Update"><i class="ti-pencil-alt text-white" aria-hidden="true"></i></a>
                                     <?php endif;
                                            if ($this->permission->method('customer', 'update')->access()) : ?>
                                     <input name="url" type="hidden"
                                         id="pay_<?php echo html_escape($customer->customerid); ?>"
                                         value="<?php echo base_url("customer/customer_info/payfrm") ?>" />
                                     <a onclick="paymentinfo('<?php echo html_escape($customer->customerid); ?>')"
                                         class="btn btn-success btn-sm" data-toggle="tooltip" data-placement="left"
                                         title="Paynow"><i class="ti-money text-white" aria-hidden="true"></i></a>
                                     <?php endif;
                                            if ($this->permission->method('customer', 'delete')->access()) : ?>
                                     <a href="<?php echo base_url("customer/customer-delete/" . html_escape($customer->customerid)) ?>"
                                         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="ti-trash"></i></a>
                                     <?php endif; ?>
                                 </td>

                             </tr>
                             <?php $sl++; ?>
                             <?php } ?>
                             <?php } ?>
                         </tbody>
                     </table> <!-- /.table-responsive -->
                 </div>
             </div>
         </div>
     </div>
 </div>