<datalist id="DataList2">
@foreach($data as $result)
@if($result->Phone == '')
<?php $PatientName = $result->MrdNo." / ".$result->PatientName." / ".$result->Address." / ".$result->City;?>
@else
<?php $PatientName = $result->MrdNo." / ".$result->PatientName." / ".$result->Phone." / ".$result->Address." / ".$result->City;?>
@endif
<option value="{{$PatientName}}">
@endforeach
</datalist>