Máš tam bodkočiarku namiesto dvojbodky, tak preto:
foreach ($items as $id => $item):
echo "$id";
endforeach;
Odporučil by som ti skôr takýto zápis:foreach ($items as $id => $item) {
echo "$id";
}
Prípadne:foreach ($items as $id => $item)
echo "$id";