[ParseError] 
syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) (0)
/home/bitrix/www/local/templates/html/components/slam/news.detail/.default/template.php:1196
#0: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:815
#1: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:735
#2: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:683
#3: CBitrixComponent->includeComponentTemplate()
	/home/bitrix/www/local/components/slam/news.detail/component.php:476
#4: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:594
#5: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:653
#6: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#7: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/local/templates/html/components/slam/articles/news/detail.php:100
#8: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:720
#9: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:815
#10: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:735
#11: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:683
#12: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/local/components/slam/articles/component.php:231
#13: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:594
#14: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:653
#15: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#16: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/news/index.php:132
#17: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#18: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2