@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>
        <section class="land_info_wrap">
            <div class="container">
                <div>
                    <p>{!! $item['shortDescription'] !!}</p>
                </div>
                <div>
                    <p>{!! $item['longDescription'] !!}</p>
                </div>
                @if (count($item['dynamicSections']) > 0)
                    <div class="bd-border">
                        <table class="table table-bordered ">
                            <thead>
                                <tr>
                                    <th>Sl. No</th>
                                    <th>Academic Year</th>
                                    <th>Download</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach ($item['dynamicSections'] as $dynamicSection)
                                <tr>
                                    <td>1.</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>
        </section>
    @endforeach
@endsection
