<div class="modal-content">
    <div class="modal-header">
        <h5 class="modal-title"><?php echo @$title ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    </div>
    <div class="modal-body">
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Tanggal</label>
            <div class="col-sm-3">
                <input type="date" class="form-control" id="tanggal" name="tanggal" value="<?php echo @$tanggal ?>">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Nama Kasir/Pegawai</label>
            <div class="col-sm-9">
                <select class="form-control" id="pegawai" name="pegawai" onchange="caridapat(this.value)" required>
                    <option value="">-- pilih pegawai --</option>
                    <?php
                    foreach ($datapegawai as $hasil) {
                        ?>
                        <option value="<?php echo $hasil->kode_pegawai ?>"><?php echo $hasil->pegawai ?></option>
                        <?php
                    }
                    ?>
                </select>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Total Penjualan</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="penjualan" name="penjualan" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Retur Penjualan</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="retur" name="retur" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Piutang Penjualan</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="piutang" name="piutang" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Pendapatan Poin</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="poin" name="poin" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Pendapatan Koin</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="koin" name="koin" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Pendapatan Non Tunai</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="non" name="non" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Pendapatan Tunai</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="tunai" name="tunai" value="" readonly>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Jumlah Setoran</label>
            <div class="col-sm-9">
                <input type="number" class="form-control" id="setoran" name="setoran" value="" autofocus>
            </div>
        </div>
    </div>
    <input type="hidden" name="id" id="id" value="<?php echo @$id ?>">
    <div class="modal-footer right-content-between">
        <button type="submit" class="btn bg-gradient-success"><i class="fa fa-save"></i> Simpan</button>
        <button type="button" class="btn bg-gradient-danger" data-dismiss="modal"><i class="fa fa-times"></i> Batal</button>
    </div>
</div>