@extends('layouts.app')
@section('content')
<section class="page_title_wrap bottom_border">
    <div class="container">
        <h3>{{ $data['title'] }}</h3>
    </div>
</section>
<section class="land_info_wrap">
    <div class="container">
        <div class="row">
            <div class="col-lg-6 col-sm-6 col-xs-12">
                <div class="tab-content" id="audit-report-tabContent">
                    @foreach ($data['moduleItems'] as $ik => $item)
                    @php $active = ($ik==0) ? 'show active' : ''; @endphp
                    <div class="tab-pane {{$active}}" id="balanceInfo{{$ik}}" role="tabpanel"
                        aria-labelledby="balanceTab{{$ik}}">
                        @if (count($item['dynamicSections']) > 0)
                        <div class="bd-border">
                            <div class="bd-border-text">
                                <h2>B.ED</h2>
                            </div>
                            <table class="table table-bordered ">
                                <thead>
                                    <tr>
                                        <th>Academic Session</th>
                                        <th> Semester</th>
                                        <th>Download</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($item['dynamicSections'] as $dynamicSection)
                                    <tr>
                                        <td>{{ $dynamicSection['description'] }}</td>
                                        <td>{{ $dynamicSection['title'] }}</td>
                                        <td><a href="{{ $dynamicSection['file'] }}" target="_blank"
                                                class="btn-border">Download</a></td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                        </div>
                        @endif
                    </div>
                    @endforeach
                </div>
            </div>
            <div class="col-lg-6 col-sm-6 col-xs-12">
                <div class="tab-content" id="audit-report-tabContent">
                    @foreach ($data['moduleItems'] as $ik => $item)
                    @php $active = ($ik==0) ? 'show active' : ''; @endphp
                    <div class="tab-pane {{$active}}" id="balanceInfo{{$ik}}" role="tabpanel"
                        aria-labelledby="balanceTab{{$ik}}">
                        @if (count($item['dynamicSections']) > 0)
                        <div class="bd-border">
                            <div class="bd-border-text">
                                <h2>D.EL.ED</h2>
                            </div>
                            <table class="table table-bordered ">
                                <thead>
                                    <tr>
                                        <th>Academic Session</th>
                                        <th> Semester</th>
                                        <th>Download</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($item['dynamicSections'] as $dynamicSection)
                                    <tr>
                                        <td>{{ $dynamicSection['description'] }}</td>
                                        <td>{{ $dynamicSection['title'] }}</td>
                                        <td><a href="{{ $dynamicSection['file'] }}" target="_blank"
                                                class="btn-border">Download</a></td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                        </div>
                        @endif
                    </div>
                    @endforeach
                </div>
            </div>
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="tab-content" id="audit-report-tabContent">
                    @foreach ($data['moduleItems'] as $ik => $item)
                    @php $active = ($ik==0) ? 'show active' : ''; @endphp
                    <div class="tab-pane {{$active}}" id="balanceInfo{{$ik}}" role="tabpanel"
                        aria-labelledby="balanceTab{{$ik}}">
                        @if (count($item['dynamicSections']) > 0)
                        <div class="bd-border">
                            <div class="bd-border-text">
                                <h2>Teachers & Staff</h2>
                            </div>
                            <table class="table table-bordered ">
                                <thead>
                                    <tr>
                                        <th>SI.No</th>
                                        <th>Academic Session</th>
                                        <th>Details (Month wise)</th>
                                        <th>Download</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($item['dynamicSections'] as $dynamicSection)
                                    <tr>
                                        <td>{{ $dynamicSection['sequence'] }}</td>
                                        <td>{{ $dynamicSection['description'] }}</td>
                                        <td>{{ $dynamicSection['title'] }}</td>
                                        <td><a href="{{ $dynamicSection['file'] }}" target="_blank"
                                                class="btn-border">Download</a></td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                        </div>
                        @endif
                    </div>
                    @endforeach
                </div>
            </div>
        </div>
    </div>
</section>
@endsection
<style type="text/css">
.nav-link {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #ededed;
    margin-bottom: 5px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #3476bc !important;
}

@media (max-width: 768px) {
    .nav {
        margin-bottom: 20px !important;
    }
}
</style>