<?= $this->extend('layout/main') ?>

<?= $this->section('page_title') ?>
<style>
.separator{
    width: 100%;
    height: 5px;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
    background-color: lightgreen;
}
</style>

<div class="row border-bottom">
    <div class="col-sm-6"><div class="d-flex gap-3"><img src="<?=base_url()?>img/logo.png" width="50"><h3 class="mb-0">Comp Pay</h3></div></div>
    <div class="col-sm-6">
        <ol class="breadcrumb float-sm-end">
        <li class="breadcrumb-item"><a href="<?=base_url()?>">Home</a></li>
        <li class="breadcrumb-item"><a href="<?=base_url()?>Export Laporan">Export</a></li>
        <li class="breadcrumb-item active" aria-current="page">Export Voucher Penerimaan</li>
        </ol>
    </div>
</div>
<?= $this->endSection() ?>

<?= $this->section('content') ?>
<div class="row mb-3">
    <div class="col-lg-12 d-flex justify-content-end gap-2">
        <a href="<?=base_url()?>exportlaporan" class="btn btn-sm btn-warning btn-icon"><i class="button-icon bi bi-arrow-left-circle"></i> <span>Kembali</span></a>
    </div>
</div>
<div class="mb-3">
    <h4>Export Voucher Penerimaan</h4>
    <hr/>
    <p>Silahkan pilih periode export dibawah ini : </p>
</div>
<div class="row g-4">
    <div class="col-lg-8">
        <form name="f1" id="f1" action="<?=base_url()?>exportlaporan/export_voucher_penerimaan_proses" target="_blank" method="post" enctype="multipart/form-data">
            <div class="card card-warning card-outline mb-4">
                <div class="card-header">
                    <div class="card-title">Periode Export</div>
                </div>
                <div class="card-body">
                    <div class="row mb-3">
                        <label for="start_date" class="col-sm-3 col-form-label">Tanggal Awal : </label>
                        <div class="col-sm-9">
                            <input type="date" class="form-control" id="start_date" name="start_date" value="<?=date("Y-m-d")?>">
                            <span id="estart_date" class="text-danger invalid-feedback"></span>
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="end_date" class="col-sm-3 col-form-label">Tanggal Akhir : </label>
                        <div class="col-sm-9">
                            <input type="date" class="form-control" id="end_date" name="end_date" value="<?=date("Y-m-d")?>">
                            <span id="eend_date" class="text-danger invalid-feedback"></span>
                        </div>
                    </div>
                </div>
                <div class="card-footer d-flex">
                    <button type="submit" class="btn btn-primary">Proses</button>
                </div>
            </div>
        </form>        
    </div>
</div>
<?= $this->endSection() ?>

<?= $this->section('page_script') ?>
<?= $this->include('layout/css/sweetalert') ?>
<?= $this->include('layout/js/sweetalert') ?>

<script type="text/javascript">
$(document).ready(function() {

// $("#f1").submit(function (e) {
//     e.preventDefault();

    
// });

});
</script>
<?= $this->endSection() ?>