<?php $__env->startSection('body'); ?>
    <div class="page-content"><div class="container"><div class="card content-area"><div class="card-innr"><div class="card-head"><h4 class="card-title"><?php echo e($giftcard->name); ?> Types</h4></div><table class="data-table dt-init user-list"><thead><tr class="data-item data-head"><th class="data-col dt-user">Image</th> <th class="data-col dt-token">Name</th>  <th class="data-col dt-status"><div class="dt-status-text">Status</div></th><th class="data-col"></th></tr></thead><tbody>
<a href="#" data-toggle="modal" data-target="#createcoin" class="btn btn-sm btn-primary btn-outline"><em class="ti ti-giftcard"></em>Create New Giftcard Type</a>
 


 <?php $__currentLoopData = $giftcardtype; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="data-item"> <td class="data-col dt-token"><span class="lead lead-btoken">
    <img src="<?php echo e(asset('giftcards')); ?>/<?php echo e($giftcard->image); ?>" width="100"
                             alt="<?php echo e($giftcard->image); ?>"></span></td>
    <td class="data-col dt-user"><span class="lead user-name"><?php echo e($data->name); ?></span><span class="sub user-id">1<?php echo e($data->currency); ?> = <?php echo e($basic->currency_sym); ?><?php echo e(number_format($data->rate, $basic->decimal)); ?></span></td>

<td class="data-col dt-status">

<?php if($data->status == 1): ?>
<span class="dt-status-md badge badge-outline badge-success badge-md">Active</span>
<span class="dt-status-sm badge badge-sq badge-outline badge-success badge-md">A</span>
<?php else: ?>
<span class="dt-status-md badge badge-outline badge-danger badge-md">Inactive</span>
<span class="dt-status-sm badge badge-sq badge-outline badge-danger badge-md">I</span>
<?php endif; ?>

</td><td class="data-col text-right"><div class="relative d-inline-block"><a href="#" class="btn btn-light-alt btn-xs btn-icon toggle-tigger"><em class="ti ti-more-alt"></em></a><div class="toggle-class dropdown-content dropdown-content-top-left"><ul class="dropdown-list"><li><a href="<?php echo e(route('editcardtype2',$data->id)); ?>"><em class="ti ti-eye"></em> View Details</a></li>
<?php if($data->status != 1): ?>
<li><a href="<?php echo e(route('activatecardtype',$data->id)); ?>"><em class="ti ti-check"></em> Activate</a></li>
<?php endif; ?>
<?php if($data->status == 1): ?>
<li><a href="<?php echo e(route('deactivatecardtype',$data->id)); ?>"><em class="ti ti-na"></em> Deactivate</a></li>
<?php endif; ?>
<li><a href="<?php echo e(route('deletecardtype',$data->id)); ?>"><em class="ti ti-trash"></em> Delete</a></li></ul></div></div></td></tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<!-- .data-item --></tbody></table></div><!-- .card-innr --></div><!-- .card --></div><!-- .container --></div><!-- .page-content -->





<!-- .modal-dialog --></div><!-- Modal End --><div class="modal fade" id="createcoin" tabindex="-1"><div class="modal-dialog modal-dialog-md modal-dialog-centered"><div class="modal-content"><div class="popup-body"><h4 class="popup-title">Create New <?php echo e($giftcard->name); ?> Giftcard</h4> <p>Fill the form below to create a new product type for the <?php echo e($giftcard->name); ?>.</p>

<div class="input-item input-with-label">

<form role="form" method="POST" action="<?php echo e(route('storecard2',$giftcard->id)); ?>" name="editForm" enctype="multipart/form-data">
                                <?php echo e(csrf_field()); ?>


                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label class="input-item-label text-exlight">Giftcard Type:</label>
                                        <div class="input-group">
                                            <input type="text" class="input-bordered" placeholder="Card  Name" value="<?php echo e(old('name')); ?>"
                                                   name="name">

                                        </div>

                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="input-item-label text-exlight"> Giftcard Rate</label>
                                        <input type="text"class="input-bordered"  placeholder="Exchnage Rate" value="<?php echo e(old('rate')); ?>"
                                               name="rate">


                                    </div> 
                                    <div class="form-group col-md-12">
                                        <label class="input-item-label text-exlight"> Giftcard Currency</label>
                                        <input type="text"class="input-bordered"  placeholder="Currency" value="<?php echo e(old('currency')); ?>"
                                               name="currency">


                                    </div>

                                </div>
                                 




                            </div><!-- .input-item --><ul class="d-flex flex-wrap align-items-center guttar-30px"><li><button type="submit" class="btn btn-primary">Create Giftcard Type</button></form></li><li class="pdt-1x pdb-1x"><a href="#" data-dismiss="modal" data-toggle="modal" data-target="#pay-online" class="link link-primary">Cancel</a></li></ul><div class="gaps-2x"></div><div class="gaps-1x d-none d-sm-block"></div></div></div><!-- .modal-content --></div><!-- .modal-dialog --></div><!-- Modal End -->
                            
                            
                            
                            
                            
                            
<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.admindashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>