.sub_header
  .inner
    %h2
      =qit('my-account', 'Mon compte')


.main_wrapper.general_padding


  .main_center.white_background

    %p
      =qit('hello', 'Bonjour')
      =current_p_customer.particular.firstname if current_p_customer.particular
      =current_p_customer.particular.name if current_p_customer.particular


    -if @p_customer_sheets = current_p_customer.p_customer_sheets.where("state != 'Panier web'").order("created_at DESC") and @p_customer_sheets.count > 0
      %h2
        =qit('my-orders', 'Mes commandes')
      %table.table
        %tr
          %th
            N°

          %th
            =qit('order-date', 'Date de la commande')

          %th
            =qit('amount-excl-tax', 'Montant HT')

          %th
            =qit('amount-incl-tax', 'Montant TTC')

          / %th
          /   =qit('status', 'Statut')

          / %th
          /   =qit('deliver', 'Livreur')

          / %th
          /   =qit('tracking-number', 'N° de suivi')

          %th
            =qit('bill', 'Facture')

          %th

        =render @p_customer_sheets


    =link_to qit('change-my-password', "Modifier mon mot de passe"), edit_password_public_p_customer_auths_path()

