<td class='text-centre'>{{$info->email}}</td> <td class='text-centre'>{{$info->category}}</td> <td class='text-centre'>{{$info->title}}</td> <td class='text-centre'> <?php $actionStatus = CommonFunction::actionStatus($info->id); ?> @if($actionStatus) <span style="color:green">Taken</span> @else <span style="color:red">Not Taken</span> @endif </td> <td class='text-centre'> <?php $approvalStatus = CommonFunction::approvalStatus($info->id); ?> @if($approvalStatus) <span style="color:green"> Approved</span> @else <span style="color:red">Not Approved</span> @endif </td> <td><a class="btn btn-primary" href="singleReport/{{$info->id}}">Details</a></td> </tr> @endforeach </tbody> </table> </div> </div> </div>