<% if @dotations.blank? %>
<div class="row">
  <div class="col-md-2">
    <%= render 'filter_form' %>
  </div>
  <div class="col-md-8">
    <div class="card">
      <div class="card-header">
        <h3 class="card-title"><i class="fas fa-bullhorn"></i> Uwagi</h3>
      </div>
      <div class="card-body">
        <div class="alert alert-info alert-dismissible">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
          <h5><i class="icon fas fa-info"></i> Informacja</h5>
          Brak danych do wyświetlenia
        </div>
      </div>

    </div>
  </div>
  <div class="col-md-2">

  </div>
</div>

<% else %>
<div class="row">
  <div class="col-md-2">
    <%= render 'filter_form' %>
  </div>
  <div class="col-md-8">
    <% @dotations.each do |dotation| %>
      <%= render 'dotation_card', dotation: dotation %>
    <% end %>
  </div>
  <div class="col-md-2">

  </div>
</div>

<% end %>
