<tr>
    <th class="text-center cursor-pointer">
        <button class="btn btn-warning btn-sm" type="button">
            <b class="glyphicon glyphicon-sort"></b>
            <b class="numero-ordenado"><?php echo e($indice + 1); ?></b>
        </button>
        <?php echo Form::hidden('orden[]', $galeria->id); ?>

    </th>
    <td class="text-center">
        <button type="button" class="btn btn-default btn-block btn-vista-previa" data-img="<?php echo e($galeria->imagen); ?>">
            <b class="glyphicon glyphicon-search"></b>
        </button>
    </td>
    <td><?php echo e($galeria->titulo); ?></td>
    <td><?php echo e(str_limit(strip_tags($galeria->texto), 80)); ?></td>
    <td><?php echo e($galeria->autor); ?></td>
    <td><?php echo e($galeria->fecha); ?></td>
    <?php if($galeria->tipo==\App\Models\Colaboracion::COLABORACION_CARTA_DIRECTOR): ?>
        <td>Cartas al director</td>
    <?php elseif($galeria->tipo==\App\Models\Colaboracion::COLABORACION_OPINION): ?>
        <td>Opinión</td>
    <?php elseif($galeria->tipo==\App\Models\Colaboracion::COLABORACION_DENUNCIA): ?>
        <td>Denuncia</td>
    <?php endif; ?>

    <?php if($galeria->estado==\App\Models\Colaboracion::ESTADO_INACTIVO): ?>
        <td><?php echo e('NO'); ?></td>
    <?php elseif($galeria->estado==\App\Models\Colaboracion::ESTADO_ACTIVO): ?>
        <td><?php echo e('SI'); ?></td>
    <?php endif; ?>
    <td>
        <button
                type="button"
                id="btn-editar-colaboracion"
                data-href="<?php echo e(route('post-admin-editar-colaboracion', ['id' => $galeria->id])); ?>"
                data-title="Editar Colaboración"
                class="btn btn-primary btn-sm btn-block">
            <b class="glyphicon glyphicon-edit"></b>&nbsp;Editar
        </button>
    </td>
    <td>
        <button
                type="button"
                data-id="<?php echo e($galeria->id); ?>"
                data-href="<?php echo e(route('post-admin-eliminar-colaboracion', ['id' => $galeria->id])); ?>"
                data-title="Eliminar Colaboracion"
                data-text="Eliminar :<hr><b><?php echo e($galeria->titulo); ?></b>"
                class="btn btn-danger btn-sm btn-block btn-eliminar">
            <b class="glyphicon glyphicon-remove"></b>&nbsp;Eliminar
        </button>
    </td>
</tr>