<div class="answers-form">
    <?php if(getenvcong('p-easycomment')=='on'): ?>
            <!-- easyComment Content Div -->
    <div id="easyComment_Content"></div>
    <br><br>
    <!-- easyComment -->
    <script type="text/javascript">
        // CONFIGURATION VARIABLES
        var easyComment_ContentID = 'Post_<?php echo e($post->id); ?>';
        var easyComment_FooterLinks = 'Off'; // Disable footer links from the easyComment script for Buzzy Demo


        /* * * DON'T EDIT BELOW THIS LINE * * */
        var easyComment_Theme = '<?php echo e(getenvcong('easyCommentTheme') ? getenvcong('easyCommentTheme') : 'Default'); ?>'; // Title of easyComment area. Yu can change this if you want.
        var easyComment_Title = '<?php echo e(getenvcong('easyCommentTitle') ? getenvcong('easyCommentTitle') : 'Comments'); ?>'; // Title of easyComment area. Yu can change this if you want.

        var easyComment_userid = '<?php echo e(Auth::check() ? Auth::user()->id : ''); ?>';
        var easyComment_username = '<?php echo e(Auth::check() ? Auth::user()->username : ''); ?>';
        var easyComment_usericon = '<?php echo e(Auth::check() ? makepreview(Auth::user()->icon, 's', 'members/avatar') : ''); ?>';
        var easyComment_profillink = '<?php echo e(Auth::check() ? action('UsersController@index', [Auth::user()->username_slug ]) : ''); ?>';

        var easyComment_Domain = '<?php echo e(getenvcong('easyCommentcode')); ?>';

        (function() {
            var EC = document.createElement('script');
            EC.type = 'text/javascript';
            EC.async = true;
            EC.src = easyComment_Domain + 'plugin/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(EC);
        })();
    </script>

    <?php endif; ?>

    <?php if(getenvcong('p-facebookcomments')=='on'): ?>
        <div class="colheader">
            <h1><?php echo e(trans('index.conversations')); ?></h1>
        </div>
        <div class="fb-comments" data-href="<?php echo e(Request::url()); ?>" data-numposts="5" data-width="100%" style="width: 100%"></div>
        <br><br>
    <?php endif; ?>
    <?php if(getenvcong('p-disquscomments')=='on'): ?>
        <div class="colheader">
            <h1><?php echo e(trans('index.disqusconversations')); ?></h1>
        </div>
        <div id="disqus_thread"></div><script>(function() {   var d = document, s = d.createElement('script');s.src = '//<?php echo getenvcong('DisqussCommentcode'); ?>.disqus.com/embed.js';s.setAttribute('data-timestamp', +new Date());(d.head || d.body).appendChild(s);})();</script><noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>


        <br><br>
    <?php endif; ?>

</div>
