<div class="row">
    <div class="col-12 d-flex justify-content-center">
        <h5>Create Documents</h5>
    </div>
    <hr>
    <div class="col-6">
        <div class="form-group">
            <label for="title">Title</label>
            <input type="text" class="form-control" id="txtTitle" placeholder="Enter title">
        </div>
    </div>
    <div class="col-6">
        <div class="form-group">
            <label>Select File</label>
            <input type="file" class="form-control" id="txtDocument">
        </div>
    </div>
    <div class="col-12 d-flex justify-content-end mt-3">
        <button type="button" class="btn btn-primary" id="btnCreateDocument">Create Document</button>
    </div>
    <br>
    <hr>
    <table class="table table-sm datatableView">
        <thead>
            <tr>
                <th>#</th>
                <th>ID</th>
                <th>Staff Name</th>
                <th>Date & Time</th>
                <th>Document Name</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php
                $count = 1;
            ?>
            <?php $__currentLoopData = $getMemberDocument; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $documents): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($count++); ?></td>
                    <td><?php echo e($documents->randomId); ?></td>
                    <td>
                        <?php $__currentLoopData = $getAllUser; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($user->id == $documents->createdBy): ?>
                                <?php echo e($user->name); ?>

                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </td>
                    <td><?php echo e($documents->created_at); ?></td>
                    <td><?php echo e($documents->documentName); ?></td>
                    <td class=" text-center"> <a href="<?php echo e(asset($documents->documentPath)); ?>"
                            class="btn btn-success btn-sm" download>Download</a></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>
<?php /**PATH /Users/anlex/Desktop/untitled folder/ngo/resources/views/pages/allpages/memberpages/documents_details.blade.php ENDPATH**/ ?>