<div class="panel panel-default panel-navigation has-breadcrumb">
    <div class="panel-body">
        
        <?php if($folder->id): ?>
        <a href="<?php echo route('admin.documents.index', $folder->parent_id); ?>" class="back-button pull-left">
            <span class="fa fa-angle-left"></span>
        </a>
        <?php endif; ?>
        
        <div class="pull-left">
            <h4><span class="fa fa-folder text-yellow"></span> <?php echo $folder->title; ?></h4>
            <ol class="breadcrumb hidden-xs">
                <?php foreach($folderBreadcrumb as $breadcrumb): ?>
                <?php if($breadcrumb['id'] == $folder->id): ?>
                <li class="active"><?php echo $breadcrumb['title']; ?></li>
                <?php else: ?>
                <li><a href="<?php echo route('admin.documents.index', array('folder' => $breadcrumb['id'])); ?>"><?php echo $breadcrumb['title']; ?></a></li>
                <?php endif; ?>
                <?php endforeach; ?>
            </ol>
        </div>
        <div class="pull-right">
            <a href="<?php echo route('admin.documents.create', array('folder' => $folder->id, 'content' => 'folder')); ?>" class="btn btn-sm btn-success margin-top-5 margin-right-5 pull-right" data-toggle="modal" data-target="#modal-remote">
                <i class="fa fa-folder"></i> Nova Pasta
            </a>
            <a href="<?php echo route('admin.documents.create', array('folder' => $folder->id, 'content' => 'document')); ?>" class="btn btn-sm btn-success margin-top-5 margin-right-5 pull-right" data-toggle="modal" data-target="#modal-remote">
                <i class="fa fa-file-text-o"></i> Novo Documento
            </a>
        </div>
    </div>
</div>

<div class="table-responsive">
    <table id="table-documents-nav" class="table table-bordered table-striped dataTable">
        <thead>
            <tr>
                <th style="width: 1%">#</th>
                <th style="width: 1%"></th>
                <th>Documento</th>
                <th style="width: 1%">Tamanho</th>
                <th style="width: 100px">Criado em</th>
                <th style="width: 60px"></th>
            </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>