<% if (_.isEmpty(leadModel.get('user_id'))) { %> <% } else { %> <%= _.isEmpty(leadModel.get('lead_email')) ? '': leadModel.get('lead_email') %> <% } %>
<% if (!_.isEmpty(leadModel.get('socialServices'))) { %> <% } %>
type="text" data-lead-old-val="<%= organizationPhoneNumber %>" data-lead-attr="organization_phone_number" class="lead-detailed-view-param lead-organization-phone-number-detailed-view" value="<%= organizationPhoneNumber %>" placeholder="<%= _.isUndefined(i18n['Phone number'])?'Phone number':i18n['Phone number'] %>" />
<% if(_.isEmpty(leadModel.get('states'))) { %> <% var statesHidden = 'hidden' %> <% } else { %> <% var statesHidden = '' %> <% } %>
<%= leadOpportunityStatNewCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(leadOpportunityStatNewAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Open'])?'Open':i18n['Open'] %>
<%= leadOpportunityStatLostCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(leadOpportunityStatLostAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Lost'])?'Lost':i18n['Lost'] %>
<%= leadOpportunityStatWonCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(leadOpportunityStatWonAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Won'])?'Won':i18n['Won'] %>
<%= (!_.isUndefined(leadOpportunityRatio)) ? Math.round(leadOpportunityRatio) : 0 %>%
<%= _.isUndefined(i18n['Win ratio'])?'Win ratio':i18n['Win ratio'] %>
<%= totalSalesCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(totalSalesAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<% if(!_.isUndefined(leadModel.get('firstPurchaseDate').created_at) && moment(leadModel.get('firstPurchaseDate').created_at, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') !== 'Invalid date' ) { %><%= _.isUndefined(i18n['Customer since'])?'Customer since':i18n['Customer since'] %> <%= moment(leadModel.get('firstPurchaseDate').created_at, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') %>
<% } else if (!_.isEmpty(leadFirstWonOpportunityDate) && moment(leadFirstWonOpportunityDate, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') !== 'Invalid date' ) { %><%= _.isUndefined(i18n['Customer since'])?'Customer since':i18n['Customer since'] %> <%= moment(leadFirstWonOpportunityDate, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') %>
<% } %><%= _.isUndefined(i18n['Document name']) ? 'Document name':i18n['Document name'] %> | <%= _.isUndefined(i18n['Display label']) ? 'Display label':i18n['Display label'] %> | <%= _.isUndefined(i18n['Uploaded at']) ? 'Uploaded at':i18n['Uploaded at'] %> | <%= _.isUndefined(i18n['Actions']) ? 'Actions':i18n['Actions'] %> |
---|---|---|---|
<%= _.isUndefined(i18n['Upcoming events'])?'Upcoming events':i18n['Upcoming events'] %> |
---|
<%= _.isUndefined(i18n['Today'])?'Today':i18n['Today'] %> |
---|