<li data-id="<?php echo $foto->id; ?>" >
    <a href="<?php echo asset($foto->caminho); ?>" class="image-item" data-sub-html="<?php echo e($foto->legenda); ?>">

        <img src="<?php echo asset($foto->getThumb()); ?>" alt="<?php echo $foto->designacao; ?>" width="200px" class="">
        <div class="tags">
            <span class="label-holder">
                <?php if($foto->isCover): ?>
                <span class="label label-info">Capa</span>
                <?php endif; ?>
            </span>
            <span class="label-holder">
                <?php if($foto->destaque): ?>
                <span class="label label-warning"><i class="fa fa-star"></i></span>
                <?php endif; ?>
            </span>
        </div>
        <div class="text">
            <div class="inner"><?php echo $foto->legenda; ?></div>
        </div>
    </a>
    <div class="tools tools-right">
        <a href="#modal-edit" 
            data-toggle="modal" 
            data-action="<?php echo route('admin.galeria.fotos.update', array($foto->album_id, $foto->id)); ?>"  
            data-legenda="<?php echo e($foto->legenda); ?>" 
            data-autor="<?php echo e($foto->autor); ?>"
            data-destaque="<?php echo (int) $foto->destaque; ?>"
            data-capa="<?php echo (int) $foto->isCover; ?>">
            <i class="fa fa-pencil"></i>
        </a>
        <a href="<?php echo route('admin.galeria.fotos.destroy', array($foto->album_id, $foto->id)); ?>" data-method="delete" data-confirm="Tem a certeza que prentende remover a foto?">
            <i class="fa fa-times text-danger"></i>
        </a>
    </div>
</li>