@if($edps) @foreach ($edps as $info) <tr> <td>{{++$num}}</td> <td>{{$info->title}} [ {{$info->edp_number}} ]</td> <td>{{CommonFunction::findingTitle($info->finding_number)}} [ {{$info->finding_number}} ] </td> <td> @if($info->sc_number) {{CommonFunction::safetyTitle($info->sc_number)}} [ {{$info->sc_number}} ] @endif </td> <td> <?php $count = CommonFunction::isEdpLegalOpenionGiven($info->edp_number); ?> @if($count>0) Given @else Not Given @endif </td> <td> <?php $count = CommonFunction::isEdpApproved($info->edp_number); ?> @if($count>0) Approved @else Not Approved