<?php
include "../../layout/classModal.php";

$id = $_POST['rowid'];

$crud = new crudData;
$tahun_tabel = substr($id, 7, 4);

$tb_siswa = "tb_siswa" . $tahun_tabel;
$payment_list = "payment_list" . $tahun_tabel;
$nis = $crud->getValue($payment_list, " where payment_id='$id'", 'nis');
$id_siswa = $crud->getValue($tb_siswa, "where nis='$nis'", 'id');


?>
<div class="card-body">
    <form action="<?php $classPage = new linkpage();
                    echo $classPage->pageAction('transfer/reset_exec'); ?>" method="post">
        <?php $csrf->token();
        ?>
        <input type="text" name="id_billing" value="<?php echo $id;
                                                    ?>" hidden>
        <input type="text" name="id_siswa" value="<?php echo $id_siswa;
                                                    ?>" hidden>
        <input type="text" name="tahun_tabel" value="<?php echo $tahun_tabel;
                                                        ?>" hidden>
        <input type="text" name="status" value="DRAF" hidden>


        <div class="row ">

            <p class="footnote pl-2 mt-2 "><i>Yakin akan Reset Status Billing ? ID Billing : <?php echo $id . "---" . $payment_list; ?></i></p>
        </div>
        <div class="mt-3">
            <div class="row">
                <div class="col-auto">
                    <div class='float-right'>
                        <button type='submit' class='btn btn-success btn-xs' name='submitReset'><i class='bi-check2-circle'></i> YA, RESET STATUS</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>