<%= model.refund_uuid %>

<%= link_to model.order.uuid, { controller: 'orders', action: 'show', id: model.order_id } %>

<%= link_to model.payment.payment_uuid, { controller: 'payments', action: 'show', id: model.payment_id } %>

<%= model.total_amount.to_money(model.currency).format %> <%= model.type_i18n %> <%= model.state_i18n %> <%= model.comment %> <% if model.refunded_at %> <% else %>
<%= button_to 'Approve', { action: 'confirm', id: model.id }, method: :patch, data: { confirm: t('.confirm') }, class: 'button is-primary' %>
<%= button_to 'Deny', { action: 'deny', id: model.id }, method: :patch, data: { confirm: 'Deny model!' }, class: 'button is-danger' %>
<% end %> <% if model.reason %>

<%= model.reason.truncate(27) %>

<% end %> <%= model.operator&.name %>