<?
/**
 * @package     DOCman
 * @copyright   Copyright (C) 2019 Timble CVBA. (http://www.timble.net)
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.joomlatools.com
 */
defined('FOLIOKIT') or die; ?>

<? if (can('add')): ?>
    <?= helper('behavior.modal'); ?>
<? endif; ?>

<?= helper('ui.load'); ?>

<div class="docman_table_layout docman_table_layout--default">

    <? // Toolbar ?>
    <ktml:toolbar type="actionbar" />

    <? foreach ($documents as $document): ?>
    <? //Import child template from document view ?>
    <?= import('com://site/docman/document/default.html', [
        'document'    => $document,
        'button_size' => 'mini'
        ])?>
    <? endforeach ?>

</div>