<th>Email</th> <th>Mobile</th> <th>License Type</th> <th>View Details</th> </tr> </thead> <tbody> @foreach ($pels as $emp) <tr> <td class='text-centre'>{{$emp->emp_id}}</td> <td class='text-centre'>{{$emp->first_name.' '.$emp->middle_name.' '.$emp->last_name.' '}}</td> <td class='text-centre'>{{$emp->email}}</td> <td class='text-centre'>{{$emp->mobile_no}}</td> <?php $lycenseType = CommonFunction::pelLicenseType($emp->emp_id); ?> <td class='text-centre'>{{$lycenseType}}</td> <td class='text-centre'> <a target="b_link" href="compView/{{$emp->emp_id}}">view Details</a> </td> </tr> @endforeach </tbody> </table> </div><!-- /.box-body --> </div>