@foreach($articles as $article)
    <li class="list-group-item">
        @if(isset($add_article) && $add_article)
            <input type="hidden" name="articles[corp_news][]" value="{{ isset($article->id) && in_array($article->id,$corp_articles) ? $article->id : '' }}"/>
            <a class="list-group-item-link" target="_blank" href="{{ $article->link }}" style="color: #333; text-decoration: none;">{{ $article->title }}</a>
            <span class="select-article pull-right glyphicon{{ isset($article->id) && in_array($article->id,$corp_articles) ? ' glyphicon-ok' : '' }}" onclick="selectArticle(this)"></span>
            <span class="article-id" style="display:none;">{{ isset($article->id) ? $article->id : '' }}</span>
        @elseif (isset($article->id) && in_array($article->id,$corp_articles))
            <a target="_blank" href="{{ $article->link }}" style="color: #333; text-decoration: none;">{{ $article->title }}</a>
        @endif
    </li>
@endforeach
