@extends('views.layouts.master')

@section('content')

<div class="sub qna qna_write">
	<div class="container">
		<div class="navi">
			<a href="/"><i class="fa-solid fa-house"></i> 홈</a> > 커뮤니티 > FAQ
		</div>
		<div class="title">
			<h2>FAQ</h2>
		</div>
	</div>
	<!--=====================================
	BANNER PART START
	=======================================-->
	<!-- 필요없음 지움
	<section class="inner-section single-banner">
		<div class="container">
			<h2>FAQ</h2>
			<ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="/">Home</a></li>
				<li class="breadcrumb-item active" aria-current="page">FAQ</li>
			</ol>
		</div>
	</section>
	-->
	<!--=====================================
	BANNER PART END
	=======================================-->


	<!--=====================================
	FAQ PART START
	=======================================-->
	<section class="inner-section faq-part">
		<div class="container">
			<div>
				<div class="faq-parent">
					@forelse($qnaPage['Page'] ?? [] as $qna)
						<div class="faq-child">
							<div class="faq-que">
								<button><span>Q</span>{{ $qna['C6'] }}</button>
							</div>
							<div class="faq-ans">
								<p><span>A</span>{{ $qna['C7'] }}</p>
							</div>
						</div>
					@empty
					@endforelse
				</div>
			</div>
		</div>
	</section>
	<!--=====================================
	FAQ PART END
	=======================================-->
</div>

@endsection
