{trans key='Recurring Profile'} #{$recurringProfile->profileId}

{trans key="common.back"}

{if $canUpdateStatus} {/if}

{trans key="recurring_profiles.profile_details"}

{if $recurringProfile->trialEnabled} {/if} {if $recurringProfile->dateStart} {/if}
{trans key="recurring_profiles.profile_id"}: {$recurringProfile->profileId}
{trans key="recurring_profiles.created_at"}: {$recurringProfile->dateCreated}
{trans key="recurring_profiles.status"}: {$recurringProfile->status} {if $recurringProfile->status == 'Suspended'} (by {$recurringProfile->suspensionReason|strtolower}{if $recurringProfile->suspensionReasonDescription != ''}, {$recurringProfile->suspensionReasonDescription}{/if}) {/if}
{trans key="recurring_profiles.trial_period"}: {$recurringProfile->trialDescription}
{trans key="recurring_profiles.billing_period"}: {$recurringProfile->billingDescription}{if !$recurringProfile->hasMoreBillingCycles} (completed){/if}
{trans key="recurring_profiles.current_billing_cycle"}: {if $recurringProfile->trialEnabled} {if $recurringProfile->hasMoreTrialCycles} {trans key="recurring_profiles.trial"} ({$recurringProfile->trialSequenceNumber} of {$recurringProfile->trialPeriodCycles}) {elseif $recurringProfile->hasMoreBillingCycles} {trans key="recurring_profiles.billing"} ({$recurringProfile->billingSequenceNumber}{if $recurringProfile->billingPeriodCycles > 0} of {$recurringProfile->billingPeriodCycles}{else}, until cancelled{/if}) {else} {trans key="recurring_profiles.completed"} {/if} {elseif $recurringProfile->hasMoreBillingCycles} {trans key="recurring_profiles.billing"} ({$recurringProfile->billingSequenceNumber}{if $recurringProfile->billingPeriodCycles > 0} of {$recurringProfile->billingPeriodCycles}{/if}) {else} {trans key="recurring_profiles.completed"} {/if}
{trans key="recurring_profiles.start_date"}: {$recurringProfile->dateStart}
{trans key="recurring_profiles.initial_order"}: {trans key="recurring_profiles.order_num"}{$initialOrder.order_num} ({$initialOrder.status})
{trans key="recurring_profiles.customer"}: {$user->data.fname|gs} {$user->data.lname|gs}

{trans key="recurring_profiles.billing_info"}

{if $paymentProfile} {assign var="paymentProfileId" value=$paymentProfile->id} {include file="templates/pages/payment-profiles/payment-profile-view.html" profile=$paymentProfile} {else} {assign var="paymentProfileId" value=0}
{trans key="recurring_profiles.billing_info_not_available"}
{/if}

{trans key="recurring_profiles.shipping_info"}

{if $shippingAddress} {trans key="recurring_profiles.shipping_address_method"}
{include file="templates/pages/recurring-profiles/shipping-address-view.html" shippingAddress=$shippingAddress}
{trans key="recurring_profiles.shipping_method"}: {$initialOrder.shipping_cm_name}
{else} {trans key="orders.not_shippable"} {/if}
{form form=$recurringProfileForm}
{trans key="recurring_profiles.recurring_item_info"}
{trans key="recurring_profiles.product_id"} {trans key="recurring_profiles.product_name"} {trans key="recurring_profiles.product_price"} {trans key="recurring_profiles.product_quantity"} {trans key="recurring_profiles.product_subtotal"}
{$lineItem->productId|htmlspecialchars} {$lineItem->title|htmlspecialchars} {if $lineItem->options != ''}
Options:
{$lineItem->options|nl2br}{/if}
{if $recurringProfile->trialEnabled}{$recurringProfile->trialAmount|price} / {/if} {$recurringProfile->billingAmount|price} {$recurringProfile->itemsQuantity} {if $recurringProfile->trialEnabled}{$recurringProfile->trialAmount*$recurringProfile->itemsQuantity|price} / {/if} {$recurringProfile->billingAmount*$recurringProfile->itemsQuantity|price}
{trans key="recurring_profiles.recurring_orders"}
{if $recurringOrders} {foreach from=$recurringOrders item="recurringOrder"} {/foreach}
{trans key="recurring_profiles.order_id"} {trans key="recurring_profiles.place_at"} {trans key="recurring_profiles.last_update"} {trans key="recurring_profiles.status"} {trans key="recurring_profiles.payment"} {trans key="recurring_profiles.fulfilled"} {trans key="recurring_profiles.amount"}  
{$recurringOrder.order_num} {$recurringOrder.placed_date} {$recurringOrder.status_date} {$recurringOrder.status} {$recurringOrder.payment_status} {if $recurringOrder.fulfillment_status == 'partial'} {trans key="orders.shipment_statuses.partial"} {elseif $recurringOrder.fulfillment_status == 'completed'} {trans key="orders.shipment_statuses.completed"} {else} {trans key="orders.shipment_statuses.pending"} {/if} {$recurringOrder.total_amount|price} Edit Print
{else} {trans key="recurring_profiles.no_orders_yet"} {/if}
{if $canUpdateStatus} {include file="templates/pages/recurring-profiles/modal-update-status.html"} {/if}