<table id="example" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
    <thead>
        <tr>
            <th>Sr.No</th>
            <!-- <th>Receipt No</th> -->
            <!-- <th>Mrd. No</th>
            <th>Name</th> -->
            <th>Expenses</th>
            <th>Amount</th>
            <!-- <th>Payment Mode</th> -->
            <th>Date</th>
            <th>Action</th>
            <th>Print</th>
        </tr>
    </thead>
    <tbody>
        @php $i=1;
        
        
        @endphp
        @foreach($data as $result)

        <tr>
            <td>{{$i}}</td>
            <!-- <td>{{$result->id}}</td> -->
            <!-- <td>{{$result->MrdNo}}</td>
            <td>{{$result->PatientName}}</td> -->
            <td>{{$result->Narration}}</td>
            <td>&#8377;{{number_format($result->Amount,2)}}</td>
            <!-- <td>{{$result->PayMode}}</td> -->
            <td>{{date("d/m/Y", strtotime(str_replace('-', '/',$result->CreatedDate)))}}</td>
            <td>
                <a data-id="{{$result->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="{{$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>
            <td><a href='javascript:void(0)' onclick="printCard({{$result->id}})" class="btn btn-info btn-sm"><i
                        class="feather icon-printer"></i>&nbsp;Print </a></td>
        </tr>
        @php $i++;@endphp
        @endforeach
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable({
        "scrollX": true,
        dom: 'Bfrtip',
        buttons: [

            'excelHtml5'

        ]
    });
});
</script>