
<?php $__env->startSection('title'); ?> Vehicules <?php $__env->stopSection(); ?>

<?php $__env->startSection('styles'); ?>
    <style>
        .name_field {
            padding:4px;
            font-weight:bold;
            font-family:courier;
            font-size:1.7em;
            color:white;
        }

        .numero_field {
            padding:18px;
            font-weight:bold;
            font-family:courier;
            font-size:1.7em;
            color:white;
        }
    </style>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>

    <div class="card card-primary">
        <div class="card-header" align="center">
            <h4 id='title'>Chercher un Véhicule ou un Propriétaire</span>
            </h4>
        </div>
        <div class='card-body card-primary'  >

            <?php if(Session::has('message')): ?>
                <div class="alert alert-warning"><?php echo Session::get('message'); ?></div>
            <?php endif; ?>
    
            <div class="row " id='div_btn_numero'>
                <div class="col-md-4"></div>
                <div class="col-md-4">
                    <button id='btn_numero' type="button" class="btn btn-block btn-info btn-lg">Avec le numéro</button>
                </div>
            </div>
            <br/>
            <div class="row" id='div_btn_nom' >
                <div class="col-md-4"></div>
                <div class="col-md-4 ">
                    <button id='btn_nom' type="button" class="btn btn-block btn-warning btn-lg">Avec le nom</button>
                </div>
            </div>
        
            <div id='div_search' style="display:none">
                <?php echo e(html()->form('POST', url('chercher'))->open()); ?>

                    <div class="row form-group" id='div_nom' >
                        <div class="col-md-4"></div>
                        <div class="col-md-4 ">
                            <input style="padding:30px;text-align:center" id='nom' name='nom' type="text" class="form-control name_field" placeholder="Nom du propriétaire">
                        </div>
                    </div>
                    
                    <div class="row form-group" id='div_numero'>
                        <div class="col-md-4"></div>
                        <div class="col-md-4 ">
                            <input style="padding:30px;text-align:center" id='numero' name='numero' type="text" class="form-control numero_field" placeholder="Numéro de plaque">
                        </div>
                    </div>

                    <div class="row form-group" id='div_numero' style="text-align:center;padding-top:30px">
                        <div class="col-md-5"></div>
                        <div class="col-md-2 ">
                            <button id='btn_submit' type="submit" width="100%" class="btn btn-success">Chercher</button>
                        </div>
                    </div>
                <?php echo e(html()->form()->close()); ?>

            </div>
            <div class="row form-group" id='div_numero' style="text-align:center;padding-top:30px">
                <div class="col-md-5"></div>
                <div class="col-md-2 ">
                    <a href="<?php echo e(url('logout')); ?>" class="btn btn-default">Me deconneter</a>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script type="text/javascript">
        $(function () {
            $("#div_numero").hide();
            $("#div_nom").hide();
            $("#div_search").hide();
            
            $("#btn_numero").click(function() {
                $("#div_btn_numero").hide();  
                $("#div_btn_nom").hide(); 

                $("#div_numero").show();
                $("#div_nom").hide();
                $("#btn_submit").show(); 

                $("#nom").val(''); 
                $("#div_search").show();
                $("#title").html('Chercher un Véhicule'); 
            });
            $("#btn_nom").click(function() {
                $("#div_btn_numero").hide();  
                $("#div_btn_nom").hide(); 

                $("#div_numero").hide(); 
                $("#div_nom").show(); 
                $("#btn_submit").show();  

                $("#numero").val(''); 
                $("#div_search").show();
                $("#title").html('Chercher un Véhicule'); 
            });
        });
    </script>
<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.dash_api', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\DOUANES\SYGI\SYGI3_VISU\resources\views/vehicules/chercher.blade.php ENDPATH**/ ?>