<%= !_.isUndefined(i18n['Last request sent on'])?i18n['Last request sent on']:'Last request sent on' %>: <%= $.datepicker.formatDate('dd-M-yy', new Date(Date.parse(partial_notification_date.replace(/\-/g, '/')))) %>
<% } %><%= _.isNull(shipping_service) ? 'n/a' : shipping_service+( _.isNull(shipping_type) ? '' : ': '+shipping_type ) %>
<% if(_.isNull(recurring_id)) {%> <% if (shipping_service !== "pickup") { %><%= _.isUndefined(i18n['Tracking ID']) ? 'Tracking ID':i18n['Tracking ID'] %>: <%= _.isNull(shipping_tracking_id) ? '' : shipping_tracking_id %> <% if (status == 'completed' || status == 'shipped') { %> <% addButton = 'add' %> <% editButton = 'edit' %> <% if (!_.isUndefined(i18n['add'])){ %> <% addButton = i18n['add'] %> <% } %> <% if (!_.isUndefined(i18n['edit'])){ %> <% editButton = i18n['edit'] %> <% } %> [ <%= (_.isNull(shipping_tracking_id) || shipping_tracking_id == '') ? addButton : editButton %> ] <% if(!_.isNull(shipping_tracking_id) && shipping_tracking_id != '') { %>
<%= _.isUndefined(i18n['Where is my order?']) ? 'Where is my order?':i18n['Where is my order?'] %>
<% } %> <% } %> <% } else { %> <% if (status == 'completed' || status == 'shipped') { %> <% if (is_pickup_notification_sent == '1') { %> <%= $.datepicker.formatDate('dd-M-yy', new Date(Date.parse(pickup_notification_sent_on.replace(/\-/g, '/')))) %> <%= _.isUndefined(i18n['Notify again']) ? 'Notify again':i18n['Notify again'] %> <% } else { %> <%= _.isUndefined(i18n['Ready for pickup']) ? 'Ready for pickup':i18n['Ready for pickup'] %> <% } %> <% } %> <% } %> <% } %>
<% if((status == 'completed' || status == 'shipped') && !_.isNull(shipping_availability_days) && !_.isEmpty(shipping_availability_days)) { %>
<% } %>
<% if(!_.isNull(shipping_label_link) || !_.isEmpty(shipping_label_link)) { %>
<% shippingLabelEl = '' %>
<% shippingLabelLink = shipping_label_link %>
<% } else { %>
<% shippingLabelEl = 'hidden' %>
<% shippingLabelLink = 'javascript:;' %>
<% } %>
<% if((status == 'completed' || status == 'shipped') && !_.isNull(shipping_service_info)) { %>
<% shipmentServiceInfo = JSON.parse(shipping_service_info) %>
<% if (typeof shipmentServiceInfo.shipment_reference !== 'undefined') { %>
<% } %>
<% } %>
<% } %>