I always have error for first array in table.
  foreach ($status_lines as $status_line) {
    $xxx [] = $status_line -> status ;
  }
  if (count(array_unique($xxx)) == 1 && end($xxx) == 'REJECTED') { ?>
    <b class="text-gray"> N / A </b>
  <?php }
  elseif (count(array_unique($xxx)) == 1 && end($xxx) == 'NOT APPROVED') { ?>
    <b class="text-gray"> N / A </b>
  <?php }
it resulting : Message: Undefined variable: xxx
but for the second line to the end in table is OK ...
 
     
     
    