<table id="example" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
    <thead>
        <tr>
            
            <th>Mrd. No</th>
            <th>Patient Name</th>
            <th>Appointment Date</th>
            <th>Amount</th>
            <th>Narration</th>
            <!-- <th>Action</th> -->
        </tr>
    </thead>
    <tbody>
        @foreach($data as $result)
        <tr style="cursor: pointer;" onclick="opdReceipt({{$result->id}})">
         
             <td>{{$result->MrdNo}}</td>
             <td>{{$result->PatientName}}</td>
             <td>{{date("d/m/Y", strtotime(str_replace('-', '/',$result->BalDate)))}}</td>
          
             <td>{{$result->Amount}}</td>
            
             <td>{{$result->Narration}}</td>
             
             <!-- <td>
             <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="lnr lnr-trash text-danger"></i></a></td> -->
            
        </tr>
        @endforeach
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable({
      "scrollX": true,
        dom: 'Bfrtip',
        buttons: [
            
            'excelHtml5'
           
        ]
    });
});
</script>