h1=t 'models.plural.section'
if sections
  table.table
    thead
      tr
        th=t 'attributes.section.title'
        th=t 'models.plural.table'
        th.numeric=t 'attributes.section.width'
        th.numeric=t 'attributes.section.height'
        /th.boolean=t 'attributes.list.needs_help'
        /th.boolean=t 'attributes.list.needs_payment'
        /th.timestamp=t 'attributes.list.closed_at'
        /th.table_number=t 'models.table'
        /th.currentcy=t 'attributes.list.price'
        /th.timestamp=t 'attributes.list.created_at'
        th.actions=t 'helpers.actions.title'
    tbody
      each section in sections
        tr
          td
            link-to 'section' section
              =section.title
          td
            span.table-count= section.tables.length
          td.numeric= section.width
          td.numeric= section.height
          /td.boolean.needs_help=boolean list.needs_help
          /td.boolean.needs_payment=boolean list.needs_payment
          /td.timestamp=time list.closed_at
          /td.table_number 7
          /td.currency=currency list.price
          /td.timestamp=time list.created_at
          td.actions
            a.section-dashboard-orders{action showDashboardOrders section}: span
            a.table-qr-codes{path qr_codes_suppliers_tables section_id=section.id}
              span
else
  .row
    .panel=t 'section.none_found'
.form-actions
  a.form-action-new{action "addSection"}=t 'helpers.links.new'
