<layout name="admin" />

<div class="admin-page">
    <div class="page-header">
        <h1>{{ title }}</h1>

        <div class="page-actions">
            <if condition="{{ actions }}">
                <for items="{{ actions }}" value="action">
                    <a href="{{ action.url }}" class="btn btn-primary">
                        <if condition="{{ action.icon }}">
                            <i class="icon-{{ action.icon }}"></i>
                        </if>
                        {{ action.label }}
                    </a>
                </for>
            </if>
        </div>
    </div>

    <if condition="{{ searchable }}">
        <div class="table-controls">
            <input type="text"
                   class="form-control search-input"
                   data-table-search="{{ resource }}"
                   placeholder="Search...">
        </div>
    </if>

    <div class="table-container">
        {{ table }}
    </div>

    <div class="pagination-container" data-table-pagination="{{ resource }}"></div>
</div>
