@extends( 'layouts.admin' )



@section( 'styles' )

@endsection



@section( 'content' )

<!-- ============================================================== -->

<!-- Start right Content here -->

<!-- ============================================================== -->

<div class="content-page">

	<!-- Start content -->

	<div class="content">

		<div class="container-fluid">

			<div class="row">

				<div class="col-sm-12">

					<div class="page-title-box">

						<div class="row align-items-center">

							<div class="col-md-8">

								<h4 class="page-title mb-0">Contact Us Queries</h4>

								<ol class="breadcrumb m-0">

									<li class="breadcrumb-item"><a href="#">Main Menu</a>
									</li>

									<li class="breadcrumb-item active" aria-current="page">Contact Us Queries</li>

								</ol>

							</div>



						</div>



					</div>

				</div>

			</div>


			<!-- end row -->

			<div class="row">

				<div class="col-lg-12">

					<div class="card">

						<div class="card-body">



							<div class="table-responsive mt-4">

								<table class="table  table-striped table-hover mb-0">

									<thead>

										<tr>

											<th scope="col">(#)</th>

											<th scope="col">Name</th>
											<th scope="col">Email</th>
											<th scope="col">Subject</th>
											<th scope="col">Contact #</th>
											<th scope="col">Message</th>


											<th scope="col">Actions</th>

										</tr>

									</thead>

									<tbody>
										@foreach($contacts as $ct)
										<tr>
											<td>{{$loop->iteration}}</td>
											<td>{{$ct->name}}</td>
											<td>{{$ct->email}}</td>
											<td>{{$ct->subject}}</td>
											<td> {{$ct->phone}}</td>
											<td> {{$ct->message}}
											<td>

												<a class="btn btn-danger btn-sm" href="{{ route('admin.delete_contactus' , $ct->id)}}"><i class="ion-trash-a text-white"></i></a>
											</td>


										</tr>
										@endforeach


									</tbody>

								</table>



							</div>

							<nav aria-label="Page navigation example">
								<ul class="pagination justify-content-end mb-0  m-t-15">
									<li class="page-item disabled">
										<a class="page-link" href="#" tabindex="-1">Previous</a>
									</li>
									<li class="page-item"><a class="page-link" href="#">1</a>
									</li>
									<li class="page-item"><a class="page-link" href="#">2</a>
									</li>
									<li class="page-item"><a class="page-link" href="#">3</a>
									</li>
									<li class="page-item">
										<a class="page-link" href="#">Next</a>
									</li>
								</ul>
							</nav>

						</div>

					</div>

				</div>

			</div>

			<!-- end row -->




		</div>
		<!-- container-fluid -->



	</div>
	<!-- content -->



	<footer class="footer">

		© 2020 - 2021 The Educators Academy

	</footer>

</div>






@endsection
