<div class="row bottom-space">
   <div class="col-md-12">
      <h1 class="h4 main-panel-title">{'BillingInformation'|translate}</h1>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label"><label>{'EshopName'|translate}</label>
      <a class="help-tip" data-toggle="tooltip" title="Jméno e-shopu je uvedeno na faktuře, v informačních e-mailech nebo v závislosti na grafickém návrhu i v šablonách webu.
         Příklad dobrého názvu je OnlineKrmiva.cz, nebo Akvaristika & rybaření."><i class="bi bi-question-circle"></i></a>
   </div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[shop_firm_name]" size="30" maxlength="100" value="{$body.data.shop_firm_name}">
   </div>
   <div class="col-md-2 control-label"><label>{'shop_vat_payer'|translate}</label></div>
   <div class="col-md-1">
      {print_toggle name="shop_vat_payer"}
   </div>
</div>
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'EshopOwner'|translate}</label>
      <a class="help-tip" data-toggle="tooltip" title="Provozovatel je oficiální název společnosti nebo podnikatele. Většinou se uvádí pouze na faktuře.
         Pokud faktury nepoužíváte, nebo je-li provozovatel stejný jako název webu, můžete toto pole nechat prázdné."><i
                 class="bi bi-question-circle"></i></a></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[shop_firm_owner]" size="30" maxlength="100" value="{$body.data.shop_firm_owner}">
   </div>
</div>
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'shop_email'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[shop_email]" size="30" maxlength="100" value="{$body.data.shop_email}">
   </div>
   <div class="col-md-2 control-label"><label>{'shop_phone'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[shop_phone]" size="20" maxlength="20" value="{$body.data.shop_phone}">
   </div>
</div>
{* <div class="form-group">
      <div class="col-md-2 control-label"><label>Fax eshopu</label></div>
      <div class="col-md-3">
          <input type="text" class="form-control input-sm" name="data[shop_fax]" size="20" maxlength="20" value="{$body.data.shop_fax}">
      </div>
  </div>*}
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'shop_ico'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[shop_ico]" size="20" maxlength="20" value="{$body.data.shop_ico}">
   </div>
   <div class="col-md-2 control-label"><label>{'shop_dic'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[shop_dic]" size="20" maxlength="20" value="{$body.data.shop_dic}">
   </div>
</div>
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'shop_address'|translate}</label></div>
   <div class="col-md-8">
      <textarea name="data[shop_address]" class="form-control input-sm" rows="3" cols="30">{$body.data.shop_address}</textarea>
   </div>
</div>
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'AccountNumber'|translate}</label></div>
   <div class="col-md-2">
      <div class="input-group">
         <span class="input-group-addon">{'Prefix'|translate}</span>
         <input type="text" class="form-control input-sm" name="data[bank_account_prefix]" size="6" maxlength="6" value="{$body.data.bank_account_prefix}"
                onKeyPress="checkInputData('int');"/>
      </div>
   </div>
   <div class="col-md-3">
      <div class="input-group">
         <span class="input-group-addon">{'bank_account_number'|translate}</span>
         <input type="text" class="form-control input-sm" name="data[bank_account_number]" size="10" value="{$body.data.bank_account_number}"
                onKeyPress="checkInputData('int');"/>
      </div>
   </div>
   <div class="col-md-3">
      <div class="input-group">
         <span class="input-group-addon">{'bank_code'|translate}</span>
         <input type="text" class="form-control input-sm" name="data[bank_code]" size="4" maxlength="4" value="{$body.data.bank_code}"
                onKeyPress="checkInputData('int');"/>
      </div>
   </div>
</div>
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'bank_name'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[bank_name]" size="50" maxlength="50" value="{$body.data.bank_name}">
   </div>
