@php $i=1;@endphp @foreach($data as $result) @php $i++;@endphp @endforeach
Sr.No Date MRD No Patient Name IOL Name IOL Type CYL Power
{{$i}} {{date("d/m/Y", strtotime(str_replace('-', '/',$result->StockDate)))}} {{$result->MrdNo}} {{$result->PatientName}} {{$result->Cname}} {{$result->Model}} {{$result->BillNo}} {{$result->Power}}