@extends('layouts.app')

@section('content')

<div class="container">
    <div class="row">
        <div class="col-md-12">

            <div class="card">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb pb-3">
                      <li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
                      <li class="breadcrumb-item"><a href="{{ route('laporan') }}">Laporan</a></li>
                      <li class="breadcrumb-item active" aria-current="page">Imbang Duga</li>
                    </ol>
                  </nav>

                <div class="card-body text-center">
                  <div class="row form-group">
                    <div class="col-md-2"></div>
                    <div class="col-md-15"></div>
                  </div>
                  <div class="container">
                  <form method="post" onsubmit="loadingmodal()">
                    @csrf
                    <div class="row">
                      <div class="col-sm-2">Tarikh</div>
                      <div class="col-sm-4"><input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datetimepicker2" name="datetimepicker2"    autocomplete="off"  aria-describedby="basic-addon1"></div>
                    </div>
                    <br>
                    <div class="row">
                      <div class="col-sm-3"></div>
                      <div class="col-sm-1"> <input type="submit" class="btn btn-success ml-md-1" id="submit_button" name="submit_button" value="Cetak Laporan "   formaction="{{route('imbangduga.cetak')}}"></div>
                    </div>
                  </form>
                  </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</div>

<script type="text/javascript">

    var api_url = "<?php echo $api_url ?>";
    var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";

    $(document).ready( function () {
            console.log('dsasa');
            $('#datetimepicker2').datepicker({
                format: 'dd-mm-yyyy'
            });

        });

    function loadingmodal()
    {
      Swal.fire({
        title: 'Memuatkan...',
        allowEscapeKey : false,
        allowOutsideClick: false,
        didOpen: function () {
            Swal.showLoading()
        }
        });
    }

</script>

@endsection



