<?php if(!defined('INDEX')) die(); ?>

<section class="content-header">
    <h1><i class="fa fa-plus-circle text-blue"></i> Tambah Macam Tebusan</h1>
</section>

<section class="content">
    <div class="row">
        <div class="col-md-4">
            <div class="box box-solid box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title"><i class="fa fa-info-circle"></i> Informasi</h3>
                </div>
                <div class="box-body text-center">
                    <i class="fa fa-heartbeat fa-5x text-blue" style="margin-bottom: 20px;"></i>
                    <p class="text-muted">
                        Halaman ini digunakan untuk menambah daftar aksi positif atau jenis penebusan poin yang tersedia bagi siswa.
                    </p>
                </div>
            </div>

            <div class="callout callout-info shadow-sm">
                <h4><i class="fa fa-lightbulb-o"></i> Tips:</h4>
                <p>Gunakan nama tebusan yang jelas (Contoh: Membersihkan Masjid) dan tentukan jumlah poin pengurangan yang adil.</p>
            </div>
        </div>

        <div class="col-md-8">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">Identitas Macam Tebusan</h3>
                </div>
                <form action="?hal=pebus_insert" method="post" class="form-horizontal">
                    <div class="box-body">
                        
                        <div class="form-group">
                            <label class="col-sm-3 control-label">Nama Penebusan</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-tag"></i></span>
                                    <input type="text" name="nama" class="form-control" placeholder="Masukkan nama aksi positif..." required>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">Nilai Poin</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-minus-circle"></i></span>
                                    <input type="number" name="poin" class="form-control" placeholder="Jumlah poin yang dikurangi..." required>
                                </div>
                                <p class="help-block"><small>* Poin ini akan otomatis mengurangi total pelanggaran siswa.</small></p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">Kode Unik</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-key"></i></span>
                                    <input type="text" name="kode" class="form-control" placeholder="Contoh: TBS01" required>
                                </div>
                            </div>
                        </div>

                    </div>
                    
                    <div class="box-footer">
                        <div class="pull-right">
                            <a href="?hal=pebus" class="btn btn-default"><i class="fa fa-arrow-left"></i> Kembali</a>
                            <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Simpan Data</button>
                        </div>
                        <button type="reset" class="btn btn-danger"><i class="fa fa-refresh"></i> Reset</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>