<h4 class="header large lighter blue"><i class="fa fa-comment" aria-hidden="true"></i>&nbsp;Submited Answers</h4>
<div class="clearfix hidden-print">
 <span class="easy-link-menu">
        <a class="btn-primary btn-sm bulk-action-btn" attr-action-type="Approve"><i class="fa fa-check" aria-hidden="true"></i>&nbsp;Approve</a>
        <a class="btn-warning btn-sm bulk-action-btn" attr-action-type="Reject"><i class="fa fa-remove" aria-hidden="true"></i>&nbsp;Reject</a>
        <a class="btn-danger btn-sm bulk-action-btn" attr-action-type="Delete"><i class="fa fa-trash" aria-hidden="true"></i>&nbsp;Delete</a>
    </span>

    <span class="pull-right tableTools-container"></span>
</div>
<div class="table-header hidden-print">
    Student Submitted Answers Record list on table. Filter list using the search box as you wish.
</div>
<div>
    <?php echo Form::open(['route' => 'assignment.answer.bulk-action', 'id' => 'bulk_action_form']); ?>

        <!-- div.table-responsive -->
        <div class="table-responsive">
            <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                <thead>
                <tr >
                    <th class="center" width="5%" >
                        <label class="pos-rel">
                            <input type="checkbox" class="ace" />
                            <span class="lbl"></span>
                        </label>
                    </th>
                    <th >S.N.</th>
                    <th>Reg. Num..</th>
                    <th>Name</th>
                    <th>Answer</th>
                    <th>Attachment</th>
                    <th>Status</th>
                </tr>
                </thead>
                <tbody>
                    <?php if(isset($data['answers']) && $data['answers']->count() > 0): ?>
                        <?php ($i=1); ?>
                        <?php $__currentLoopData = $data['answers']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $answer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td class="center first-child">
                                    <label>
                                        <input type="checkbox" name="chkIds[]" value="<?php echo e($answer->id, false); ?>" class="ace" />
                                        <span class="lbl"></span>
                                    </label>
                                </td>
                                <td><?php echo e($i, false); ?></td>
                                <td><?php echo $answer->reg_no; ?></td>
                                <td><?php echo e($answer->first_name.' '. $answer->middle_name.' '.$answer->last_name, false); ?></td>
                                <td>
                                    <a href="<?php echo e(route('assignment.answer.view',['id'=>$data['assignment']->id,'answer' => $answer->id]), false); ?>" class="btn btn-primary btn-mini" >
                                        <i class="ace-icon fa fa-eye bigger-120"></i>
                                        View Answer Detail
                                    </a>
                                </td>
                                <td>
                                    <?php if($answer->file): ?>
                                        <a href="<?php echo e(asset('assignments'.DIRECTORY_SEPARATOR.'answers'.DIRECTORY_SEPARATOR.$answer->file), false); ?>" target="_blank" class="btn btn-success btn-mini" >
                                            <i class="ace-icon fa fa-download bigger-120"></i>
                                            Attachment File
                                        </a>
                                    <?php endif; ?>

                                </td>
                                <td>
                                    <?php if($answer->approve_status == 1): ?>
                                        <button class="btn btn-primary btn-minier dropdown-toggle" >
                                            Approve
                                        </button>
                                    <?php elseif($answer->approve_status == 2): ?>
                                        <button class="btn btn-danger btn-minier dropdown-toggle" >
                                        Rejected
                                        </button>
                                    <?php else: ?>
                                        <button class="btn btn-info btn-minier dropdown-toggle" >
                                            Pending
                                        </button>
                                    <?php endif; ?>
                                </td>
                            </tr>
                            <?php ($i++); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <tr>
                            <td colspan="11">No <?php echo e($panel, false); ?> data found. Please Filter <?php echo e($panel, false); ?> to show. </td>
                        </tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    <?php echo Form::close(); ?>

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