@extends('layouts.app')
@section('content')
    @foreach ($data['moduleItems'] as $item)
        <section class="page_title_wrap bottom_border">
       
            <div class="container">
                <h3>{{ $item['title'] }}</h3>
            </div>
            </section>
            <div class="container">
            <div class="row mb-5 mt-5">
           
                <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 text-center">
                                            <h2>D.EL.ED</h2>
                                        </div>
                                        <table class="table table-bordered ">
                                            <thead>
                                                <tr>
                                                    <th>SI.No </th>
                                                    <th> Session</th>
                                                    <th>Download</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                @foreach ($item['dynamicSections'] as $dynamicSection)
                                                <tr>
                                                    <td>{{ $dynamicSection['sequence'] }}</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>
    @endforeach
@endsection
