

<?php $__env->startSection('content'); ?>
<!-- start page title -->

            <div class="container-xxl flex-grow-1 container-p-y">
<?php if(session('success')): ?>
<div class="alert alert-success">
    <?php echo e(session('success')); ?>

</div>
<?php endif; ?>
<!-- end page title -->
<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-body">
                <h4 class="mb-3 header-title mt-0">Daftar Pesanan Gift Skin</h4>
                <div class="table-responsive">
                    <table class="table m-o">
                        <thead>
                            <tr>
                                <th>OID</th>
                                <th>Layanan</th>
                                <th>UID</th>
                                <th>Zone ID</th>
                                <th>Nickname</th>
                                <th>Status Gift Skin</th>
                                <th>Aksi</th>
                            </tr>
                        </thead>
                        <tbody>
                           <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $datas): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                            $label_pesanan = '';
                            if($datas->status == "Sukses"){
                            $label_pesanan = 'success';
                            }else{
                            $label_pesanan = 'danger';
                            }
                            ?>
                            
                           
                           <tr>
                               <th scope="row">#<?php echo e($datas->order_id); ?></th>
                               <td><?php echo e($datas->layanan); ?></td>
                               <td><?php echo e($datas->user_id); ?></td>
                               <td><?php echo e($datas->zone); ?></td>
                               <td><?php echo e($datas->nickname); ?></td>
                               <td>
                                   <div class="btn-group-vertical">
                                        <button id="btnGroupDrop1" type="button" class="btn btn-<?php echo e($label_pesanan); ?> dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> <?php echo e($datas->status); ?> <i class="mdi mdi-chevron-down"></i> </button>
                                        <ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
                                            <li><a class="dropdown-item" href="/giftskin-status/<?php echo e($datas->order_id); ?>/Sukses">Sukses</a></li>
                                            <li><a class="dropdown-item" href="/giftskin-status/<?php echo e($datas->order_id); ?>/Proses">Proses</a></li>
                                    </div>
                               </td>
                               <td>
                                    <a class="btn btn-danger" href="/giftskin/hapus/<?php echo e($datas->id); ?>">Hapus</a>
                               </td>
                           </tr>
                          
                           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
               
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $('.table').DataTable({
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('main-admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u870822285/domains/tokovouchergame.com/public_html/project/resources/views/components/admin/datagiftskin.blade.php ENDPATH**/ ?>