<?php $selectedLayout = paramdeep('plateAuthorizations','printLayout'); ?>
<?php if(empty($selectedLayout)) { ?>
  <?php echo htmlspecialchars('Layout not found',ENT_QUOTES,'UTF-8'); ?>
<?php } else { ?>
  <?php $this->renderPartial("printLayouts/$selectedLayout/index", array('permit'=>$permit)); ?>
<?php } ?>
