{*
* _             _       _
* | |____      _| | __ _| |__
* | '_ \ \ /\ / / |/ _` | '_ \
* | |_) \ V  V /| | (_| | |_) |
* |_.__/ \_/\_/ |_|\__,_|_.__/.
*
* @author    Bwlab di Luigi Massa <info@bwlab.it>
* @copyright since 2014 Bwlab
* @license   proprietary
*}
{** Dashboard BO card (hook dashboardZoneOne) *}
<div class="panel bwwithdrawal-dashboard-card">
    <div class="panel-heading">
        <i class="icon-refresh"></i>
        {if $bwwithdrawal_up_to_date}
            {l s='Your PrestaShop is up to date' mod='bwwithdrawal'}
        {else}
            {l s='Your PrestaShop needs an update' mod='bwwithdrawal'}
        {/if}
    </div>
    <div class="panel-body text-center">
        {if !$bwwithdrawal_up_to_date}
            <a href="{$bwwithdrawal_more_info_url|escape:'html':'UTF-8'}"
               target="_blank" rel="noopener noreferrer"
               title="{l s='Request a quote' mod='bwwithdrawal'}">
                <img src="{$bwwithdrawal_notice_img|escape:'html':'UTF-8'}"
                     alt="{l s='Update required' mod='bwwithdrawal'}"
                     class="img-responsive center-block"
                     style="max-width:100%;height:auto;border-radius:4px;cursor:pointer;">
            </a>
        {/if}

        <p style="margin-top:12px;">
            {l s='Installed version:' mod='bwwithdrawal'} <strong>{$bwwithdrawal_installed_version|escape:'html':'UTF-8'}</strong>
            {if $bwwithdrawal_latest_version}
                &nbsp;—&nbsp;
                {l s='Latest available:' mod='bwwithdrawal'} <strong>{$bwwithdrawal_latest_version|escape:'html':'UTF-8'}</strong>
            {/if}
        </p>

        {if !$bwwithdrawal_up_to_date}
            <a href="{$bwwithdrawal_more_info_url|escape:'html':'UTF-8'}" target="_blank" rel="noopener noreferrer" class="btn btn-success">
                <i class="icon-envelope"></i> {l s='Request a quote' mod='bwwithdrawal'}
            </a>
        {/if}

        <p class="text-muted" style="margin-top:12px;font-size:11px;">
            from the Withdrawal module by <a href="https://www.bwlab.it" target="_blank">bwlab.it</a>
        </p>
    </div>
</div>
