@include('header')
@php
$UserId = Session::get('UserId');
@endphp
<div class="container-fluid flex-grow-1 container-p-y">
    <div class="row">
        <!-- customar project  start -->
        <div class="col-xl-12">
            <div class="card">
                <div class="card-body">

                <table id="example4" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
    <thead>
        <tr>
        <th>SrNo</th>
            <th>ID</th>
            <th>Mrd. No</th>
            <th>Name</th>
            <th>Eye</th>
            <!-- <th>K1</th>
            <th>K2</th>
            <th>Diff</th> -->
            <th>Category</th>
            <th>GA</th>
            <th>Diagnosis</th>
            <th>Advice</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->Eye}}</td>
            <!-- <td>{{$result->K1Re}} / {{$result->K1Le}}</td>
            <td>{{$result->K2Re}} / {{$result->K2Le}}</td>
            <td>{{$result->Diff}}</td> -->
            <td>{{$result->Category}}</td>
            
            <td>{{$result->Ga}}</td>
            <td>{{$result->Diagnosis}}</td>
            <td style="white-space: pre-wrap;">{{$result->Advice}}</td>
        </tr>
        @php $i++;@endphp
        @endforeach

    </tbody>
</table>
                    
                </div>
            </div>
        </div>
        <!-- customar project  end -->
    </div>
</div>


@include('footerscript')
@include('excelscript')
<script type="text/javascript">
$(document).ready(function() {
    $('#example4').DataTable({
        "scrollX": true,
        dom: 'Bfrtip',
        "pageLength": 200,
        "order": [
            [0, "asc"]
        ],
        buttons: [

            'excelHtml5',
            'print'

        ]
    });
});
</script>
