
<?php
    $socialLinks = [
        'Facebook' => 'https://www.facebook.com/',
        'Twitter' => 'https://twitter.com/',
        'Twitch' => 'https://www.twitch.tv/',
        'YouTube' => 'https://www.youtube.com/channel/',
        'Instagram' => 'https://www.instagram.com/',
        'Discord' => 'https://www.discord.gg/',
    ]
?>
@foreach($socialLinks as $title => $url)
    <?php $name = strtolower($title) ?>
    @if (Config::get('app.'.$name))
        @if (isset($wrapperTag))
            {!! '<'.$wrapperTag.'>' !!}
        @endif
        <a class="social-link" href="{{ $url }}{{ Config::get('app.'.$name) }}" target="_blank" title="{{ $title }}">{!! HTML::fontIcon($name) !!}</a>
        @if (isset($wrapperTag))
            {!! '</'.$wrapperTag.'>' !!}
        @endif
    @endif
@endforeach


<?php
    $socialLinks = [
        'Facebook' => 'https://www.facebook.com/',
        'Twitter' => 'https://twitter.com/',
        'Twitch' => 'https://www.twitch.tv/',
        'YouTube' => 'https://www.youtube.com/channel/',
        'Instagram' => 'https://www.instagram.com/',
        'Discord' => 'https://www.discord.gg/',
    ]
?>
@foreach($socialLinks as $title => $url)
    <?php $name = strtolower($title) ?>
    @if (Config::get('app.'.$name))
        @if (isset($wrapperTag))
            {!! '<'.$wrapperTag.'>' !!}
        @endif
        <a class="social-link social-link-{{ strtolower($title) }}" href="{{ $url }}{{ Config::get('app.'.$name) }}" target="_blank" title="{{ $title }}">{!! HTML::fontIcon($name) !!}</a>
        @if (isset($wrapperTag))
            {!! '</'.$wrapperTag.'>' !!}
        @endif
    @endif
@endforeach

Add CSS class names depending on the type
Add CSS class names depending on the type