   <!--start main wrapper-->
    <main class="main-wrapper">
        <div class="main-content">
            <button class="btn guestBtn d-flex gap-2 align-items-center" id="backBtn"><img
                    src="<?php echo base_url(); ?>assets/images/arowleft.svg" alt="" width="15px"> Back</button>
            <div class="row">
                <div class="col-md-8 my-2">
                    <h3 class="fmon">Add Banned People</h3>
                </div>

            </div>
            <div class="modal-body">

<?php
// echo "<pre>";
// print_r($units);
// echo "</pre>";
?>

                <form  method="post" enctype="multipart/form-data" action="<?php echo base_url('site/addbannedpost'); ?>" >
                    <div class="row">
                        <div class="col-md-6 my-2">
                            <input type="text" name="name" id="name" class="form-control FormInput" placeholder="Name">
                        </div>
                        <div class="col-md-6 my-2">
                            <input type="text" name="identification" id="identification" class="form-control FormInput"
                                placeholder="Identification">
                        </div>
                        <div class="col-md-6 my-2">
                            <input type="text" name="nationality" id="nationality" class="form-control FormInput"
                                placeholder="Nationality">
                        </div>
                        <div class="col-md-6 my-2">
                            <input type="date" name="banned_date" id="banned_date" class="form-control FormInput"
                                placeholder="Banned Date">
                        </div>
                        <div class="col-md-6 my-2">
                            <select name="banned_by" id="banned_by" class="form-control FormInput">
                                <option value="">Banned By (Unit Number)</option>
                                <?php foreach($units as $k=> $unit){
                                $myid=$k;
                                if($unit['owner']!=''){
                               $myid=$k."-".$unit['owner'];
                                }else{
                                    $myid=$k."-".$unit['tenant'];
                                }
                                ?>
                            <option value="<?php echo $myid; ?>"><?php echo $unit['unit'].' ('.$unit['zone'].')'; ?></option>
                            <?php } ?>


                            </select>                        
                            
                            </div>
                        <div class="col-md-6 my-2">
                            <input type="text" name="reason" id="reason" class="form-control FormInput"
                                placeholder="Reason" />
                        </div>
                        <div class="col-m-12 my-2">
                            <div class="brower2 d-flex justify-content-center align-items-center">
                                <div class="d-flex flex-column align-items-center">
                                    <img src="<?php echo base_url(); ?>assets/images/up2.png" alt="" width="20px">
                                    <small>Drage and Drop here or <label for="file" class="text-primary"
                                            style="cursor: pointer;">Browse Files</label></small>
                                    <input class="d-none" type="file" name="file" id="file">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 my-2 d-flex justify-content-center">
                            <button type="submit" class="btn autBtn py-2 px-5">Banned</button>
                        </div>
                    </div>
                </form>

                <!-- button for attahmnts -->



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

    </main>
    <!--end main wrapper-->
