<?php $__env->startSection('content'); ?>
<head>
  <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
</head>
<div class="container-fluid px-4">

    <div class="card mt-4">
                   <div class="card-header">
                                  <h1 class=""><?php echo e(__('addCountryCode')); ?></h1>
                                  <!-- <button type="C_submit" onclick="login()" class="btn btn-primary"><?php echo e(__('addCountryCode')); ?></button> -->
                   </div>

                   <div class="card-body">

                     <?php if($errors->any()): ?>
                     <div class="alert alert-danger">

                         <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <div><?php echo e($error); ?></div>

                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                     </div>

                     <?php endif; ?>

                        <form action="<?php echo e(url('admin/add-Country-Code')); ?>" method="POST" enctype="multipart/form-data">

                                                 <?php echo csrf_field(); ?>
                                                 <div class="mb-3">
                                                                <label for=""><?php echo e(__('countryCode')); ?>

                                                                </label>
                                                                <input type="text" name="c_code" class="form-control"placeholder ="<?php echo e(__('enterCountryCode')); ?>">
                                                 </div>

                                                  <div class="mb-3">
                                                    <label class="form-label" for="country"><?php echo e(__('countryCodeStatus')); ?></label>
                                                    <select id="select" name="status" class="select2 form-select">
                                                      <option value="1"><?php echo e(__('publish')); ?></option>
                                                      <option value="0"><?php echo e(__('unpublish')); ?></option>

                                                    </select>
                                                  </div>



                                                    <button type="C_submit" onclick="login()" class="btn btn-primary"><?php echo e(__('addCountryCode')); ?></button>

                                                    
                                                    
                                                    <a class="btn btn-success" href="<?php echo e(url('admin/view-country-code')); ?>"><?php echo e(__('viewCountryCode')); ?></a>
                                                    



                                  </form>


                   </div>

    </div>
    <script>
      function login(){


$.ajax({
                    url: "http://127.0.0.1:8000/api/line/31?line_id=lineeesksdfmkass",
                    method: 'PUT',
					// data: {
					// 	           email_or_mobile: '01982255978',
          //              password: '12345678'

          //           },
                    headers: {
                        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')

                    },
                    success: function(response) {
                        console.log(response.message);
                        console.log($('meta[name="csrf-token"]').attr('content'));


                    },
                    error: function(xhr, status, error) {
                        console.log(error);
                    }
                }
				);

      }
 </script>
</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/add_c_code.blade.php ENDPATH**/ ?>