<?php $__env->startSection('metatags'); ?>
<meta name="description" content="<?php echo str_limit($noticia->content); ?>">
<meta property="og:title" content="<?php echo $noticia->title; ?> | ACAREG Braga">
<meta property="og:description" content="<?php echo str_limit($noticia->titulo, 150); ?>">
<meta property="og:image" content="<?php echo asset('assets/img/og_image.png'); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('title'); ?>
<?php echo str_limit($noticia->title, 150); ?> | 
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-8 col-lg-9">
        <h3 class="margin-top-10 margin-bottom-30"><?php echo $noticia->title; ?></h3>
        <?php if($noticia->fileurl): ?>
        <div class="article-img">
            <div class="date-label">
                <div class="day"><?php echo $noticia->created_at->format('d'); ?></div>
                <div class="month"><?php echo $noticia->created_at->format('M'); ?></div>
                <div class="year"><?php echo $noticia->created_at->format('Y'); ?></div>
            </div>
            <span class="zoom">
                <a href="<?php echo $noticia->getLarge(); ?>">
                    <img src="<?php echo $noticia->getCroppa(600, 260); ?>" alt="<?php echo $noticia->title; ?>" class="width-100 margin-bottom-15">
                </a>
            </span>
        </div>
        <?php endif; ?>
        <p class="article-body"><?php echo nl2br($noticia->content); ?></p>
        <div class="attachments">

            <div class="spacer-15"></div>
            <?php if(!$noticia->attachments->isEmpty()): ?>
            <h4>Galeria de fotografias</h4>
            <ul class="list-inline attachments">
                <?php foreach($noticia->attachments as $attachment): ?>
                <li>
                    <a href="<?php echo asset($attachment->fileurl); ?>">
                        <img src="<?php echo asset($attachment->getCroppa(80,65)); ?>"/>
                    </a>
                </li>
                <?php endforeach; ?>
            </ul>
            <?php endif; ?>
        </div>
        <div class="spacer-30"></div>
    </div>
    <div class="col-md-4 col-lg-3">
        <?php echo $__env->make('noticias.relacionado', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script>
    $(window).ready(function () {

        $('.zoom').lightGallery({
            showThumbByDefault: false,
            download: false
        });

        $('.attachments').lightGallery({
            selector: '.attachments a',
            showThumbByDefault: false,
            download: false
        });

    });
</script>
<?php $__env->stopSection(); ?>