{$msg.recurring.recurring_profile}

{include file="templates/layouts/zones/includes/flash-messages.html"}

{$msg.recurring.profile_properties}

{if $profile->dateStart && $profile->dateStart != ''} {/if} {if $profile->hasMoreBillingCycles} {/if}
{$msg.recurring.profile_id} #{$profile->profileId}
{$msg.recurring.created_at} {$profile->dateCreated}
{$msg.recurring.status} {$profile->status} {if $profile->status == $profileStatusSuspended && $profile->suspensionReason != 'None'} by {$profile->suspensionReason|strtolower} {/if} {if $customerCanSuspend || $customerCanCancel || $customerCanActivate} ({$msg.recurring.change_link}) {/if}
{$msg.recurring.start_date} {$profile->dateStart}
{$msg.recurring.initial_order} #{$msg.recurring.order}{$initialOrder.order_num} ({$initialOrder.status})
{$msg.recurring.next_payment} {$profile->dateNextBilling|date_format:$msg.common.date_format}
{$msg.recurring.current_billing_cycle} {if $profile->hasMoreBillingCycles} {$profile->currentBillingCycle} {if $profile->billingPeriodCycles > 0} of {$profile->billingPeriodCycles+$profile->trialPeriodCycles}{/if} {else} {$msg.recurring.no_more_billing_cycles} {/if}
{if $customerCanSuspend || $customerCanCancel || $customerCanActivate} {/if}

{$msg.recurring.item}: {$lineItem->title|htmlspecialchars}

{if $lineItem->productRecurringBillingData->scheduleDescription != ''}
{$lineItem->productRecurringBillingData->scheduleDescription|htmlspecialchars}
{/if} {if $lineItem->options != ''}
{$msg.cart.options}:
{$lineItem->options|nl2br}
{/if}
{if $profile->trialEnabled} {/if}
{$msg.recurring.item_quantity} {$profile->itemsQuantity}
{$msg.recurring.trial_period} {$profile->trialDescription}{**if !$profile->hasMoreTrialCycles} ({$msg.recurring.trial_period_finished}){/if**}
{$msg.recurring.billing_period} {$profile->billingDescription}{if !$profile->hasMoreBillingCycles} ({$msg.recurring.billing_period_finished}){/if}

{$msg.recurring.payment_method}

{if $paymentProfile} {if $paymentProfile->name != ''}{$paymentProfile->name|htmlspecialchars}
{/if} {$paymentProfile->billingData->name|htmlspecialchars}
{$paymentProfile->billingData->ccNumber|htmlspecialchars} - {$paymentProfile->billingData->ccExpirationMonth|htmlspecialchars}/{$paymentProfile->billingData->ccExpirationYear|htmlspecialchars}
{$paymentProfile->billingData->addressLine1|htmlspecialchars}
{if $paymentProfile->billingData->addressLine2 != ''}{$paymentProfile->billingData->addressLine2|htmlspecialchars}
{/if} {$paymentProfile->billingData->city|htmlspecialchars}, {$paymentProfile->billingData->stateName|htmlspecialchars} {$paymentProfile->billingData->zip|htmlspecialchars}
{$paymentProfile->billingData->countryName|htmlspecialchars}
{if $paymentProfile->billingData->phone != ''}
{$msg.recurring.phone}: {$paymentProfile->billingData->phone|htmlspecialchars}
{/if} {else}
{$msg.recurring.payment_profile_not_found}
{/if}

{$msg.recurring.delivery_preferences}

{$msg.recurring.shipping_method}: {$initialOrder.shipping_cm_name}
{if $shippingAddress}

{$msg.recurring.shipping_address}

{$shippingAddress->name|htmlspecialchars} ({$shippingAddress->addressType}) {if $shippingAddress->companyName != ''}
{$shippingAddress->companyName}{/if}
{$shippingAddress->addressLine1|htmlspecialchars}
{if $shippingAddress->addressLine2 != ''}{$shippingAddress->addressLine2|htmlspecialchars}
{/if} {$shippingAddress->city|htmlspecialchars}, {$shippingAddress->stateName|htmlspecialchars} {$shippingAddress->zip|htmlspecialchars}
{$shippingAddress->countryName|htmlspecialchars}
{/if}

{$msg.recurring.recurring_orders}

{if $orders} {foreach from=$orders item="order"} {/foreach}
{$msg.cart.order_id} {$msg.cart.order_status} {$msg.cart.order_date} {$msg.cart.order_total}  
#{$order.order_num} {$order.status} {$order.placed_date|date_format:$msg.common.date_format} {$order.total_amount|price} {assign var="imageId" value="image-click-to-view"} {if $designImages.$imageId} {$msg.images.imageClickToView|htmlspecialchars} {else} {$msg.images.imageClickToView|htmlspecialchars} {/if}
{else}
{$msg.account.no_orders_yet}
{/if}