{% extends "./layout/default" %}

{% block breadcrumbs %}
    {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
{% endblock %}

{% block content %}
    {% if bills.count == 0 %}
        {% include 'partials.empty' with {what: 'default', type: 'bills',route: route('bills.create')} %}
    {% else %}
        <div class="row">
            <div class="col-lg-12 col-sm-12 col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">{{ title }}</h3>

                        <!-- ACTIONS MENU -->
                        <div class="box-tools pull-right">
                            <div class="btn-group">
                                <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="{{ route('bills.create') }}"><i class="fa fa-plus fa-fw"></i> New bill</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="box-body table-responsive no-padding">
                        {% include 'list/bills' %}
                    </div>
                </div>
            </div>
        </div>
    {% endif %}
{% endblock %}