</div>
{*<div class="form-group">
   <div class="col-md-2 control-label"><label>{'bank_var_symbol'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[bank_var_symbol]" size="10" maxlength="10" value="{$body.data.bank_var_symbol}"
             onKeyPress="checkInputData('int');"/>
   </div>
   <div class="col-md-2 control-label"><label>{'bank_konst_symbol'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[bank_konst_symbol]" size="10" maxlength="10" value="{$body.data.bank_konst_symbol}"
             onKeyPress="checkInputData('int');"/>
   </div>
</div>*}
<div class="form-group">
   <div class="col-md-2 control-label"><label>{'bank_iban'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[bank_iban]" size="30" maxlength="30" value="{$body.data.bank_iban}">
   </div>
   <div class="col-md-2 control-label"><label>{'bank_swift'|translate}</label></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm" name="data[bank_swift]" size="11" maxlength="11" value="{$body.data.bank_swift}">
   </div>
</div>
{if !findModule('translations') && findModule('currencies') && !empty($cfg.Currencies['EUR'])}
   <div class="form-group">
      <div class="col-md-2 control-label"><label>Pro EUR platby: {'bank_iban'|translate}</label></div>
      <div class="col-md-3">
         <input type="text" class="form-control input-sm" name="data[bank_iban_EUR]" size="30" maxlength="30" value="{$body.data.bank_iban_EUR}">
      </div>
      <div class="col-md-2 control-label"><label>{'bank_swift'|translate}</label></div>
      <div class="col-md-3">
         <input type="text" class="form-control input-sm" name="data[bank_swift_EUR]" size="11" maxlength="11" value="{$body.data.bank_swift_EUR}">
      </div>
   </div>
{/if}
<div class="row">
   <div class="col-md-2 control-label">
      <label>{'InvoiceName'|translate}</label>
      <a class="help-tip" data-toggle="tooltip" title="{'InvoiceNameCode'|translate}"><i class="bi bi-question-circle"></i></a>
   </div>
   <div class="col-md-4">
      <div class="input-group">
         <input type="text" class="form-control input-sm" name="data[invoice_name]" value="{$body.data.invoice_name}"/>
         <span class="input-group-addon">.pdf</span>
      </div>
   </div>
</div>
{*<div class="form-group">*}
{*<div class="col-md-2 control-label"><label>Patička faktury</label></div>*}
{*<div class="col-md-8">*}
{*<textarea name="data[invoice_footer]" class="form-control input-sm" rows="3" cols="30">{$body.data.invoice_footer}</textarea>*}
{*</div>*}
{*</div>*}


<div class="row bottom-space">
   <div class="col-md-12">
      <h1 class="h4 main-panel-title">{'Bookkeeping'|translate}</h1>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label two-lines"><label>{'shop_orders_finished'|translate}</label>
      <a class="help-tip" data-toggle="tooltip" title="Objednávky vyřízené před tímto datem (včetně) již nepůjde editovat."><i
                 class="bi bi-question-circle"></i></a></div>
   <div class="col-md-3">
      <input type="text" class="form-control input-sm datetime-picker" name="data[shop_orders_finished]" id="dateOrdersFinished" maxlength="19"
             value="{$body.data.shop_orders_finished|format_date:'admin'}" onkeypress="checkInputData('date');" autocomplete="off"/>
      {insert_calendar selector='#dateOrdersFinished' format='date'}
   </div>

   <div class="col-md-2 control-label"><label>{'shop_due_days'|translate}</label></div>
   <div class="col-md-3">
      <div class="input-group">
         <input type="text" class="form-control input-sm" name="data[shop_due_days]" maxlength="3" value="{$body.data.shop_due_days}"
                onkeypress="checkInputData('int');"/>
         <span class="input-group-addon">{'Day'|translate}</span>
      </div>
   </div>
</div>
{if findModule('invoices')}
   <div class="form-group">
      <div class="col-md-2 control-label">
         <label>Generovat faktury</label>
      </div>
      <div class="col-md-1">
         {print_toggle name="generate_invoices"}
      </div>
      <div class="col-md-7">
         <span class="help-block">Zapnout generování čísel faktur</span>
      </div>
   </div>
{/if}

<div class="row bottom-space">
   <div class="col-md-12">
      <h1 class="h4 main-panel-title">{'TermsAndConditions'|translate}</h1>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label two-lines">
      <label>{'terms_and_conditions_file'|translate}</label>
      <a class="help-tip" data-toggle="tooltip" title="{'terms_and_conditions_file_info'|translate}"><i class="bi bi-question-circle"></i></a>
   </div>
   <div class="col-md-4">
      <div class="input-group">
         <input type="text" class="form-control input-sm" id="terms_and_conditions_file" name="data[terms_and_conditions_file]"
                value="{$body.data.terms_and_conditions_file}" placeholder="pdf"/>
         <div class="input-group-btn">
            {insert_file_browse link="terms_and_conditions_file"}
         </div>
      </div>
   </div>
</div>

<div class="row bottom-space">
   <div class="col-md-12">
      <h1 class="h4 main-panel-title">{'other'|translate}</h1>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label">
      <label>{'invoiceNote'|translate}<a class="help-tip" data-toggle="tooltip" title="{'invoiceNoteTooltip'|translate}"><i class="glyphicon
      glyphicon-question-sign"></i></a></label>
   </div>
   <div class="col-md-8">
      <textarea name="data[note_invoice]" class="form-control input-sm" rows="3" cols="30">{$body.data.note_invoice}</textarea>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label">
      <label>{'invoiceQRPayment'|translate}</label>
   </div>
   <div class="col-md-1">
      {print_toggle name="invoice_qr_payment"}
   </div>
   <div class="col-md-7">
      <span class="help-block">{'invoiceQRPaymentTooltip'|translate}</span>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label">
      <label>{'divideDiscountPrice'|translate}</label>
   </div>
   <div class="col-md-1">
      {print_toggle name="divide_discount_price"}
   </div>
   <div class="col-md-7">
      <span class="help-block">{'divideDiscountPriceTooltip'|translate}</span>
   </div>
</div>

<div class="form-group">
   <div class="col-md-2 control-label">
      <label>{'invoiceRoundingBalance'|translate}</label>
   </div>
   <div class="col-md-1">
      {print_toggle name="invoice_rounding_balance"}
   </div>
   <div class="col-md-7">
      <span class="help-block">{'invoiceRoundingBalanceTooltip'|translate}</span>
   </div>
</div>
