<th>EDP Title</th> <th>Details</th> </tr> </thead> <tbody> <?php //check whether user has full access notification $fullAccess = CommonFunction::hasPermission('sia_notification_full', Auth::user()->emp_id(), 'access'); ?> <?php $num = 0; ?> @foreach ($notApproveEdp as $info) <?php $data = CommonFunction::getEdpNumberInfo($info); ?> <?php if ($fullAccess == 'true') { $imTeamMember = 'true'; } else { //getting member in an array $members = CommonFunction::updateMultiSelection('sia_program', 'sia_number', $data->sia_number, 'team_members'); //checking whether member or not $imTeamMember = CommonFunction::isItMe($members, Auth::user()->emp_id()); } ?> @if($imTeamMember=='true') <tr>