<%= @ammo_group.ammo_type.name %>

<%= gettext("Count:") %> <%= @ammo_group.count %> <%= if @ammo_group.notes do %> <%= gettext("Notes:") %> <%= @ammo_group.notes %> <% end %> <%= if @ammo_group.price_paid do %> <%= gettext("Price paid:") %> $ <%= @ammo_group.price_paid |> :erlang.float_to_binary(decimals: 2) %> <% end %>
<%= live_patch to: Routes.ammo_group_show_path(@socket, :edit, @ammo_group), class: "text-primary-500 link" do %> <% end %> <%= link to: "#", class: "text-primary-500 link", phx_click: "delete", data: [confirm: dgettext("prompts", "Are you sure you want to delete this ammo?")] do %> <% end %>

<%= if @ammo_group.container do %>

<%= gettext("Stored in") %>

<.container_card container={@ammo_group.container} /> <% else %> <%= gettext("This ammo group is not in a container") %> <% end %>
<%= if @live_action in [:edit] do %> <.modal return_to={Routes.ammo_group_show_path(@socket, :show, @ammo_group)}> <.live_component module={CanneryWeb.AmmoGroupLive.FormComponent} id={@ammo_group.id} title={@page_title} action={@live_action} ammo_group={@ammo_group} return_to={Routes.ammo_group_show_path(@socket, :show, @ammo_group)} current_user={@current_user} /> <% end %>