<div class="row">
    <div class="col-xs-12">
        <?php echo $__env->make('includes.data_table_header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <!-- div.table-responsive -->
        <div>
            <?php echo Form::open(['route' => $base_route.'.bulk-action', 'id' => 'bulk_action_form']); ?>

                <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th class="center">
                                <label class="pos-rel">
                                    <input type="checkbox" class="ace" />
                                    <span class="lbl"></span>
                                </label>
                            </th>
                            <th>S.N.</th>
                            <th>Sem/Sec</th>
                            <th>Subject</th>
                            <th>Title</th>
                            <th>Uploaded By</th>
                            <th>Date&Time</th>
                            <th>Status</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if(isset($data['download']) && $data['download']->count() > 0): ?>
                            <?php ($i=1); ?>
                            <?php $__currentLoopData = $data['download']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $download): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="center first-child">
                                        <label>
                                            <input type="checkbox" name="chkIds[]" value="<?php echo e(encrypt($download->id), false); ?>" class="ace" />
                                            <span class="lbl"></span>
                                        </label>
                                    </td>
                                    <td><?php echo e($i, false); ?></td>
                                    <td><?php echo e(isset($download->semesters_id)?ViewHelper::getSemesterById($download->semesters_id):'', false); ?></td>
                                    <td><?php echo e(isset($download->subjects_id)?ViewHelper::getSubjectById($download->subjects_id):'', false); ?></td>
                                    <td>
                                        <a href="<?php echo e(asset('downloads'.DIRECTORY_SEPARATOR.$download->file), false); ?>" target="_blank">
                                            <?php echo e($download->title, false); ?>

                                        </a>
                                    </td>
                                    <td> <?php echo e($download->created_by_name, false); ?> </td>
                                    <td> <?php echo e($download->created_at, false); ?> </td>
                                    <td>
                                        <div class="btn-group">
                                            <button data-toggle="dropdown" class="btn btn-primary btn-minier dropdown-toggle <?php echo e($download->status == 'active'?"btn-info":"btn-warning", false); ?>" >
                                                <?php echo e($download->status == 'active'?"Active":"In Active", false); ?>

                                                <span class="ace-icon fa fa-caret-down icon-on-right"></span>
                                            </button>

                                            <ul class="dropdown-menu">
                                                <li>
                                                    <a href="<?php echo e(route($base_route.'.active', ['id' => encrypt($download->id)]), false); ?>"><i class="fa fa-check" aria-hidden="true"></i></a>
                                                </li>

                                                <li>
                                                    <a href="<?php echo e(route($base_route.'.in-active', ['id' => encrypt($download->id)]), false); ?>"><i class="fa fa-remove" aria-hidden="true"></i></a>
                                                </li>
                                            </ul>
                                        </div>

                                    </td>
                                    <td>
                                        <div class="action-buttons">
                                            <a href="<?php echo e(asset('downloads'.DIRECTORY_SEPARATOR.$download->file), false); ?>" target="_blank" class="btn btn-primary btn-minier">
                                                <i class="ace-icon fa fa-download bigger-130"></i>
                                            </a>
                                            

                                            <a href="<?php echo e(route($base_route.'.edit', ['id' => encrypt($download->id)]), false); ?>" class="btn btn-success btn-minier">
                                                <i class="ace-icon fa fa-pencil bigger-130"></i>
                                            </a>

                                            <a href="<?php echo e(route($base_route.'.delete', ['id' => encrypt($download->id)]), false); ?>" class="btn btn-danger btn-minier bootbox-confirm" >
                                                <i class="ace-icon fa fa-trash-o bigger-130"></i>
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                <?php ($i++); ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <tr>
                                <td colspan="6">No <?php echo e($panel, false); ?> data found. Please Filter <?php echo e($panel, false); ?> to show. </td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            <?php echo Form::close(); ?>

        </div>
    </div>
</div><?php /**PATH C:\xampp\htdocs\larvel-project\collegeaccounting\resources\views/download/includes/table.blade.php ENDPATH**/ ?>