
<?php
    $bazar = $db->selectAll('bazar','where base_id='.$userData['base_id'])   ;
    $product=$db->getProductData('and type in('.PRODUCT_TYPE_FINISHED.','.PRODUCT_TYPE_GIFT_ITEM.') ');
    $hours=[];
    $minuet =[] ;
    for($i=0;$i<60;$i++){
        $title = ($i<10)?'0'.$i:strval($i);  
        $minuet[$title]  = $title;
    }
    for($i=0;$i<24;$i++){
        $title = ($i<10)?'0'.$i:strval($i);  
        $hours[$title]  = $title;
    }

?>

<section class="mb-4" id="sale_bazar">
    <div class="card">
        <div class="card-header text-center py-3"> 
            <h5 class="mb-0 text-center">
                <strong>Bazar visit</strong>
            </h5>
        </div>
        <div class="card-body">

            <?php
                include 'visit_date_time_input.php';
            ?>

            <?php $general->inputBoxSelect($bazar,'Bazar','bazar-id','id','title',haveSelect:'Select bazar');?> 

            <?php $general->inputBoxTextArea('note','Note');?>
            <hr/> 
          
            
            <div><button onclick="bazar_visit()" class="mt-1 btn-lg btn-success pull-right bazar_visit">SUBMIT</button></div>
        </div>
    </div>
</section>
