
@extends('website.layouts.app')
{{-- {{($request)}} --}}
@section('title','Gradding FAQ')
@section('main')
<main>
 
  <!-- Page Banner START -->
  <section class="bg-light py-5">
    <div class="container">
      <div class="row g-4 g-md-5 position-relative">
        <!-- SVG decoration -->
        <figure class="position-absolute top-0 start-0 d-none d-sm-block">	
          <svg width="22px" height="22px" viewBox="0 0 22 22">
            <polygon class="fill-purple" points="22,8.3 13.7,8.3 13.7,0 8.3,0 8.3,8.3 0,8.3 0,13.7 8.3,13.7 8.3,22 13.7,22 13.7,13.7 22,13.7 "></polygon>
          </svg>
        </figure>

        <!-- Title and Search -->
        <div class="col-lg-10 mx-auto text-center position-relative">
          <!-- SVG decoration -->
          <figure class="position-absolute top-50 end-0 translate-middle-y">
            <svg width="27px" height="27px">
              <path class="fill-orange" d="M13.122,5.946 L17.679,-0.001 L17.404,7.528 L24.661,5.946 L19.683,11.533 L26.244,15.056 L18.891,16.089 L21.686,23.068 L15.400,19.062 L13.122,26.232 L10.843,19.062 L4.557,23.068 L7.352,16.089 L-0.000,15.056 L6.561,11.533 L1.582,5.946 L8.839,7.528 L8.565,-0.001 L13.122,5.946 Z"></path>
            </svg>
          </figure>
          <!-- Title -->
          <h1 class="display-6">Hello, how can we help?</h1>
          <!-- Search bar -->
          <div class="col-lg-8 mx-auto text-center mt-4">
            <form class="bg-body shadow rounded p-2" method="get" action="{{route('website.faq')}}">
              <div class="input-group">
                <input class="form-control border-0 me-1" name="search" type="text" placeholder="Ask a question..." value="{{ old('search', request('search')) }}">
                <button type="submit" class="btn btn-blue mb-0 rounded">Submit</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- Page Banner END -->
  <!-- Page content START -->
  <section class="pt-5 pb-0 pb-lg-5">
    <div class="container">    
      <div class="row g-4 g-md-5">
        <!-- Main content START -->
        <div class="col-lg-8">
          <!-- Title -->
          <h3 class="mb-4">Frequently Asked Questions</h3>
          @if(!empty($faqs) && count($faqs) >0)
          <!-- FAQ START -->
          <div class="accordion accordion-icon accordion-bg-light" id="accordionExample2">
            <!-- Item -->
            @foreach ($faqs as $i => $faq)
                
            <div class="accordion-item mb-3">
              <h6 class="accordion-header font-base" id="heading-{{$i}}">
                <button class="accordion-button fw-bold rounded d-inline-block collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-{{$i}}" aria-expanded="{{($i ==0)?'true':'false'}}" aria-controls="collapse-{{$i}}">
                 {{ $faq->question }}
                </button>
              </h6>
              <!-- Body -->
              <div id="collapse-{{$i}}" class="accordion-collapse collapse {{($i ==0)?'show':''}}" aria-labelledby="heading-{{$i}}" data-bs-parent="#accordionExample2">
                <div class="accordion-body mt-3">
                  {!! $faq->answer !!}                 
                </div>
              </div>
            </div>
            @endforeach

            {{-- <!-- Item -->
            <div class="accordion-item mb-3">
              <h6 class="accordion-header font-base" id="heading-2">
                <button class="accordion-button fw-bold rounded d-inline-block collapsed d-block pe-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-2" aria-expanded="false" aria-controls="collapse-2">
                  How to edit my Profile?
                </button>
              </h6>
              <!-- Body -->
              <div id="collapse-2" class="accordion-collapse collapse" aria-labelledby="heading-2" data-bs-parent="#accordionExample2">
                <div class="accordion-body mt-3">
                  What deal evil rent by real in. But her ready least set lived spite solid. September how men saw tolerably two behavior arranging. She offices for highest and replied one venture pasture. Applauded no discovery in newspaper allowance am northward. Frequently partiality possession resolution at or appearance unaffected me. Engaged its was the evident pleased husband. Ye goodness felicity do disposal dwelling no. First am plate jokes to began to cause a scale. Subjects he prospect elegance followed no overcame possible it on. Improved own provided blessing may peculiar domestic. Sight house has sex never. No visited raising gravity outward subject my cottage Mr be.
                </div>
              </div>
            </div>

            <!-- Item -->
            <div class="accordion-item mb-3">
              <h6 class="accordion-header font-base" id="heading-3">
                <button class="accordion-button fw-bold collapsed rounded d-block pe-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-3" aria-expanded="false" aria-controls="collapse-3">
                  How much should I offer the sellers? 
                </button>
              </h6>
              <!-- Body -->
              <div id="collapse-3" class="accordion-collapse collapse" aria-labelledby="heading-3" data-bs-parent="#accordionExample2">
                <div class="accordion-body mt-3">
                  Post no so what deal evil rent by real in. But her ready least set lived spite solid. September how men saw tolerably two behavior arranging. She offices for highest and replied one venture pasture. Applauded no discovery in newspaper allowance am northward. Frequently partiality possession resolution at or appearance unaffected me. Engaged its was the evident pleased husband. Ye goodness felicity do disposal dwelling no. First am plate jokes to began to cause a scale. Subjects he prospect elegance followed no overcame possible it on. Improved own provided blessing may peculiar domestic. Sight house has sex never. No visited raising gravity outward subject my cottage Mr be. Hold do at tore in park feet near my case. Invitation at understood occasional sentiments insipidity inhabiting in. Off melancholy alteration principles old. Is do speedily kindness properly oh. Respect article painted cottage he is offices parlors.
                </div>
              </div>
            </div>

            <!-- Item -->
            <div class="accordion-item mb-3">
              <h6 class="accordion-header font-base" id="heading-4">
                <button class="accordion-button fw-bold collapsed rounded d-block pe-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-4" aria-expanded="false" aria-controls="collapse-4">
                  Installation Guide 
                </button>
              </h6>
              <!-- Body -->
              <div id="collapse-4" class="accordion-collapse collapse" aria-labelledby="heading-4" data-bs-parent="#accordionExample2">
                <div class="accordion-body mt-3">
                  <p>What deal evil rent by real in. But her ready least set lived spite solid. September how men saw tolerably two behavior arranging. She offices for highest and replied one venture pasture. Applauded no discovery in newspaper allowance am northward. Frequently partiality possession resolution at or appearance unaffected me. Engaged its was the evident pleased husband. Ye goodness felicity do disposal dwelling no. First am plate jokes to began to cause a scale. Subjects he prospect elegance followed no overcame possible it on. Improved own provided blessing may peculiar domestic. Sight house has sex never. No visited raising gravity outward subject my cottage Mr be.</p>
                  <p class="mb-0">At the moment, we only accept Credit/Debit cards and Paypal payments. Paypal is the easiest way to make payments online. While checking out your order. Be sure to fill in correct details for fast & hassle-free payment processing.</p>
                </div>
              </div>
            </div>

            <!-- Item -->
            <div class="accordion-item mb-3">
              <h6 class="accordion-header font-base" id="heading-5">
                <button class="accordion-button fw-bold collapsed rounded d-block pe-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-5" aria-expanded="false" aria-controls="collapse-5">
                  Additional Options and Services
                </button>
              </h6>
              <!-- Body -->
              <div id="collapse-5" class="accordion-collapse collapse" aria-labelledby="heading-5" data-bs-parent="#accordionExample2">
                <div class="accordion-body mt-3">
                  Post no so what deal evil rent by real in. But her ready least set lived spite solid. September how men saw tolerably two behavior arranging. She offices for highest and replied one venture pasture. Applauded no discovery in newspaper allowance am northward. Frequently partiality possession resolution at or appearance unaffected me. Engaged its was the evident pleased husband. Ye goodness felicity do disposal dwelling no. First am plate jokes to began to cause a scale. Subjects he prospect elegance followed no overcame possible it on. Improved own provided blessing may peculiar domestic. Sight house has sex never. No visited raising gravity outward subject my cottage Mr be. Hold do at tore in park feet near my case. Invitation at understood occasional sentiments insipidity inhabiting in. Off melancholy alteration principles old. Is do speedily kindness properly oh. Respect article painted cottage he is offices parlors.
                </div>
              </div>
            </div>

            <!-- Item -->
            <div class="accordion-item">
              <h6 class="accordion-header font-base" id="heading-6">
                <button class="accordion-button fw-bold collapsed rounded d-block pe-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-6" aria-expanded="false" aria-controls="collapse-6">
                  What's are the difference between a college and a university?
                </button>
              </h6>
              <!-- Body -->
              <div id="collapse-6" class="accordion-collapse collapse" aria-labelledby="heading-6" data-bs-parent="#accordionExample2">
                <div class="accordion-body mt-3">
                  Post no so what deal evil rent by real in. But her ready least set lived spite solid. September how men saw tolerably two behavior arranging. She offices for highest and replied one venture pasture. Applauded no discovery in newspaper allowance am northward. Frequently partiality possession resolution at or appearance unaffected me. Engaged its was the evident pleased husband. Ye goodness felicity do disposal dwelling no. First am plate jokes to began to cause a scale. Subjects he prospect elegance followed no overcame possible it on. Improved own provided blessing may peculiar domestic. Sight house has sex never. No visited raising gravity outward subject my cottage Mr be. Hold do at tore in park feet near my case. Invitation at understood occasional sentiments insipidity inhabiting in. Off melancholy alteration principles old. Is do speedily kindness properly oh. Respect article painted cottage he is offices parlors.
                </div>
              </div>
            </div> --}}
          </div>
          @else
          <div class="row">
            {{-- <span>No data Found</span> --}}
            <div class="d-flex justify-content-center align-items-center">
              <div class="w-50">
                <div id="lottie"></div>
              </div>
            </div>
          

          </div>
          @endif
          <!-- FAQ END -->
        </div>
        
       
        <!-- Main content END -->
        <!-- Right sidebar START -->
			<div class="col-lg-4">
				<div class="row mb-5 mb-lg-0">
					<div class="col-12 col-sm-6 col-lg-12">
						<!-- Related Topic START -->
						<div class="card card-body shadow p-4 mb-4">
							<!-- Title -->
							<h4 class="mb-3">Related Topic</h4>
							<!-- Item -->
              {{-- @foreach ($universities as $item)
                  
							<div class="d-flex justify-content-between align-items-center mb-2">
                <a href="?search={{$item->name}}" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>{{$item->name}}</a>
								<span class="small">({{$item->faq->count()}})</span>
							</div>
              @endforeach --}}
							<!-- Item -->
              <div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Application Process" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Application Process</a>
		
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Counselling" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Counselling</a>

							</div>
              		<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Admission" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Admission</a>

							</div>
              		<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=VISA Process" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>VISA Process</a>

							</div>
              		<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Courses" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Courses</a>

							</div>
              		<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Universities" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Universities</a>

							</div>
                 		<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Scholarships" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Scholarships</a>

							</div>
                 		<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="?search=Guidance" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Guidance</a>

							</div>
							{{-- <div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Development</a>
								<span class="small">(86)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Design</a>
								<span class="small">(92)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Marketing</a>
								<span class="small">(62)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Technology</a>
								<span class="small">(31)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Course Taking</a>
								<span class="small">(06)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Getting Started</a>
								<span class="small">(28)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Mobile</a>
								<span class="small">(18)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Payment Option</a>
								<span class="small">(32)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center mb-2">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Account & Profile</a>
								<span class="small">(56)</span>
							</div>
							<!-- Item -->
							<div class="d-flex justify-content-between align-items-center">
								<a href="#" class="h6 fw-light"><i class="fas fa-caret-right text-orange me-2"></i>Course taking</a>
								<span class="small">(45)</span>
							</div> --}}
						</div>
						<!-- Related Topic END -->
					</div>
				</div><!-- Row End -->
			</div>
			<!-- Right sidebar END -->
      </div><!-- Row END -->
    </div>
  </section>
  <!-- Page content END -->
</main>
@endsection
@section('script')
{{-- {{dd(count($faqs))}} --}}
@if(count($faqs)==0)
<script src="{{asset('lottie/lottie.min.js')}}"></script>
<script>
  var animation = lottie.loadAnimation({
    container: document.getElementById('lottie'),
    renderer: 'svg',
    loop: true,
    autoplay: true,
    path: '{{asset("lottie/no_data.json")}}'
  });
</script>
@endif;
@endsection
