<?php
include_once ('assets/blocks/header.php');
?>
<body>
<!-- Layout wrapper -->
<div class="layout-wrapper layout-content-navbar">
    <div class="layout-container">
        <!-- Menu -->


        <!-- / Menu -->

        <!-- Layout container -->
        <div class="layout-page main_table_block">
            <!-- Navbar -->



            <!-- / Navbar -->

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

                <div class="container-xxl flex-grow-1 container-p-y">
                    <div class="row user_detail_row">
                        <div class="col-lg-12">
                            <div class="col-lg-1">
                                <p>Admin</p>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-lg-12">
                            <h4 class="fw-bold py-3 mb-4 main_table_ttl"><span class="text-muted fw-light">Godkänn behörighet till företag</span></h4>
                            <p class="main_table_sub_ttl">Person som ansöker tillgång till ett eller flera av dina företag är förvald nedan.</p>
                        </div>
                    </div>

                    <div class="row table_select_option_row">
                        <div class="col-12 col-sm-12 col-md-12 col-xl-12 col-xxl-12 col-lg-12">
                            <div class="col-lg-8 table_select_option_block">
                                <div class="col-12 col-sm-12 col-md-7 col-lg-7 select_one">
                                    <p>Person som ansöker:</p>


                                    <div class="btn-group custom_btn_group">
                                        <button
                                                type="button"
                                                class="btn btn-outline-primary dropdown-toggle text-left "
                                                data-bs-toggle="dropdown"
                                                aria-expanded="false"
                                        >
                                            Primary
                                        </button>
                                        <ul class="dropdown-menu custom_dropdown">
                                            <li><span class="dropdown-item" href="#1">Action</span></li>
                                            <li><span class="dropdown-item" href="#2">Another action</span></li>
                                            <li><span class="dropdown-item" href="#3">Something else here</span></li>

                                        </ul>
                                    </div>
                                </div>
                                <div class="col-12 col-sm-12 col-md-5 col-lg-5 select_two">
                                    <p>Tjänst:</p>

                                    <div class="btn-group">
                                        <button
                                                type="button"
                                                class="btn btn-outline-primary dropdown-toggle text-left custom_dropdown"
                                                data-bs-toggle="dropdown"
                                                aria-expanded="false"
                                        >
                                            Primary
                                        </button>
                                        <ul class="dropdown-menu custom_dropdown">
                                            <li><span class="dropdown-item" href="#4">Action</span></li>
                                            <li><span class="dropdown-item" href="#5">Another action</span></li>
                                            <li><span class="dropdown-item" href="#6">Something else here</span></li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>



                    <!-- Basic Bootstrap Table -->
                    <div class="row table_block">
                        <div class="col-lg-12 table_card_block">
                            <div class="card">
                                <!--                        <h5 class="card-header">Table Basic</h5>-->
                                <div class="table-responsive text-nowrap">
                                    <table class="table">
                                        <thead>
                                        <tr>
                                            <th>Företag</th>
                                            <th>Adminstratör</th>
                                            <th>Aktiv</th>
                                        </tr>
                                        </thead>
                                        <tbody class="table-border-bottom-0">
                                        <?php
                                        for ($x = 0; $x <= 20; $x++) {
                                            ?>
                                            <tr>
                                                <td>Scandinavian Selected Homes AB</td>
                                                <td>
                                                    <div class="form-check form-switch">
                                                        <input class="form-check-input" type="checkbox" role="switch">
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="form-check form-switch">
                                                        <input class="form-check-input" type="checkbox" role="switch">
                                                    </div>
                                                </td>
                                            </tr>
                                            <?php
                                        }
                                        ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--/ Basic Bootstrap Table -->

                    <div class="row bottom_btn_block">
                        <div class="col-12 col-sm-12 col-md-12 col-lg-12">
                            <div class="col-lg-6 col-6 bottom_logo_block">
                                <img src="assets/img/favicon/finansia-logo_color.svg" class="btm_btn_block_color_img">
                            </div>
                            <div class="col-lg-6 col-6 bottom_button_block">
                                <button type="button" class="btn btn-primary">BEKRÄFTA</button>
                            </div>
                        </div>
                    </div>

                    <!--/ Responsive Table -->
                </div>
                <!-- / Content -->

                <!-- Footer -->
                <footer class="content-footer footer bg-footer-theme">

                </footer>
                <!-- / Footer -->

                <div class="content-backdrop fade"></div>
            </div>
            <!-- Content wrapper -->
        </div>
        <!-- / Layout page -->
    </div>

    <!-- Overlay -->
    <div class="layout-overlay layout-menu-toggle"></div>
</div>

<div class="modal fade ansok_till_e_post_main_modal" id="e_post_modal" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered logga_in_modal_block" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <!--                                                <h5 class="modal-title" id="modalCenterTitle">Modal title</h5>-->
                <div class="col-12 col-sm-12 col-md-12 col-lg-12 e_post_modal_img align-items-center justify-content-center d-flex">
                    <div>
                        <p>Ansök till företag</p>
                        <p>Ansök om tillgång till företag via e-post.</p>
                    </div>
                </div>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12 fore_e_post_ttl">
                        <p>Firmatecknarens E-postadress</p>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12 input_modal_fore_e_post">
                        <input
                                type="text"
                                id="nameWithTitle"
                                class="form-control"
                                placeholder="E-postadress"
                        />
                    </div>
                </div>

                <div class="row foretag_e_post_btn">
                    <div class="col-lg-12">
                        <button type="button" class="btn rounded-pill" onclick="location.href ='https://productions2.parkwaylabs.com/finansia/Logga_in_Ansok_om_tillgang_till_foretag_2.php'">ANSÖK</button>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>



<!-- / Layout wrapper -->
<?php
include_once ('assets/blocks/footer.php');
?>
<script type="text/javascript">
    $(window).on('load', function() {
        $('#e_post_modal').modal('show');
    });
</script>