

<?php $__env->startSection('content'); ?>

<div class="container">

    <div class="card">

        <div class="card-header">
            <h4>Tambah Penggajian</h4>
        </div>

        <div class="card-body">

            <form action="<?php echo e(route('penggajian.store')); ?>"
                  method="POST">

                <?php echo csrf_field(); ?>

                <div class="mb-3">
                    <label>Guru</label>

                    <select name="guru_id"
                            class="form-control"
                            required>

                        <option value="">
                            Pilih Guru
                        </option>

                        <?php $__currentLoopData = $guru; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $g): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <option value="<?php echo e($g->id); ?>">
                            <?php echo e($g->nama); ?>

                        </option>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </select>
                </div>

                <div class="mb-3">
                    <label>Periode</label>

                    <input type="month"
                           name="periode"
                           class="form-control"
                           required>
                </div>

                <div class="mb-3">
                    <label>Total Jam Mengajar</label>

                    <input type="number"
                           name="total_jam"
                           class="form-control"
                           required>
                </div>

                <div class="mb-3">
                    <label>Tarif Per Jam</label>

                    <input type="number"
                           name="tarif"
                           class="form-control"
                           required>
                </div>

                <div class="mb-3">
                    <label>Tunjangan</label>

                    <input type="number"
                           name="tunjangan"
                           class="form-control"
                           value="0">
                </div>

                <div class="mb-3">
                    <label>Potongan</label>

                    <input type="number"
                           name="potongan"
                           class="form-control"
                           value="0">
                </div>

                <button type="submit"
                        class="btn btn-success">

                    Simpan

                </button>

                <a href="<?php echo e(route('penggajian.index')); ?>"
                   class="btn btn-secondary">

                    Kembali

                </a>

            </form>

        </div>

    </div>

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\sistem-gaji-sekolah\resources\views/penggajian/create.blade.php ENDPATH**/ ?>