@include('header')
@include('functions')

<link rel="stylesheet" type="text/css" href="{{ url('/') }}/css/all-practice-areas.css">

<!-- banner section start -->
<section class="banner-section-wapper">
	<div class="container w-1280">
		<div class="banner-main-wapper">
			<div class="banner-title">
				<h1><span><?php echo $page['name']; ?></span></h1>
				<p><?php echo $page->extras['short_content']; ?></p>
			</div>
			<div class="banner-title-h2">
				<?php if($page->extras['h2_after_short_description'] != ""){ ?>
					<h2><?php echo $page->extras['h2_after_short_description']; ?></h2>
				<?php } ?>
			</div>
			@include('templates/top_filter')
		</div>
	</div>
</section>
<!-- banner section end -->

<!-- all practice areas html start -->
<section class="all-practice-areas-wapper">
	<div class="container w-1280">
		<div class="all-prac-card-wapper">
			<div class="all-prac-card-main">

				<?php if(!empty($all_pareas)){
					foreach($all_pareas as $p_area){ ?>
						<div class="col--a mb-4">
							<div class="all-prac-content-card">
								<h4><a href="{{ url('/') }}/lawyers/pa/<?php echo $p_area['slug']; ?>"><?php echo $p_area['name']; ?></a></h4>
								
								<?php unset($p_area['slug']);unset($p_area['name']); ?>

								<?php if(!empty($p_area)){ ?>
									<ul class="all-prac-link-list">
										<?php foreach($p_area as $sub){ ?>
											<li><a href="{{ url('/') }}/lawyers/pa/<?php echo $sub['slug']; ?>"><?php echo $sub['name']; ?></a></li>
										<?php } ?>
									</ul>
								<?php } ?>
							</div>
						</div>
					<?php }
				} ?>

			</div>
		</div>
	</div>
</section>
<!-- all practice areas html end -->

@include('footer')