<table id="example" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
        <thead>
            <tr>
             <th>Sr.No</th>
             <th>username</th>
             <th>Name</th>
             <th>type</th>
             <th>Mobile</th>
             <th>Registration No</th>
             <th>Fees</th>
             <th>Action</th>
            </tr>
        </thead>
        <tbody>
<?php $srno = 1;?>           
@foreach($users as $user)
<tr>
             <td>{{$srno}}</td>
             <td>{{$user->Username}}</td>
              <td>{{$user->Name}}</td>
             <td>{{$user->Type}}</td>
              <td>{{$user->Phone}}</td>
              <td>{{$user->RegNo}}</td>
             <td>&#8377;{{number_format($user->Fees,2)}}</td>
             <td><a data-id="{{$user->id}}" href='javascript:void(0);' data-toggle="tooltip" data-placement="top" title="Edit" data-original-title="Edit" class="update"><i class="lnr lnr-pencil mr-2"></i></a>
             &nbsp;&nbsp;<a data-id="{{$user->id}}" href='javascript:void(0);' data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" class="delete" id="bootbox-confirm"><i class="lnr lnr-trash text-danger"></i></a>
             </td>
            </tr>
<?php $srno++;?>
@endforeach
</tbody>
    </table>
    <script type="text/javascript">
      $(document).ready(function() {
      $('#example').DataTable( {
        responsive: true
      });
      });
    </script>