<?php $__env->startSection('isi'); ?>
    <div class="container-fluid">
        <div class="card">
            <div class="card-header">
                <center>
                    <h3><?php echo e($karyawan->name); ?></h3>
                    <a href="<?php echo e(url('/karyawan/shift/'.$karyawan->id.'/tambah-shift')); ?>" class="btn btn-primary"><i class="fa fa-plus"></i> Tambah Shift Karyawan</a>
                </center>

            </div>
            <div class="card-body">
                <table id="tableprint" class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>No.</th>
                            <th>Tanggal</th>
                            <th>Shift Karyawan</th>
                            <th>Jam Masuk</th>
                            <th>Jam Keluar</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $shift_karyawan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <td><?php echo e($sk->tanggal); ?></td>
                                <td><?php echo e($sk->Shift->nama_shift); ?></td>
                                <td><?php echo e($sk->Shift->jam_masuk); ?></td>
                                <td><?php echo e($sk->Shift->jam_keluar); ?></td>
                                <td>
                                    <a href="<?php echo e(url('/karyawan/edit-shift/'.$sk->id)); ?>" class="btn btn-sm btn-warning"><i class="fa fa-solid fa-edit"></i></a>
                                    <form action="<?php echo e(url('/karyawan/delete-shift/'.$sk->id)); ?>" method="post" class="d-inline">
                                        <?php echo method_field('delete'); ?>
                                        <?php echo csrf_field(); ?>
                                        <input type="hidden" name="user_id" value="<?php echo e($karyawan->id); ?>">
                                        <button class="btn btn-danger btn-sm btn-circle" onClick="return confirm('Are You Sure')"><i class="fa fa-solid fa-trash"></i></button>
                                    </form>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\ricky\resources\views/karyawan/mappingshift.blade.php ENDPATH**/ ?>