@extends('layouts.app')
@section('metades')
    <meta name="description" content="{{ $data['metaDescription'] }}" />
    <meta name="author" content="Kultikri Teacher Training Institute of Higher Studies (KTTIHS)" />
    <meta name="keywords" content="Kultikri Teacher Training Institute of Higher Studies (KTTIHS)" />
@endsection
@section('title')
    <title>{{ $data['metaTitle'] }}</title>
@endsection
@section('content')
    @foreach ($data['moduleItems'] as $item)
        <div class="container">
            <div class="w-100 mt-3 text-md-center title-bx1">
                <h3 class="one8">{{ $item['title'] }}</h3>
            </div>
            <div class="w-100 mt-3 text-md-center">
                <h6 class="one8">{{ $item['shortDescription'] }}</h6>
            </div>
            <div class="w-100 mt-3 text-md-center">
                <h5 class="one8">{{ $item['longDescription'] }}</h5>
            </div>
        </div>
        @if (count($item['dynamicSections']) > 0)
            @foreach ($item['dynamicSections'] as $dynamicSection)
                <div class="container mb-5 main-gallery">
                    <div class="container mb-3">
                        <p>{{ $dynamicSection['description'] }}.</p>
                    </div>
                    <div class="container mb-3">
                        <h6>{{ $dynamicSection['title'] }}</h6>
                    </div>
                    <div class="container mb-3">
                        <p>{!! $dynamicSection['link'] !!}</p>
                    </div>
                </div>
            @endforeach
        @endif
    @endforeach
@endsection
