{* @compiler:inline-only *}
{extends "focus/focus.base.tpl"}

{block "focus-class"}focus-reservation{/block}

{block "focus-title"}
   {t}Rezervace na prodejně{/t}
{/block}

{block "focus-content"}
   {block "tpl_vars"}
      {$tpl_vars.param_id = 14}
   {/block}

   {block "reservation-usp"}
      <div class="reservation-usp" data-reload="reservation-usp">
         <div class="reservation-usp-item">
            <span class="fc icons_store"></span>
            <p>{t}Rezervace na prodejně je zdarma{/t}</p>
         </div>
         <div class="reservation-usp-item">
            <span class="fc icons_package"></span>
            {if $body.reservationReadyDate}
               <p>{t date={$body.reservationReadyDate|format_date:'d.m.Y'} hour={$body.reservationReadyDate|format_date:'H:i'}}Zboží bude připraveno {date} od {hour}{/t}</p>
            {else}
                <p>{t}Zboží může být připraveno ještě dnes{/t}</p>
            {/if}
         </div>
         <div class="reservation-usp-item">
            <span class="fc icons_time"></span>
            {if $body.reservationEndDate}
               <p>{t date={$body.reservationEndDate|format_date:'d.m.Y'}}Zboží bude rezervované do {date}{/t}</p>
            {else}
               <p>{t reservationLength=$dbcfg.reservations.reservation_length}Zboží bude rezervované po dobu {reservationLength} dní{/t}</p>
            {/if}
         </div>
      </div>
   {/block}

   <div data-reload="reservation">
      {block "reservation-product"}
         {include "reservation/reservation.product.tpl" param_id=$tpl_vars.param_id}
      {/block}

      {if $body.seller}
         {include "reservation/reservation.form.tpl"}
      {else}
         {include "reservation/reservation.sellers.tpl"}
      {/if}
   </div>
{/block}
