<?php get_header(); ?>

    <section class="content sec-padding branches-page">
        <div class="container">
            <h1 class="sec-tit text-center">
                <?php post_type_archive_title(); ?>
            </h1>
            <?php if (have_posts()) : ?>
                <div class="row">
                    <?php while (have_posts()) : the_post(); ?>
                        <div class="col-md-4 mb-4">
                            <div class="headquarter-item">
                                <a class="headquarter-item-url"
                                   href="<?php the_permalink(); ?>"
                                   title="<?php the_title(); ?>">
                                    <?php the_post_thumbnail('large', ['class' => 'img-fluid']); ?>
                                </a>
                            </div>
                        </div>
                    <?php endwhile; ?>
                </div>
                <?php wp_pagenavi(); ?>

            <?php else : ?>
                <p>
                    <?php _e('معذرة , لا يوجد محتوى مضاف حاليا', 'm7md') ?>
                </p>
            <?php endif; ?>
        </div>
    </section>

<?php get_footer(); ?>