<table id="example" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
    <thead>
        <tr>
            
            <th>#</th>
            <th>Vendor Name</th>
            <th>Phone</th>
            <th>Email Id</th>
            <th>Address</th>
            <th>Status</th>
            <th>Created Date</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php $i=1;?>
        @foreach($data as $result)
        <tr>
         
             <td>{{$i}}</td>
             <td>{{$result->VedName}}</td>
             <td>{{$result->Phone}}</td>
             
          
             <td>{{$result->EmailId}}</td>
            
             <td>{{$result->Address}}</td>
             <td>{{$result->Status}}</td>
             <td>{{date("d/m/Y", strtotime(str_replace('-', '/',$result->CreatedDate)))}}</td>
             <td>
             <a data-id="" href='/editVendor/{{$result->id}}' data-toggle="tooltip" data-placement="top" title="Edit" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>&nbsp;&nbsp;
             <a data-id="{{$result->id}}" href='javascript:void(0);' data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" class="delete" id="bootbox-confirm"><i class="fas fa-trash"></i></a>
             </td>
            
        </tr>
        <?php $i++;?>
        @endforeach
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable({
      "scrollX": true,
        dom: 'Bfrtip',
        buttons: [
            
            'excelHtml5'
           
        ]
    });
});
</script>