<?php declare(strict_types=1); ?>

<!-- Page title -->
<?php if (isset($pageTitle)): ?>
<div class="row">
  <div class="col-12">
    <div class="text-center">
      <h1 class="page-title"><?php echo $tfValidator->escapeForXss($pageTitle); ?></h1>
    </div>
  </div>
</div>
<?php endif; ?>

<!-- Select controls -->
<?php if (isset($selectFiltersForm)): ?>
<div class="row">
  <div class="col-12">
    <div class="col-md-12 col-lg-8 mx-auto select-filters clearfix">
      <?php echo $selectFiltersForm; ?>
    </div>
  </div>
</div>
<?php endif; ?>

<!-- Top pagination control -->
<?php if (isset($pagination)): ?>
<div class="row">
  <div class="col-12">
    <div class="pagination-top float-right clearfix">
      <?php echo $pagination; ?>
    </div>
  </div>
</div>
<?php endif; ?>

<!-- Main content of page -->
<?php if (isset($tfMainContent)): ?>
<div class="row">
  <div class="col-12 main-content clearfix">
    <?php echo $tfMainContent; ?>
  </div>
</div>
<?php endif; ?>

<!-- Bottom pagination control -->
<?php if (isset($pagination)): ?>
<div class="row">
  <div class="col-12">
    <div class="float-right pagination-bottom clearfix">
      <?php echo $pagination; ?>
    </div>
  </div>
</div>
<?php endif; ?>