<%= link_to Rails.application.config.app_name, current_user ? "/dashboard" : "/", class: "text-xl font-bold text-white" %>
<%= link_to t("header.parties"), events_path, class: "text-gray-100 hover:text-purple-200 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> <%= link_to t("header.concerts"), "#", class: "text-gray-100 hover:text-purple-200 py-2 rounded-md text-sm font-medium transition-colors duration-200" %>
<% if user_signed_in? %>
<%= link_to t("header.profile"), edit_user_registration_path, class: "block px-4 py-2 text-sm text-gray-100 hover:bg-purple-700 first:rounded-t-md" %> <%= link_to t("header.reservations"), "#", class: "block px-4 py-2 text-sm text-gray-100 hover:bg-purple-700" %> <%= link_to t("header.logout"), destroy_user_session_path, data: { controller: "logout", action: "click->logout#signOut", logout_url_value: destroy_user_session_path, redirect_url_value: "/", turbo: false }, class: "block px-4 py-2 text-sm text-gray-100 hover:bg-purple-700 last:rounded-b-md" %>
<% else %> <%= link_to t("header.login"), new_user_session_path, class: "text-gray-100 hover:text-purple-200 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200" %> <%= link_to t("header.register"), new_user_registration_path, class: "bg-purple-600 text-white font-medium py-2 px-4 rounded-lg hover:bg-purple-700 transition-colors duration-200" %> <% end %>
<%= link_to t("header.parties"), events_path, class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %> <%= link_to t("header.concerts"), "#", class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<% if user_signed_in? %>
<%= current_user.first_name || current_user.email %>
<%= link_to t("header.profile"), edit_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %> <%= link_to t("header.reservations"), "#", class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %> <%= link_to t("header.logout"), destroy_user_session_path, data: { controller: "logout", action: "click->logout#signOut", logout_url_value: destroy_user_session_path, login_url_value: new_user_session_path, turbo: false }, class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %>
<% else %>
<%= link_to t("header.login"), new_user_session_path, class: "block px-3 py-2 rounded-md text-base font-medium text-gray-100 hover:text-purple-200 hover:bg-purple-700" %> <%= link_to t("header.register"), new_user_registration_path, class: "block px-3 py-2 rounded-md text-base font-medium bg-purple-600 text-white hover:bg-purple-700" %>
<% end %>