<tr id="<%= dom_id job %>" class="bg-status-<%= job.status %>-light odd:bg-opacity-25 even:bg-opacity-10 text-hsrm-gray whitespace-nowrap hover:bg-opacity-30" data-stream-enter-class="animate-flash-increase">
  <td class="p-2 py-3 text-center">
    <%= link_to operator_job_path(job), target: "_top" do %>
      <span class="badge badge-xl text-status-<%= job.status %> bg-status-<%= job.status %>-light">
        <%= job.id %>
      </span>
    <% end %>
  </td>
  <td class="p-2 py-3 text-center">
    <% if job.pdf.attached? && job.pdf.previewable? %>
      <%= link_to job.pdf, target: "_blank", target: "_top" do %>
        <span class="badge badge-hover">
          <%= icon("eye", class:"icon") %>
        </span>
      <% end %>
    <% end %>
  </td>
  <td class="p-2 py-3">
    <%= link_to job.costumer_fullname, admin_user_path(job.costumer), target: "_top" %>
  </td>
  <td class="p-2 py-3">
    <% if job.pdf.attached? %>
      <%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %>
      <%= link_to truncate(job.pdf.filename.to_s, length: 45), job.pdf, download:true, target: "_top" %>
      <%= link_to job.pdf, download:true, target: "_top" do %>
        <span class="badge badge-hover">
          <%= icon("document-arrow-down", class: "text-hsrm-gray size-6 inline", title: "Download") %>
          <%=number_to_human_size job.pdf.blob.byte_size%>
        </span>
      <% end %>
    <% end %>
  </td>
  <% Job::AVAILABLE_PAGE_FORMATS.each do |din| %>
    <td class="p-1 py-3">
      <span class="badge">
        <%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %>
      </span>
    </td>
  <% end %>
  <td class="p-2 py-3 text-right">
    <span class="badge">
      <%=  number_with_delimiter job.costum_qm_plan.round(2)  %> m²
    </span>
  </td>
  <td class="w-24 p-2 py-3 text-right">
    <span class="badge">
      <%= number_to_currency job.cost, locale: :de %>
    </span>
  </td>
  <td class="p-2 py-3">
    <span class="badge badge-status text-status-<%= job.status.to_sym %> bg-status-<%= job.status %>-light">
      <%= job.status %>
    </span>
  </td>
</tr>
