<?php $this->load->view('includes/head') ?>
<?php $this->load->view('includes/topbar') ?>
<?php $this->load->view('includes/header') ?>
<link rel="stylesheet" type="text/css" href="<?=base_url('assets/css/priest.css')?>">
<main id="main">

	<!-- ======= Temple Services Section ======= -->
	<section id="temple-services" class="temple-services" style="background-image: url(<?=base_url('assets/img/elegant-background-with-mandala.png');?>);background-size: auto;">

		<center> <h2  style="font-weight:bold!important;font-size: 35px!important;">About Priests<br><img src="<?=base_url('assets/img/border.png')?>" class="img-fluid img-responsive" style="width: 20%;"></h2> </center>
		<div class="container">

			<?php if (!empty($priests)) {  ?>


				<div class="row staff-wrapper"> 
					<?php foreach ($priests as $key => $value) { ?>

						<div class="col-md-4 staff-box mx-auto d-block"> 

							<?php if (!empty($value['image'])) { ?>
								<img src="<?=ApiBaseUrl()['url'].$value['image']?>" alt="<?= $value['refDataName']; ?>" />
							<?php }else{?>
								<img src="<?=base_url('assets/img/user-no-image.png')?>" alt="<?= $value['refDataName']; ?>" />
							<?php } ?>


							<header><?= $value['refDataName']; ?></header>

							<?php if (!empty($value['phone'])) { ?>

								<a class="mt-3" href="mailto:<?=base64_decode($value['email']);?>"><i class="fa fa-envelope"></i> <?=base64_decode($value['email']); ?></a>
							<?php } ?>

							<?php if (!empty($value['phone'])) { ?>

								<a class="mt-3" href="tel:+1 <?=base64_decode($value['phone']);?>"><i class="fa fa-phone"></i> +1 <?=base64_decode($value['phone']); ?></a>
							<?php } ?>
						</div>

					<?php } ?>

				</div>
			<?php }else{ ?>
				<h2 class="text-center fw-bold">Coming Soon......</h2>
			<?php } ?>
		</div>



	</section>
	<!-- End Temple Services Section -->


</main><!-- End #main -->

<script type="text/javascript">
	$(document).ready(function() {
		window.scrollTo({ top: 140, behavior: 'smooth'});
	});
</script>
<?php $this->load->view('includes/footer') ?>
<?php $this->load->view('includes/script') ?>
