@extends('layouts.app')
<?php
    if(Empty($tab)){
        $tab = 'district';
    }
?>
@section('content')
<div class="pcoded-content">
    <div class="pcoded-inner-content">

        <div class="main-body">
            <div class="page-wrapper">
                <!-- Page-header start -->
                <div class="page-header card page-body">
                    <div class="row align-items-end">
                        <div class="col-lg-8">
                            <div class="page-header-title">
                                <i class="icofont icofont icofont icofont-file-document bg-c-pink"></i>
                                <div class="d-inline">
                                    <h4>Location</h4>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <div class="page-header-breadcrumb">
                                <ul class="breadcrumb-title">
                                    <li class="breadcrumb-item">
                                        <a href="index.html">
                                            <i class="icofont icofont-home"></i>
                                        </a>
                                    </li>
                                    <li class="breadcrumb-item"><a href="#!">Location</a>
                                    </li>
                                    <li class="breadcrumb-item"><a href="#!">Lists</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                        <hr>
                        <div class="row">
                            <div class="col-sm-12">
                                <ul class="nav nav-tabs  tabs" role="tablist">
                                    <li class="nav-item">
                                        <a class="nav-link <?php echo $tab == 'nationality' ? 'active' : ''; ?>"  href="<?php echo url('location/list/nationality'); ?>" role="tab">Nationalities</a>
                                    </li>
                                    <li class="nav-item">
                                        <a class="nav-link <?php echo $tab == 'region' ? 'active' : ''; ?>"  href="<?php echo url('location/list/region'); ?>" role="tab">Regions</a>
                                    </li>
                                    <li class="nav-item">
                                        <a class="nav-link <?php echo $tab == 'subregion' ? 'active' : ''; ?>"  href="<?php echo url('location/list/subregion'); ?>" role="tab">Sub Regions</a>
                                    </li>
                                    <li class="nav-item">
                                        <a class="nav-link <?php echo $tab == 'district' ? 'active' : ''; ?>"  href="<?php echo url('location/list/district'); ?>" role="tab">Districts</a>
                                    </li>
                                    <li class="nav-item">
                                        <a class="nav-link <?php echo $tab == 'subcounty' ? 'active' : ''; ?>"  href="<?php echo url('location/list/subcounty'); ?>" role="tab">Sub Counties</a>
                                    </li>
                                    <li class="nav-item">
                                        <a class="nav-link <?php echo $tab == 'parish' ? 'active' : ''; ?>"  href="<?php echo url('location/list/parish'); ?>" role="tab">Parishes</a>
                                    </li>
                                </ul>
                                <div class="tab-content tabs card-block">
                                    <div class="tab-pane active" id="region" role="tabpanel">
                                        <?php if($tab == 'nationality'){ ?>
                                        @include('location.list_nationality')
                                        <?php } ?>
                                    </div>
                                    <div class="tab-pane active" id="region" role="tabpanel">
                                        <?php if($tab == 'region'){ ?>
                                        @include('location.list_region')
                                        <?php } ?>
                                    </div>
                                    <div class="tab-pane active" id="subregion" role="tabpanel">
                                        <?php if($tab == 'subregion'){ ?>
                                        @include('location.list_subregion')
                                        <?php } ?>
                                    </div>
                                    <div class="tab-pane active" id="district" role="tabpanel">
                                        <?php if($tab == 'district'){ ?>
                                            @include('location.list_district')
                                        <?php } ?>
                                    </div>
                                    <div class="tab-pane active" id="subcounty" role="tabpanel">
                                        <?php if($tab == 'subcounty'){ ?>
                                            @include('location.list_subcounty')
                                        <?php } ?>
                                    </div>
                                    <div class="tab-pane active" id="parish" role="tabpanel">
                                        <?php if($tab == 'parish'){ ?>
                                            @include('location.list_parish')
                                        <?php } ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                </div>
                <!-- Page-header end -->
            </div>
        </div>
        <div id="styleSelector">

        </div>
    </div>
</div>
@endsection
