<% @refund = Refund.available_for_user(current_user).first %>
<% if @refund %>
<%= t(:datetime)%> <%= @refund.date %>
<%= t(:customer) %> <%= @refund.shipping_address.customer.name %>
<%= t(:shipping_address) %> <%= @refund.shipping_address.name %>
<%= t(:manager) %> <%= @refund.manager.name %>
<%= t(:status) %> <%= t(@refund.status_name) %>
<%= link_to t(:show), refund_path(@refund), class: 'btn btn-show', :disable_with => t(:please_wait) %> <% if can? :manage, Refund %> <%= link_to t(:new_refund), new_refund_path, class: 'btn btn-new', :disable_with => t(:please_wait) %> <%= link_to t(:edit), edit_refund_path(@refund), class: 'btn btn-edit', :disable_with => t(:please_wait) %> <% end %> <% else %>

<%= t(:cannot_find_refund) %>

<% if can? :manage, Refund %> <%= link_to t(:new_refund), new_refund_path, class: 'btn btn-new', :disable_with => t(:please_wait) %> <% end %> <% end %>