 
<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
			<h1 class="pull-left">Report- Total Rewards Verified</h1>
			<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-md-4" style="">&nbsp;</div>
				<div class="col-md-4" style="">
					<a href="<?php echo url('merchant/rewardClaimDownload'); ?>"><input type="button" class="btn btn-primary" name="view report" value="Download Excel"></a>
				</div>
				
			<div class="col-md-4" style="float:right;">
			 	<?php echo Form::open(array('url'=>'merchant/reportRewardClaim','method'=>'GET','role'=>"form",'files'=>true,'id'=>'adds-add-form')); ?>

					<div class="col-md-8">
							<div class="form_group">
								<?php echo Form::text('name',Input::old('name'),array('class' => 'form-control')); ?>

							</div>
					</div>
					
					<div class="form_group">
						<?php echo Form::label('', '',['class' => '']); ?>

						<input type="submit" class='btn btn-primary' name="Search" value="Search">&emsp;
					</div>
				<?php echo Form::close(); ?>

			</div><br/><br/>
		</div>
		<div class="row">
            <div class="col-md-12">
              <div class="box">
					<div class="box-body">
					  <?php if(count($data) == 0): ?>
					<p class='notice'><?php echo trans('admin::users.pages.no_record_found'); ?></p>
				<?php else: ?>
					
					 <table id="userdetail1" class="table table-bordered table-striped">
                  				<thead>
                  				<tr>
                  				<th>Date</th>
                  				<th>Time</th>
								<th>Name</th>
								<th>Mobile Number</th>
								<th>Email ID</th>
								<th>Unique Code</th>
								<th>Reward Name </th>
								
								<th>Comments</th>
								<th>Merchant Id</th>
								</tr>
								</thead>
							<tbody>
								<style>
								tr td table{
												text-align: center;
											}
								tr td table tr th{}
								</style>	
                    	  <?php foreach($data as $ad ): ?>
                                                <?php 
/*$key1=(new BaseController())->generate_key_string();
$key2=(new BaseController())->generate_key_string();

$en1=(new BaseController())->encryption($key2.'_'.$ad->user_id);
$en2=(new BaseController())->encryption($key1.'_'.$ad->merchant_id);
$str1=strtr(base64_encode($en1), '+/=', '-_,');
$str2=strtr(base64_encode($en2), '+/=', '-_,');*/
//$str2=strtr(base64_encode($key1.'_'.$ad->merchant_id), '+/=', '-_,');
//$str1=strtr(base64_encode($key2.'_'.$ad->user->id), '+/=', '-_,');

?>
                  			<tr>
                  				<td><?php echo date('Y-m-d',strtotime($ad->rewardtime2)); ?></td>
								<td><?php echo date('H:i:s',strtotime($ad->rewardtime2)); ?></td>
                  				<td><?php echo $ad->name; ?></td>
                  				<td><a href="<?php echo url('merchant/appuser/views/'.$ad->user_id.'/'.$ad->merchant_id); ?>"><?php echo $ad->mobile; ?></a></td>
                  				<td><?php echo $ad->email; ?></td>
                  				<td><?php echo $ad->coupon_code; ?></td>
                  				<td><?php echo $ad->new; ?></td>
                  				<td><?php echo $ad->cfeedback; ?></td>
                  				<td><?php echo $ad->M_account; ?></td>
                  				
                  				
                  				
                  			
							</tr>
							<?php endforeach; ?>

					
							</tbody>
                </table>
			 <?php endif; ?>
					</div><!--close boxbody-->
				</div><!--close box-->
<?php $name = Input::get('name'); ?>
<?php echo $data->appends(array('name' => $name))->links(); ?>
			</div><!--close col-md-12-->
		</div><!--close row-->	
</div>	


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