@extends('layouts.app_operasi')

@section('content')
<style>
    .file {
        visibility: hidden;
        position: absolute;
    }
</style>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <nav aria-label="breadcrumb">
                <ol class="breadcrumb pb-3">
                  <li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
                  <li class="breadcrumb-item active" aria-current="page">Pengenalan Diri</li>
                </ol>
              </nav>

            <div class="card">
                <div class="card-body">
                    <div class="text-center">
                        <h5 class="text-uppercase">masukkan poskod</h5>
                        <form name="frmsearch" onsubmit="verifynokp()" action="{{ route('admin.searchpelanggan') }}" method="GET">
                            <div class="row justify-content-center">
                                <div class="col-md-9">
                                    <div class="input-group my-3">
                                        <input type="text" class="form-control" id="noic" name="noic" placeholder="No Kad Pengenalan Pelanggan" aria-label="No Kad Pengenalan Pelanggan" autocomplete="off" value="{{$search ?? '' == false ? '' : $noic ?? ''}}" aria-describedby="button-addon2">
                                        <div class="input-group-append">
                                            <button class="btn btn-outline-primary" type="submit" id="button-addon2">Cari</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    @if($search ?? '' == true )
                    <div class="text-center mt-3">
                        <button type="button" style="margin:auto" class="btn btn-primary" onclick="newcustomer()">
                            Daftar Pelanggan
                        </button>
                    </div>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    var api_url = "<?php echo $api_url ?>";
</script>
@endsection