<section class="content px-2 py-5 bg-gradient-primary">
    <h1 class="font-weight-bolder text-center my-3">Verify Travel Pass</h1>
</section>
<style>
    .post-img{
        width:100%;
        max-height:15em;
        object-fit:scale-down;
        object-position:center center;
        transition:transform .3s ease-in-out
    }
    #post-list .list-group-item:hover .post-img{
        transform:scale(1.2);
    }
    #post-list .list-group-item:nth-child(even){
        direction:rtl
    }
    input[name="code"]{
        border-top-right-radius:0 !important;
        border-bottom-right-radius:0 !important;
    }
    #search-btn{
        border-top-left-radius:0 !important;
        border-bottom-left-radius:0 !important;
    }
</style>
<div class="row justify-content-center" style="margin-top:-2em">
    <div class="col-lg-10 col-md-11 col-sm-12 col-xs-12">
        <div class="card card-outline-navy rounded-0 shadow">
            <div class="card-body">
                <div class="container-fluid py-5">
                    <div class="row mb-3 justify-content-center">
                            <div class="col-lg-8 col-md-10 col-sm-12 col-xs-12">
                                <form action="" id="search">
                                    <div class="input-group input-group-lg">
                                        <input type="search" name="code" class="form-control form-control-lg rounded-pill" aria-label="Code Input" placeholder="Enter Pass Code" value="<?= isset($_GET['code']) ? $_GET['code'] : '' ?>">
                                        <button class="btn btn-lg btn-outline-secondary rounded-pill" type="button" id="search-btn"><i class="fa fa-search"></i></button>
                                    </div>
                                    <div class="form-group text-center my-4">
                                        <button class="btn btn-primary btn-lg rounded-pill bg-gradient-primary px-4">Verify Travel Pass</button>
                                    </div>
                                </form>
                            </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $('#search').submit(function(e){
            e.preventDefault()
            location.href = ".?page=view_pass&"+$(this).serialize()
        })
    })
</script>