<h4 class="header large lighter blue"><i class="fa fa-list" aria-hidden="true"></i>&nbsp;Exam List</h4>
<div class="clearfix">
    <span class="pull-right tableTools-container"></span>
</div>
{{--<div class="table-header">
    {{ $panel }}  Record list on table. Filter {{ $panel }} using the filter.
</div>--}}
<!-- div.table-responsive -->
<div class="table-responsive">
        <table id="dynamic-table" class="table table-striped table-bordered table-hover">
            <thead>
                <tr>
                    <th>{{ __('common.s_n')}}</th>
                    <th>Year</th>
                    <th>Month</th>
                    <th>Exam</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                @if (isset($data['schedule_exams']) && $data['schedule_exams']->count() > 0)
                    @php($i=1)
                    @foreach($data['schedule_exams'] as $exam)
                        <tr>
                            <td>{{ $i }}</td>
                            <td>{{ ViewHelper::getYearById($exam->years_id) }}</td>
                            <td>{{ ViewHelper::getMonthById($exam->months_id) }}</td>
                            <td>{{ ViewHelper::getExamById($exam->exams_id) }}</td>
                            <td>
                                <div class="clearfix hidden-print " >
                                    <div class="easy-link-menu align-center">
                                        <a href="{{ route('user-guardian.students.exam-schedule', ['id'=>Crypt::encryptString($data['student_id']),'year' => $exam->years_id,
                                        'month' => $exam->months_id, 'exam' => $exam->exams_id,'faculty' => $exam->faculty_id,
                                         'semester' => $exam->semesters_id]) }}" title="AdmitCard" class="btn-primary btn-sm"  target="_blank">
                                            <i class="fa fa-list-alt" aria-hidden="true"></i> Schedule
                                        </a>
                                        &nbsp;&nbsp;&nbsp;
                                        <a href="{{ route('user-guardian.students.exam-admit-card', ['id'=>Crypt::encryptString($data['student_id']),'year' => $exam->years_id,
                                        'month' => $exam->months_id, 'exam' => $exam->exams_id,'faculty' => $exam->faculty_id,
                                         'semester' => $exam->semesters_id]) }}" title="AdmitCard" class="btn-primary btn-sm"  target="_blank">
                                            <i class="fa fa-user" aria-hidden="true"></i> Admit Card
                                        </a>
                                        &nbsp;&nbsp;&nbsp;
                                        <a href="{{ route('user-guardian.students.exam-score', ['id'=>Crypt::encryptString($data['student_id']),'year' => $exam->years_id,
                                        'month' => $exam->months_id, 'exam' => $exam->exams_id,'faculty' => $exam->faculty_id,
                                         'semester' => $exam->semesters_id]) }}" title="AdmitCard" class="btn-primary btn-sm" target="_blank">
                                            <i class="fa fa-line-chart" aria-hidden="true"></i> Grade Score
                                        </a>
                                    </div>
                                </div>
                            </td>
                        </tr>

                        @php($i++)
                    @endforeach
                @else
                    <tr>
                        <td colspan="8">No {{ $panel }} data found. Please Filter {{ $panel }} to show. </td>
                    </tr>
                @endif
            </tbody>
        </table>
</div>
</div>