.widget header> h5 ' Lista de span.fw-semi-bold Alertas Almoxarifado hr .widget-body h4 strong ' Ordens de Fornecimento Recebidas p - if @ordens_de_compra_recebidas.empty? p = "Nehuma Ordem de Compra a Recebida" br - else p = "Há #{@ordens_de_compra_recebidas.count} Ordens de Compra Recebidas no(s) último(s) #{@dias} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data de Solic. th style=("width: 20%") Prazo de Entrega th style=("width: 20%") Data do Recebimento. th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_recebidas.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td = ordem_de_compra.try(:prazo_de_entrega) td = ordem_de_compra.try(:data_do_recebimento) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Requisições a Atender p - if @ordens_de_compra_recusadas.empty? p = "Nenhuma Ordem de Compra Recusada" br - else p = "Há #{@ordens_de_compra_recusadas.count} Ordens de Compra Recusada(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Ordem de Compra th style=("width: 20%") Data da Solic. th style=("width: 20%") th style=("width: 20%") th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @ordens_de_compra_recusadas.each do |ordem_de_compra| tr td = ordem_de_compra.try(:numero) td = ordem_de_compra.try(:data_da_solicitacao) td td td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{ordem_de_compra.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to ordem_de_compra , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Recebimento de Material p - if @recebimento_de_materiais.empty? p = "Nenhum Recebimento de Material" br - else p = "Há #{@recebimento_de_materiais.count} Recebimento de Materiais no(s) último(s) #{@dias} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Recebimento th style=("width: 20%") Data do Recebimento. th style=("width: 20%") U.G th style=("width: 20%") Almoxarifado th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @recebimento_de_materiais.each do |recebimento| tr td = recebimento.try(:codigo) td = recebimento.try(:data_do_recebimento) td = recebimento.try(:unidade_orcamentaria).try(:sigla) td = recebimento.try(:almoxarifado).try(:codigo_e_nome) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{recebimento.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to recebimento , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Requisições Recebidas p - if @requisicoes_recebidas.empty? p = "Nenhuma Requisição Recebida pelo Almoxarifado" br - else p = "Há #{@requisicoes_recebidas.count} Requisições Recebida(s) no(s) último(s) #{@dias} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data do Recebimento. th style=("width: 20%") U.G th style=("width: 20%") Almoxarifado th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @requisicoes_recebidas.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td = requisicao.try(:unidade_orcamentaria).try(:sigla) td = requisicao.try(:almoxarifado).try(:codigo_e_nome) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Requisições em Atendimento p - if @requisicoes_em_atendimento.empty? p = "Nenhuma Requisição em Atendimento" br - else p = "Há #{@requisicoes_em_atendimento.count} Requisições em Atendimento no(s) último(s) #{@dias} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data do Recebimento. th style=("width: 20%") U.G th style=("width: 20%") Almoxarifado th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @requisicoes_em_atendimento.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td = requisicao.try(:unidade_orcamentaria).try(:sigla) td = requisicao.try(:almoxarifado).try(:codigo_e_nome) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Requisições Atendidas p - if @requisicoes_atendidas.empty? p = "Nenhuma Requisição Atendida" br - else p = "Há #{@requisicoes_atendidas.count} Requisições Atendida(s) no(s) último(s) #{@dias} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data do Recebimento. th style=("width: 20%") U.G th style=("width: 20%") Almoxarifado th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @requisicoes_atendidas.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td = requisicao.try(:unidade_orcamentaria).try(:sigla) td = requisicao.try(:almoxarifado).try(:codigo_e_nome) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar h4 strong ' Requisições Devolvidas p - if @requisicoes_devolvidas.empty? p = "Nenhuma Requisição Atendida" br - else p = "Há #{@requisicoes_devolvidas.count} Requisições Devolvida(s) no(s) último(s) #{@dias} dia(s)" table-responsive table.table.table-hover thead tr th style=("width: 20%") Nº Requisição th style=("width: 20%") Data do Recebimento. th style=("width: 20%") U.G th style=("width: 20%") Almoxarifado th.text-center style=("width: 5%") Objeto th.text-center style=("width: 10%") Ordem tbody - @requisicoes_devolvidas.each do |requisicao| tr td = requisicao.try(:numero_da_requisicao) td = requisicao.try(:data_da_requisicao) td = requisicao.try(:unidade_orcamentaria).try(:sigla) td = requisicao.try(:almoxarifado).try(:codigo_e_nome) td.text-center style=("width: 5%") span.fa.fa-question-circle data-toggle="tooltip" data-placement="bottom" title="#{requisicao.try(:descricao_itens)}" td.text-center style=("width: 10%") = link_to requisicao , target: "_blank" , class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar