<?php
require('menu.inc.php');
$sql = "SELECT * FROM `retailcenter`";
$res = mysqli_query($conn, $sql);


  
?>
<main id="main" class="main">
    <div class="pagetitle">
        <h1>Bölek satuw merkezleri</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="admin_dashboard.php">Admin</a></li>
                <li class="breadcrumb-item">Bölek satuw merkezleri</li>
            </ol>
        </nav>
    </div><!-- End Page Title -->

    <section class="section">
        <div class="row">
            <div class="col-lg-12">

                <div class="card">
                    <div class="card-body">
                        <div class="row">

                            <div class="col">
                                <h5 class="card-title">Bölek satuw merkezleri</h5>
                                <p>Bölek satuw merkezini goşuň, aýyryň we redaktirläň</p>
                            </div>
                            <div class="col text-end">
                                <a href="center.php" type="button" class="btn btn-sm btn-primary mt-3">+ Bölek satuw merkezini goş</a>
                            </div>
                        </div>
                        <div class="table-responsive">

                        <!-- Table with stripped rows -->
                        <table class="table datatable">
                            <thead>
                                <tr>
                                    <th scope="col">#</th>
                                    <th scope="col">Bölek satuw merkeziniň belgisi</th>
                                    <th scope="col">Bölek satuw merkeziniň ady</th>
                                    <th scope="col">şäher_id </th>
                                    <th scope="col">ulanyjy_id </th>
                                    <th scope="col">Salgysy</th>
                                    <!-- <th scope="col">Actions</th> -->
                                </tr>
                                
                            </thead>
                            <tbody>
                                <?php
                                $srno = 1;
                                while ($rows = mysqli_fetch_assoc($res)) {
                                    echo "<tr>";
                                ?>
                                    <td><?php echo $srno; ?></td>
                                    <td><?php echo $rows['center_id']; ?></td>
                                    <td><?php echo $rows['center_name']; ?></td>
                                    <td><?php echo $rows['city_id']; ?></td>
                                    <td><?php echo $rows['user_id']; ?></td>
                                    
                                    <td><?php echo $rows['center_address']; ?></td>
                                   
                                <?php
                                    $srno++;
                                    echo "</tr>";
                                }
                                ?>
                            </tbody>
                        </table>
                        <!-- End Table with stripped rows -->
                            </div>
                    </div>
                </div>

            </div>
        </div>
    </section>
    
</main><!-- End #main -->
<?php

require('footer.inc.php');
?>

