- title 'Messages Outbox' 

br
h2 Sent Messages

= render 'provider/admin/messages/menu'

- if @messages.blank?
  p= t('provider.admin.messages.no_messages')

- else
  = render 'provider/admin/messages/bulk_operations', scope: :messages, messages: @messages

  table.data#messages
    thead
      tr
        th.select= bulk_select_all
        th To
        th Subject
        th Date Sent
        th
    tbody
      - @messages.each do |message|
        tr id="message_#{message.id}"
          td.select= bulk_select_one message
          td= message_receiver(message)
          td= link_to message.subject, provider_admin_messages_outbox_path(message)
          td= message.created_at.to_s(:long)
          td= delete_button_for provider_admin_messages_outbox_path(message)

  = will_paginate(@messages)
