 @php
 $message_name = \App\Models\Message::orderBy('id','ASC')->get();
 $quick_access = \App\Models\QuickAccess::orderBy('id','ASC')->get();
 $resources = \App\Models\Resource::orderBy('id','ASC')->get();
 @endphp
 <!-------Start Footer Section------>
 <footer class="text-center text-lg-start " style="background-color: #075e89;" data-aos="flip-up" data-aos-easing="ease-out-cubic" data-aos-duration="2000">
     <!-- Section: Links  -->
     <section class="p-2">
         <div class="container text-start text-md-start mt-5 footer-content">
             <!-- Grid row -->
             <div class="row mt-3">
                 <!-- Grid column -->
                 <div class="col-md-3 col-lg-3 col-xl-3 mx-auto mb-4">
                     <!-- Content -->
                     <h6 class="text-uppercase fw-bold">@if(session()->get('language') == 'nepali') {{\Stichoza\GoogleTranslate\GoogleTranslate::trans('Find Us', 'ne')}} @else Find Us @endif</h6>
                     <hr class="mb-2 mt-0 d-inline-block mx-auto" style="width: 60px; background-color: #e4e6e7; height: 2px" />
                     <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1759.360971185479!2d82.29593395635959!3d28.124502682620946!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3997f4815a9dc225%3A0x63ad2a2695a7b6fa!2sSecondary%20School%20Tulsipur%20Center!5e0!3m2!1sen!2snp!4v1674918729333!5m2!1sen!2snp" height="120" width="100%" style="border:0;" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>

                 </div>
                 <!-- Grid column -->

                 <!-- Grid column -->
                 <div class="col-md-3 col-lg-3 col-xl-3 mx-auto mb-4">
                     <!-- Links -->
                     <h6 class="text-uppercase fw-bold">@if(session()->get('language') == 'nepali') {{\Stichoza\GoogleTranslate\GoogleTranslate::trans('About', 'ne')}} @else About Us @endif</h6>
                     <hr class="mb-2 mt-0 d-inline-block mx-auto" style="width: 60px; background-color: #e5e4e7; height: 2px" />
                     @foreach($message_name as $name)
                     <p><a href="{{url('/message-view',$name->id.'/'.$name->message_heading)}}"> @if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans($name->message_heading, 'ne')  }} @else {{$name->message_heading}} @endif</a></p>
                     @endforeach

                 </div>
                 <!-- Grid column -->
                 <!-- Grid column -->
                 <div class="col-md-3 col-lg-3 col-xl-3 mx-auto mb-4">
                     <!-- Links -->
                     <h6 class="text-uppercase fw-bold">@if(session()->get('language') == 'nepali') {{\Stichoza\GoogleTranslate\GoogleTranslate::trans('Resources', 'ne')}} @else Resources @endif</h6>
                     <hr class="mb-2 mt-0 d-inline-block mx-auto" style="width: 60px; background-color: #e5e4e7; height: 2px" />
                    @foreach($resources as $resource)
                     <p>
                         <a href="{{$resource->link}}">@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans($resource->name, 'ne') }} @else {{$resource->name}} @endif</a>
                     </p>
                     @endforeach
                   
                 </div>
                 <!-- Grid column -->
                 <!-- Grid column -->
                 <div class="col-md-3 col-lg-3 col-xl-3 mx-auto mb-4">
                     <!-- Links -->
                     <h6 class="text-uppercase fw-bold">@if(session()->get('language') == 'nepali') {{\Stichoza\GoogleTranslate\GoogleTranslate::trans('Quick links', 'ne')}} @else Quick links @endif</h6>
                     <hr class="mb-2 mt-0 d-inline-block mx-auto" style="width: 60px; background-color: #e5e4e7; height: 2px" />
                     @foreach($quick_access as $item)
                     <p>
                         <a href="{{$item->link}}">@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans($item->name, 'ne') }} @else {{$item->name}} @endif</a>
                     </p>
                     @endforeach
                 </div>
                 <!-- Grid column -->


             </div>
             <!-- Grid row -->
         </div>
     </section>
     <!-- Section: Links  -->

     <!-- Copyright -->
     <div class="text-white footer-bottom p-3 text-center" style="background-color: rgba(0, 0, 0, 0.2)">
         <a class="text-white me-5" href="">@if(session()->get('language') == 'nepali') {{\Stichoza\GoogleTranslate\GoogleTranslate::trans('© 2023 Madhyamik Bidhyalaya Tulsipur Center', 'ne')}} @else © 2023 Madhyamik Bidhyalaya Tulsipur Center @endif </a>
         <a class="text-white float-end" href="https://www.facebook.com/sushil.kc.161446/">@if(session()->get('language') == 'nepali') {{\Stichoza\GoogleTranslate\GoogleTranslate::trans('Sushil K.C.', 'ne')}} @else Developed By <u class="user-link">Sushil K.C.</u> @endif </a>
     
        </div>
      
     <!-- Copyright -->
     </div>
 </footer>
 <!-------End Footer Section------>