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

<div class="container-fluid px-4">

    <div class="card mt-4">
                   <div class="card-header">
                    <?php if(session('status')): ?>
                    <div class="alert alert-success"><?php echo e(session('status')); ?></div>
                <?php endif; ?>
                                  <h1 class=""><?php echo e(__('countryCodeList')); ?></h1>
                                  <div class="table-responsive text-nowrap">
                                  <table id="myDataTable" class="table" width="100%" cellspacing="0">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th><?php echo e(__('countryCode')); ?></th>
                                            <th><?php echo e(__('status')); ?></th>
                                            <th><?php echo e(__('action')); ?></th>

                                        </tr>
                                    </thead>
                                    <tbody  class="table-border-bottom-0">
                                        <!-- Table rows -->
                                        <?php $__currentLoopData = $CountryCodes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($code->id); ?></td>
                                            <td><?php echo e($code->c_code); ?></td>
                                            <td> <?php if($code->status == 1): ?>
                                                <span class="badge bg-label-primary me-1">  <?php echo e(__('publish')); ?></span>
                                                <?php else: ?>
                                                <span class="badge bg-label-danger me-1">  <?php echo e(__('unpublish')); ?></span>
                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <a href="<?php echo e(url('admin/edit-country-code?c_code_id='.$code->id)); ?>" class="btn btn-primary"><?php echo e(__('edit')); ?></a>
                                                <a href="<?php echo e(url('admin/delete-country-code/'.$code->id)); ?>" class="btn btn-danger"><?php echo e(__('delete')); ?></a>
                                            </td>

                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                   </div>





    </div>

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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/admin/country_code/view_c_code.blade.php ENDPATH**/ ?>