<.header> Daniel's Wishlist <:actions> <.button phx-click={ JS.push("toggle_view_state") |> JS.dispatch("toggle_view_state", detail: %{"grid" => !@grid}) }> Toggle List/Grid <%= if @grid do %>
{item.title} <%= if item.received && !@current_user do %>
<.icon name="hero-check-circle" />Received
<% end %>
<%= item.title %>
<.icon name="hero-ellipsis-vertical" class="w-full h-full" />
<.dropdown item={item} />
Priority:
<%= for _ <- 1..item.desire do %> <.icon name="hero-star" class="bg-red-500 text-red-500" /> <% end %>
<%= item.description %>
<% else %>
{item.title} <%= if item.received && !@current_user do %>
<.icon name="hero-check-circle" />Received
<% end %>
<%= item.title %>
<.icon name="hero-ellipsis-vertical" class="w-7 h-7 rounded-full hover:bg-purple-400 active:bg-purple-500" /> <.dropdown item={item} />
<%= item.description %>
Priority:
<%= for _ <- 1..item.desire do %> <.icon name="hero-star" class="bg-red-500 text-red-500" /> <% end %>
<% end %>