{extends "index.tpl"}

{block "css-entry" append}
    {encore_entry_link_tags entry='returns'}
{/block}

{block "main"}
   <main class="main container page-returns page-returns-new returns-step-{$body.stepName}">
      <div class="order-process">
         {$visited = true}
         {foreach $body.steps as $stepName => $step}
             {if $stepName == $body.stepName}{$visited = false}{/if}
             {if $visited}
                <a href="/{$step.url}" class="order-process-step visited">
                    {$step.title}
                </a>
             {else}
                <div class="order-process-step {if $stepName == $body.stepName}active{/if}">
                    {$step.title}
                </div>
             {/if}
         {/foreach}
      </div>

      <h1>{$view->getTitle()}</h1>
      {include "block.messages.tpl"}

      {block content}
      {/block}
   </main>
{/block}

{block "js-entry" append}
    {encore_entry_script_tags entry='returns'}
{/block}
