 <div class="table-responsive">
  <table id="example" class="table table-bordered align-middle" style="width:100%">
    <thead class="table-light">
      <tr>
        <th class="thbutton">Sl No</th>
        <th>Lab Refferel Name</th>
        <th class="thbutton">Month Year</th>
        <th class="thbutton">Item Wise</th>
        <th class="thbutton">Patient Wise</th>
    </tr>
</thead>
<tbody>
    @php $i=1; @endphp

    @if(isset($lab) && count($lab) > 0)
        @foreach($lab as $key => $row)
            <tr>

                <td>{{ 1 + $key}}</td>
                <td>
                    Lab {{ $row-> organization }}
                </td>
                <td>
                    {!! date('M Y', strtotime($month)) !!}
                </td>
                <td style="text-align: right;">
                    <a class="btn btn-primary button-large text-white" href="{!! route('lab-referral-statement', [
                            'id'           => $row->id,
                            'month'        => $month,
                            'statement_by' => 'product'
                        ]) !!}">
                        Show Report
                    </a>
                </td>
                <td style="text-align: right;">
                    <a class="btn btn-primary button-large text-white" href="{!! route('lab-referral-statement', [
                            'id'           => $row->id,
                            'month'        => $month,
                            'statement_by' => 'patient'
                        ]) !!}">
                        Show Report
                    </a>
                </td>
            </tr>
            @php $i++; @endphp
        @endforeach
    @else
        <tr>
            <td colspan="10">No Data Found</td>
        </tr>
    @endif
</tbody>
</table>
</div>
<nav class="float-start mt-2">
    <ul class="pagination">
    </ul>
</nav>
</div>

