<?php
    foreach ($user_permission as $permission):
        if ($permission['page_id'] == $page_id):

            ?>

            <a href="<?php echo $this->Url->build(["controller" => $permission['controller'], "action" => $permission['method']])?>"  class="btn btn-success btn-flat btn-grid">
                <i class="fa fa-list"></i>
                <?php echo __('LIST'); ?>
            </a>

            <?php
            break;
        endif;
    endforeach;

?>
