User: <%= link_to @card.user.name, @card.user unless @card.user.blank? %>

Card Note: <%= @card.name %>

Card DB ID: <%= @card.id %>

Card Number: <%= @card.card_number %>

Card Permissions: <%= if @card.card_permissions == 1 then "Enabled" else "Disabled" end %>

<% if can? :read, DoorLog %>

Access attempts:

<% end %> <%= link_to 'Upload to Door', upload_path(@card) if can? :upload, @card %> <% if can? :update, @card then %><%= link_to 'Edit', edit_card_path(@card) %> |<% end %> <%= link_to 'Back', cards_path %>