<style>
    #datatable-buttons_filter,#datatable-buttons_paginate{
        float:right;
    }
</style>
            <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="content-page">
                <!-- Start content -->
                <div class="content">
                    <div class="container-fluid">
                        <div class="page-title-box">
                            <div class="row align-items-center">
                                <div class="col-sm-12">
                                    <h4 class="page-title">Liste des clients</h4>
                                </div>
                            </div>
                        </div>
                        
                        <!-- end row -->
                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-body">
                                        <div class="row">

                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- end col -->
                        </div>
                        <!-- end row -->
                    </div>
                    <!-- container-fluid -->
                </div>
                <!-- content -->
                <footer class="footer">
                    © 2021 CheckAuto <span class="d-none d-sm-inline-block">- Designed <i class="mdi mdi-heart text-danger"></i> by worldevs</span>.
                </footer>
            </div>
            <!-- ============================================================== --><!-- End Right content here --><!-- ============================================================== -->
        </div>
        <!-- END wrapper --><!-- jQuery  -->
        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/bootstrap.bundle.min.js"></script>
        <script src="assets/js/metisMenu.min.js"></script>
        <script src="assets/js/jquery.slimscroll.js"></script>
        <script src="assets/js/waves.min.js"></script>
        <!-- Required datatable js -->
        <script src="plugins/datatables/jquery.dataTables.min.js"></script>
        <script src="plugins/datatables/dataTables.bootstrap4.min.js"></script>
        <!-- Buttons examples -->
        <script src="plugins/datatables/dataTables.buttons.min.js"></script>
        <script src="plugins/datatables/buttons.bootstrap4.min.js"></script>
        <script src="plugins/datatables/jszip.min.js"></script>
        <script src="plugins/datatables/pdfmake.min.js"></script>
        <script src="plugins/datatables/vfs_fonts.js"></script>
        <script src="plugins/datatables/buttons.html5.min.js"></script>
        <script src="plugins/datatables/buttons.print.min.js"></script>
        <script src="plugins/datatables/buttons.colVis.min.js"></script>
        <!--Summernote js-->
        <script src="plugins/summernote/summernote-bs4.min.js"></script>
        <script src="assets/pages/form-editors.int.js"></script>
        <!-- Responsive examples -->
        <script src="plugins/datatables/dataTables.responsive.min.js"></script>
        <script src="plugins/datatables/responsive.bootstrap4.min.js"></script>
        <!-- Datatable init js -->
        <script src="assets/pages/datatables.init.js"></script>
        <!-- App js -->
        <script src="assets/js/app.js"></script>
        <script>

            $(".delete").click(function() {
                $('#modaldelete').modal('show');
                var id = $(this).attr('data-id');
                $('#modaldelete #delete').attr('data-id',id);
            });
            
            $(document).on('click','#delete',function(){
            var id = $(this).attr('data-id');
            $.ajax({
                    type: "POST",
                    url: "client/delete",
                    data: {'id':id},
                    dataType: "text",
                    success: function(data){
                        location.reload();
                    }
                    });
            });
        </script>
    </body>
</html>
