 <?php $__env->startSection('content'); ?>
<div class="content-wrapper merchant-right-side">

        <section class="content-header">
          
		
    	<div class="pull-right">
    		<a class="btn btn-primary" href="<?php echo url('merchant/view_qr_create'); ?>">Add New QR Code</a>

		</div><br><br>
           <?php echo $__env->make('includes.messages', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </section>

        <!-- Main content -->
        <section class="content">
        <div class="row">
            <div class="col-xs-12">
              <div class="box">
               
                <div class="box-body table-responsive no-padding">
                <?php if(count($list) == 0): ?>
					<p class='notice'><?php echo trans('admin::users.pages.no_record_found'); ?></p>
				<?php else: ?> 
				 <table id="userdetail" class="table table-bordered table-striped">
				 <thead>
				 	<tr>
				 		<th>Name of the QR Code</th>
				 		<th>Note</th>
						<th>No. of Scans</th>
						<th>Print QR</th>
						
						<th>Delete</th>
				 	</tr>
				 </thead>
				 <tbody>
				 <?php foreach($list as $newlist): ?>
				 <tr>
				 <td><a href="<?php echo url('merchant/qrReport/'.$newlist->id); ?>"><?php echo $newlist->name; ?></a></td>
				 <td><?php echo $newlist->qr_note; ?></td>
				 <td><?php echo $newlist->no_scan; ?></td>
				 <td> 
				<a href="#" onclick="qrcode1(<?php echo $newlist->id;?>)" class="qrprnt">Print QR Code</a><img style="height: 60px; width: 60px;" src="<?php echo asset('uploads/qrcode/'.$newlist->qr_image); ?>" />
				</td>
			 	<td><a href="<?php echo url('merchant/deleteBasicQr/'.$newlist->id); ?>"><i class="fa fa-trash"></i> Delete</a></td>
				 </tr>
				  <?php endforeach; ?>
				 </tbody>
				 </table>
				 <?php endif; ?>
           
	              </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div>
          </div>
        </section><!-- /.content -->
      </div>
      

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



	<script>
$('.token_summary').keypress(function (e) {
	if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
        return false;
    }
});
</script>

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

<?php echo $__env->make('layouts.merchant-backend-layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>