<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="clearfix"></div>
<div class="panel_s mtop20">
    <div class="panel-body">
        <div class="col-md-10 col-md-offset-1">
            <div class="row">
                <div class="col-md-12">
                    <div class="mtop10 display-block">
                        <?=form_open("factura/mobilPayRedirect/$id/$hash")?>
                        <fieldset>
                            <legend><?=_l('mobil_pay_billing_data')?></legend>
                            <?php
                            echo render_select('billing_type', $billingTypes, array('id','name'), 'mobil_pay_billing_type', 'company'); ?>
                            <?php echo render_input('billing_first_name', 'mobil_pay_billing_first_name', $client ? $client->first_name : ''); ?>
                            <?php echo render_input('billing_last_name', 'mobil_pay_billing_last_name', $client ? $client->last_name : ''); ?>
                            <?php echo render_input('billing_address', 'mobil_pay_billing_address', $client ? $client->address : ''); ?>
                            <?php echo render_input('billing_email', 'mobil_pay_billing_email', $client ? $client->email : ''); ?>
                            <?php echo render_input('billing_mobile_phone', 'mobil_pay_billing_mobile_phone', $client ? $client->phonenumber : ''); ?>
                        </fieldset>
                        <input class="btn btn-success" type="submit" value="Plateste">
                        <?=form_close()?>
                    </div>
                </div>
            </div>
        </div>  <?php if (is_client_logged_in() && has_contact_permission('invoices')) { ?>
              <center>

                  <a href="<?php echo site_url('clienti/facturi/'); ?>" class="btn btn-default pull-right">
                      <?php echo _l('client_go_to_dashboard'); ?>
                  </a></center>
          <?php } ?>
    </div>
</div>
