<div id="headerbar">

    <h1><?php echo trans('clients'); ?></h1>

    <div class="pull-right">
        <button type="button" class="btn btn-default btn-sm submenu-toggle hidden-lg"
                data-toggle="collapse" data-target="#ip-submenu-collapse">
            <i class="fa fa-bars"></i> <?php echo trans('submenu'); ?>
        </button>
        <a class="btn btn-sm btn-primary" href="<?php echo site_url('clients/form'); ?>">
            <i class="fa fa-plus"></i> <?php echo trans('new'); ?>
        </a>
    </div>

    <div class="pull-right visible-lg">
        <?php echo pager(site_url('clients/status/' . $this->uri->segment(3)), 'mdl_clients'); ?>
    </div>

    <div class="pull-right visible-lg">
        <ul class="nav nav-pills index-options">
            <li <?php if ($this->uri->segment(3) == 'active' or !$this->uri->segment(3)) : ?>class="active"<?php endif; ?>>
                <a href="<?php echo site_url('clients/status/active'); ?>"><?php echo trans('active'); ?></a>
            </li>
            <li <?php if ($this->uri->segment(3) == 'inactive') : ?>class="active"<?php endif; ?>>
                <a href="<?php echo site_url('clients/status/inactive'); ?>"><?php echo trans('inactive'); ?></a>
            </li>
            <li <?php if ($this->uri->segment(3) == 'all') : ?>class="active"<?php endif; ?>>
                <a href="<?php echo site_url('clients/status/all'); ?>"><?php echo trans('all'); ?></a>
            </li>
        </ul>
    </div>

</div>

<div id="submenu">
    <div class="collapse clearfix" id="ip-submenu-collapse">

        <div class="submenu-row">
            <?php echo pager(site_url('clients/status/' . $this->uri->segment(3)), 'mdl_clients'); ?>
        </div>

        <div class="submenu-row">
            <ul class="nav nav-pills index-options">
                <li <?php if ($this->uri->segment(3) == 'active' or !$this->uri->segment(3)) : ?>class="active"<?php endif; ?>>
                    <a href="<?php echo site_url('clients/status/active'); ?>"><?php echo trans('active'); ?></a>
                </li>
                <li <?php if ($this->uri->segment(3) == 'inactive') : ?>class="active"<?php endif; ?>>
                    <a href="<?php echo site_url('clients/status/inactive'); ?>"><?php echo trans('inactive'); ?></a>
                </li>
                <li <?php if ($this->uri->segment(3) == 'all') : ?>class="active"<?php endif; ?>>
                    <a href="<?php echo site_url('clients/status/all'); ?>"><?php echo trans('all'); ?></a>
                </li>
            </ul>
        </div>

    </div>
</div>

<div id="content" class="table-content">

    <?php $this->layout->load_view('layout/alerts'); ?>

    <div id="filter_results">
        <?php $this->layout->load_view('clients/partial_client_table'); ?>
    </div>

</div>