<?php $__env->startSection('container'); ?>
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <h1 class="h2">Penggajian</h1>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="card card-default rounded-0 shadow">
                <div class="card-header">
                    <div class="row">
                        <div class="col-lg-10 col-md-10 col-sm-8 col-xs-6">
                            <h3 class="card-title">Penggajian</h3>
                        </div>
                        <div class="col-lg-2 col-md-2 col-sm-4 col-xs-6" align="right">
                            <button type="button" id="addGaji" class="btn btn-primary" data-bs-toggle="modal"
                                data-bs-target="#addGajiModal" class="btn btn-primary bg-gradient btn-sm rounded-1"><i
                                    class="far fa-plus-square"></i> New Gaji</button>
                        </div>

                    </div>
                    <div class="clear:both"></div>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-sm-12 table-responsive">
                            <table id="supplierList" class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>Name</th>
                                        <th>Gaji / Bulan</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                    </tr>
                                    <tr>
                                        <th scope="row">1</th>
                                        <td>tes</td>
                                        <td>tes</td>
                                        <td><a class="badge bg-warning "><i class="bi bi-pencil"></i></a><button
                                                class="badge bg-danger border-0"
                                                onclick="return confirm('Are You Sure ?')"><i
                                                    class="bi bi-trash3"></i></button></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    
    <div class="modal fade" id="addGajiModal" tabindex="-1" aria-labelledby="addGajiModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="addGajiModalLabel">Tambah Gaji Baru</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                
                
                <div class="modal-body">
                    <form>
                        <div class="mb-3">
                            <label for="pegawai" class="form-label">Nama Pegawai</label>
                            <select class="form-select" name="pegawai">
                                <option value="" disabled selected>Select Pegawai</option>
                                <!-- Add other options here if needed -->
                            </select>
                        </div>
                        
                        <div class="mb-3">
                            <label for="gaji" class="form-label">Gaji / Bulan</label>
                            <input type="text" class="form-control  <?php $__errorArgs = ['gaji'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="gaji"
                                name="gaji" required value="<?php echo e(old('gaji')); ?>" placeholder="Nominal Gaji">
                            <?php $__errorArgs = ['gaji'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="invalid-feedback">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </form>
                    

                </div>
                
                <div class="modal-footer">
                     <button type="button" class="btn btn-success">Tambah Gaji</button>
                     <button type="button" class="btn btn-danger" data-bs-dismiss="modal">Cancel</button>

                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Coding Skripsi\bengkel\resources\views/penggajian.blade.php ENDPATH**/ ?>