{include file="sections/header.tpl"}
    <form method="post">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card shadow-lg border-0 mb-4">
                    <div class="card-header bg-info text-white">
                        <h4 class="mb-0">{Lang::T('Payment Gateway')}</h4>
                    </div>

                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-striped table-condensed">
                                <tbody>
                                    {foreach $pgs as $pg}
                                        <tr>
                                            <td class="text-center" width="10">
                                                <input type="checkbox" name="pgs[]"
                                                    {if in_array($pg, $actives)}checked{/if}
                                                    value="{$pg}" aria-label="{Lang::T('Activate')} {ucwords($pg)}">
                                            </td>
                                            <td>
                                                <a href="{$_url}paymentgateway/{$pg}"
                                                    class="btn btn-block btn-{if in_array($pg, $actives)}info{else}secondary{/if} text-left">
                                                    {ucwords($pg)}
                                                </a>
                                            </td>
                                            <td width="140">
                                                <div class="btn-group" role="group" aria-label="{Lang::T('Actions')}">
                                                    <a href="{$_url}paymentgateway/audit/{$pg}"
                                                        class="btn btn-success btn-sm" aria-label="{Lang::T('Audit')} {ucwords($pg)}">
                                                        </i> {Lang::T('Audit')}
                                                    </a>
                                                    <a href="{$_url}paymentgateway/delete/{$pg}"
                                                        onclick="return confirm('{Lang::T('Delete')} {ucwords($pg)}?')"
                                                        class="btn btn-danger btn-sm" aria-label="{Lang::T('Delete')} {ucwords($pg)}">
                                                        <i class="glyphicon glyphicon-trash"></i> {Lang::T('Delete')}
                                                    </a>
                                                </div>
                                            </td>
                                        </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <div class="card-footer">
                        <button type="submit" class="btn btn-primary btn-block" name="save" value="actives">
                            <i class="fa fa-save"></i> {Lang::T('Save Changes')}
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
{include file="sections/footer.tpl"}
