<%- include('partials/header') %>

<h2>Firmendaten</h2>

<form method="POST" class="row g-3">

    <!-- ================= -->
    <!-- FIRMA -->
    <!-- ================= -->
    <h4>Unternehmen</h4>

    <div class="col-md-6">
        <input name="firmenname" class="form-control"
               value="<%= company.firmenname %>"
               placeholder="Firmenname" required>
    </div>

    <!-- ================= -->
    <!-- ADRESSE -->
    <!-- ================= -->
    <h4 class="mt-4">Adresse</h4>

    <div class="col-md-6">
        <input name="strasse" class="form-control"
               value="<%= company.strasse %>"
               placeholder="Straße">
    </div>

    <div class="col-md-2">
        <input name="hausnummer" class="form-control"
               value="<%= company.hausnummer %>"
               placeholder="Nr.">
    </div>

    <div class="col-md-2">
        <input name="plz" class="form-control"
               value="<%= company.plz %>"
               placeholder="PLZ">
    </div>

    <div class="col-md-4">
        <input name="ort" class="form-control"
               value="<%= company.ort %>"
               placeholder="Ort">
    </div>

    <div class="col-md-4">
        <input name="land" class="form-control"
               value="<%= company.land %>"
               placeholder="Land">
    </div>

    <!-- ================= -->
    <!-- KONTAKT -->
    <!-- ================= -->
    <h4 class="mt-4">Kontakt</h4>

    <div class="col-md-4">
        <input name="telefon" class="form-control"
               value="<%= company.telefon %>"
               placeholder="Telefon">
    </div>

    <div class="col-md-4">
        <input name="email" class="form-control"
               value="<%= company.email %>"
               placeholder="E-Mail">
    </div>

    <div class="col-md-4">
        <input name="web" class="form-control"
               value="<%= company.web %>"
               placeholder="Webseite">
    </div>

    <!-- ================= -->
    <!-- SEPA -->
    <!-- ================= -->
    <h4 class="mt-4">SEPA / Bank</h4>

    <div class="col-md-4">
        <input name="iban" class="form-control"
               value="<%= company.iban %>"
               placeholder="IBAN">
    </div>

    <div class="col-md-4">
        <input name="bic" class="form-control"
               value="<%= company.bic %>"
               placeholder="BIC">
    </div>

    <div class="col-md-4">
        <input name="glaeubiger_id" class="form-control"
               value="<%= company.glaeubiger_id %>"
               placeholder="Gläubiger-ID">
    </div>

    <!-- ================= -->
    <!-- SPEICHERN -->
    <!-- ================= -->
    <div class="col-12 mt-4">
        <button class="btn btn-primary w-100 btn-lg">
            💾 Firmendaten speichern
        </button>
    </div>

</form>

<a href="/users/dashboard" class="btn btn-link mt-3">
    ⬅ Zurück zum Dashboard
</a>

<%- include('partials/footer') %>
