
<?php $__env->startSection('title','QR Produk'); ?>
<?php $__env->startSection('content'); ?>
        
        <div class="breadcrumbs">
            <div class="breadcrumbs-inner">
                <div class="row m-0">
                    <div class="col-sm-4">
                        <div class="page-header float-left">
                            <div class="page-title">
                                <h1>QR Produk</h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-8">
                        <div class="page-header float-right">
                            <div class="page-title">
                                <ol class="breadcrumb text-right">
                                    <li><a href="#">Master</a></li>
                                    <li><a href="#">QR Produk</a></li>
                                    <li class="active">Data QR Produk</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- Content -->
        <div class="content">
            <div class="animated fadeIn">
                <div class="row">

                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <strong class="card-title">Data QR Produk</strong>
                            </div>
                            <div class="card-body">
                                
                                
                                <table id="bootstrap-data-table" class="table table-striped table-bordered">
                                    <thead>
                                        <tr>
                                            <th>No.</th>
                                            
                                            <th>Produk</th>
                                            <th>Gambar</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $produk; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                 <td><?php echo e($loop->iteration); ?></td>
                                                 
                                                 <td><?php echo e($value->judul); ?></td>
                                                 <td>
                                                    <?php
                                                        $gambar = $value->gambar;
                                                        $daftarGambar = explode(";", $gambar); // pisahkan string menjadi array    
                                                    ?>
                                                    <img style="width: 30%" src="<?php echo e(url('../asset/img_produk/'.$daftarGambar[0])); ?>" alt="">
                                                 </td>
                                                 <td>
                                                     
                                    
                                                    <a href="<?php echo e(route('qr_produk.edit', $value->id_produk)); ?>" class="btn btn-warning">Lihat QR</a>
                                                           
                                                            
                                                           
                                                        
                                                 </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>


                </div>
            </div><!-- .animated -->
        </div><!-- .content -->
        <!-- /.content -->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home3/baktijay/public_html/ptgib.co.id/admin/resources/views/master/qr_produk/index.blade.php ENDPATH**/ ?>