<!-- Main content -->
<div class="content-wrapper">

    <!-- Inner content -->
    <div class="content-inner">

        <!-- card card-header -->
        <div class="card card-header">

            <div class="text-center border-bottom mb-3">
                <h4 class="page-title fw-bold"><?= $translate["enterprise_information"]; ?></h4>
            </div>

            <form action="" id="frmEnterprise" autocomplete="off" enctype="multipart/form-data" method="POST">

                <input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">

                <div class="col-lg-8 offset-lg-2 mt-3">

                    <input type="hidden" name="requested" value="customer">
                    <input type="hidden" name="ent_id" id="ent_id">

                    <div class="row mb-3">
                        <label class="col-lg-3 col-form-label"><?= $translate["enterprise_name"]; ?> <span class="text-danger fs-15px">*</span></label>
                        <div class="col-lg-9">
                            <div class="input-group">
                                <span class="input-group-text"><i class="ph ph-building-office"></i></span>
                                <input type="text" class="form-control form-control-lg" name="ent_name" id="ent_name" required autocomplete="off" placeholder="<?= $translate["enterprise_name"]; ?>">
                            </div>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label class="col-lg-3 col-form-label"><?= $translate["document_type"]; ?></label>
                        <div class="col-lg-9">
                            <div class="input-group">
                                <span class="input-group-text"><i class="ph ph-folder"></i></span>
                                <select class="form-control form-control-lg select2" data-width="1%" name="ent_document" id="ent_document">
                                    <option value="EIN" selected>EIN</option>
                                    <option value="NIF">NIF</option>
                                    <option value="RNC">RNC</option>
                                    <option value="DNI">DNI</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label class="col-lg-3 col-form-label"><?= $translate["document_number"]; ?></label>
                        <div class="col-lg-9">
                            <div class="input-group">
                                <span class="input-group-text"><i class="ph ph-hash-straight"></i></span>
                                <input type="text" class="form-control form-control-lg" name="ent_document_number" id="ent_document_number" required autocomplete="off" placeholder="<?= $translate["document_number"]; ?>">
                            </div>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label class="col-lg-3 col-form-label"><?= $translate["email"]; ?></label>
                        <div class="col-lg-9">
                            <div class="input-group">
                                <span class="input-group-text"><i class="ph-envelope-simple"></i></span>
                                <input type="email" class="form-control form-control-lg" name="ent_email" id="ent_email" required autocomplete="off" placeholder="email@domain.com">
                            </div>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label class="col-lg-3 col-form-label"><?= $translate["website"]; ?></label>
                        <div class="col-lg-9">
                            <div class="input-group">
                                <span class="input-group-text"><i class="ph-globe"></i></span>
                                <input type="text" class="form-control form-control-lg" name="ent_website_url" id="ent_website_url" required autocomplete="off" placeholder="domain.com">
                            </div>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label class=" col-lg-3 col-form-label"><?= $translate["logo"]; ?></label>
                        <div class="col-lg-7 col-md-9">
                            <input type="file" class="form-control form-control-lg new_picture" name="ent_logo" id="ent_logo">
                            <div class="form-text fw-medium text-muted"><?= $translate["accepted_formats_png_jpg_2_mb"]; ?></div>
                        </div>
                        <div class="col-lg-2 col-md-3 text-end">
                            <img src="assets/images/no-image.png" class="w-100px h-100px rounded-pill picturePreview">
                        </div>
                    </div>

                    <div class="col-lg-12 d-flex justify-content-right border-bottom mb-3">
                        <h4 class="text-uppercase mb-0 fs-base"><?= $translate["access_code"]; ?></h4>
                    </div>

                    <div class="row">

                        <div class="col-lg-4 col-md-12">
                            <div class="mb-3">
                                <label class="form-label"><?= $translate["cancellation_code"]; ?></label>
                                <div class="input-group">
                                    <span class="input-group-text"><i class="ph-lock"></i></span>
                                    <input type="number" class="form-control form-control-lg" name="ent_cancel_password" id="ent_cancel_password" required autocomplete="off" value="1234" placeholder="****">
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-4 col-md-12">
                            <div class="mb-3">
                                <label class="form-label"><?= $translate["discount_code"]; ?></label>
                                <div class="input-group">
                                    <span class="input-group-text"><i class="ph-lock"></i></span>
                                    <input type="number" class="form-control form-control-lg" name="ent_discount_password" id="ent_discount_password" required autocomplete="off" value="1234" placeholder="****">
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-4 col-md-12">
                            <div class="mb-3">
                                <label class="form-label"><?= $translate["statistics_code"]; ?></label>
                                <div class="input-group">
                                    <span class="input-group-text"><i class="ph-lock"></i></span>
                                    <input type="number" class="form-control form-control-lg" name="ent_statistic_password" id="ent_statistic_password" required autocomplete="off" value="1234" placeholder="****">
                                </div>
                            </div>
                        </div>

                    </div>

                </div>

            </form>

            <hr class="mt-4 mb-3">

            <div class="text-center">
                <divv class="btn-group">
                    <button type="button" class="btn btn-indigo btnEdit"><i class="ph-check-circle me-2"></i> <?= $translate["update_informations"]; ?></button>
                </divv>
            </div>

        </div>
        <!-- /inner content -->

    </div>

</div>
<!-- /main content -->

<script src="scripts/enterprises.js?v=<?= md5(time()) ?>"></script>