| <%=t(:label_name)%> |
<%= customer.name %> |
| <%=t(:label_email)%> |
<%= customer.email %> |
| <%=t(:label_primary_phone)%> |
<%= number_to_phone(customer.primary_phone.gsub(/[^\d]/, '').to_i, area_code: true) if customer.primary_phone %> |
| <%=t(:label_mobile_phone)%> |
<%= number_to_phone(customer.mobile_phone.gsub(/[^\d]/, '').to_i, area_code: true) if customer.mobile_phone %> |
| <%=t(:label_billing_address)%> |
<%= @billing_address %> |
| <%=t(:label_shipping_address)%> |
<%= @shipping_address %> |
| <%=t(:label_account_balance)%> |
$<%= customer.balance %> |
| <%=t(:field_notes)%> |
<%= customer.notes %> |
<%= button_to t(:label_edit_customer), edit_customer_path(customer), method: :get%>
<%= link_to t(:label_appointment), "https://calendar.google.com/calendar/render?action=TEMPLATE&text=#{customer.name}+-&details=#{customer.primary_phone}&dates=#{Time.now.strftime("%Y%m%d")}T090000/#{Time.now.strftime("%Y%m%d")}T170000", target: :_blank %>