<?php
session_start();
if (isset($_SESSION['_session']['user']) &&  (time() - $_SESSION['_session']['LAST_ACTIVITY']  < $_SESSION['_session']['koha'])) {
    $_SESSION['_session']['LAST_ACTIVITY']  = time();


    require 'header.php';
?>
    <style>
        .list-group-item {
            position: relative;
            display: block;
            padding: 0.75rem 1.25rem;
            margin-bottom: -1px;
            background-color: #fff;
            border: 1px solid rgba(0, 0, 0, .125);
        }

        .form-control {
            border: 1px solid #d2d2d2;
            border-radius: 2px;
        }
    </style>
    <div class="content-wrapper" style="padding-top: 50px; padding-bottom: 20px;">
        <div class="container" style="background-color: white; padding-top: 15px; padding-bottom: 58px">
            <div class="row"> <!-- row -->
                <!-- START / DATAS OF institucion  -->
                <div class="col-md-8 order-md-1">
                    <h4 class="mb-3">Të dhënat Personale </h4>
                    <div class="row">
                        <div class="col-md-12 mb-12">
                            <label for="firstName">Institucioni </label>
                            <input type="text" class="form-control" id="firstName" placeholder="Olive Medical & Lab" value="">
                        </div>
                        <div class="col-md-12 mb-12">
                            <label for="">Personi përgjegjës </label>
                            <input type="text" class="form-control" id="name_ln" placeholder="emri mbiemri (nese ka)" value="">
                        </div>
                    </div>
                    <div class="mb-3">
                        <label for="email">Email</label>
                        <input type="email" class="form-control" id="email" placeholder="olivemedicalgroup@gmail.com">
                    </div>
                    <div class="mb-3">
                        <label for="address">Qyteti</label>
                        <input type="text" class="form-control" id="address" placeholder="Prishtinë">
                    </div>
                    <div class="mb-3">
                        <label for="address">Data porosisë</label>
                        <input type="date" class="form-control" id="address" placeholder="">
                    </div>
                </div> <!-- card 1 -->
                <!-- CHECKOUT  -->
                <div class="col-md-4 order-md-2 mb-4">
                    <!-- card 2 -->
                    <h4 class="d-flex justify-content-between align-items-center mb-3">
                        <span class="text-muted">Shporta</span>
                    </h4>
                    <ul class="list-group mb-3">
                        <li class="list-group-item d-flex justify-content-between lh-condensed">
                            <div>
                                <h5 class="my-0">Reagent test 1 kuti </h5><!-- EMRI PRODUKTIT -->
                                <small class="text-muted">REAGJENT </small><!-- EMRI BRENDIT -->
                            </div>
                            <span class="text-muted">€20</span><!-- CMIMI  -->
                        </li>
                        <li class="list-group-item d-flex justify-content-between lh-condensed">
                            <div>
                                <h5 class="my-0">SFRI test product</h5><!-- EMRI PRODUKTIT -->
                                <small class="text-muted">SFRI </small><!-- EMRI BRENDIT -->
                            </div>
                            <span class="text-muted">€100</span><!-- CMIMI  -->
                        </li>

                        <li class="list-group-item d-flex justify-content-between">
                            <span>Total (EU)</span>
                            <strong>€120</strong>
                        </li>
                    </ul>
                </div> <!-- card 2 -->
                <!--END OF CHECKOUT  -->
            </div> <!-- row -->
            <button class="btn btn-info btn-m pull-right" type="submit">Përfundo porosinë</button>
        </div>
    </div>

<?php require 'footer.php';
} else {
    header("location:../logout.php");
}
?>