<style>
	.select2-container--open .select2-dropdown {
	 left: 0;
	 top: 0px;
	 border: 1px solid #000 !important;
 }
	 
	 .select2-container--default.select2-container--focus .select2-selection--multiple {
	 border: solid #00000057 1px;
	 outline: 0;
	 padding: 0px 10px;
 }
	 .select2-container--default.select2-container--focus .select2-selection--multiple {
	 border: solid #00000063 1px !important;
 /*            border-radius: 35px !important;*/
	 }
	 
	 
	 .select2-container--default .select2-selection--multiple {
	 border-radius: 5px !important;
 }
	 .select2-container--default .select2-selection--multiple .select2-selection__choice {
	 margin-bottom: 5px;
 }
	 
	 .select2-container--default .select2-selection--multiple .select2-selection__choice {
		 background-color: #01b4b7 !important;
	 color: #fff;
 }
	 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
		 color: #fff !important;
	 background: #ff4444;
	 border: 0;
 }
	textarea.select2-search__field {
	 display: none;
 } 
	 
	 span.select2-selection.select2-selection--multiple {
	 min-width: 180px;
	 margin-top: 8px;
	 min-height: 40px;
 }
	 
	 
	 span.select2-selection.select2-selection--multiple {
		 -webkit-appearance: none;
   -moz-appearance: none;
   background: transparent;
   background-image: url(../../assetsnew/img/drp.svg);
   background-repeat: no-repeat;
   background-position-x: 95%;
   background-position-y: 13px;
   border: 1px solid #dfdfdf;
   border-radius: 2px;
   margin-right: 2rem;
   padding: 1rem;
   padding-right: 2rem;
 }
 </style>
 
 
 
 
 
 <?php $__env->startSection('content'); ?>
 <div class="common-content">
		   <div class="page-content">
				 <div class="page-heading">
					 <div class="headings">
						 <h6>Certificates</h6>
					 </div>
				 </div>
				 
			   <div class="boxings">
 
			 
				   
				   
 
 
 
				 <div class="page-heading">
					 <div class="headings">
					   <!--  <h6>Registred Buyers</h6>-->
					 </div>
				 </div>
 
				  <div class="tableBox hideshadow" style="padding-top: 15px;">    
				   
				
				 <table id="example" class="table table-striped table-bordered" style="width:100%">
					 <thead>
						<tr>
							<th>No</th>
							<th>Course Title</th>
							<th>Certificates</th>
												
						</tr>
					 </thead>
					 <tbody>
					 <?php $__currentLoopData = $certi; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$cer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						 <?php
							$user_id=Auth::user()->id;
							
						?>
						 <tr>
							 <td><?php echo e($key+1); ?></td>
							 <td><?php echo e(ucfirst($cer['course_name'] )); ?></td>
							 <td><a href="<?php echo e($cer['certificate_url']); ?>" target="_blank">Click here</a></td>						
						 </tr>
 
					 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					 </tbody>
				 </table>
					  
			
				 </div> <!-- boxings End -->
 
				 
 </div>
 <?php $__env->stopSection(); ?>
 
 
 <?php $__env->startSection('scripts'); ?>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
 <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.23/js/jquery.dataTables.js"></script>
 
 <script type="text/javascript">
 $(".js-example-basic-multiple").select2({
   placeholder: "Select a Buyer"
 });
 </script>
 <script>
   $('#buyer').on('change', function() {
	   var buyerid = this.value;
	   var APP_URL = <?php echo json_encode(url('/getbuyerdetails')); ?> ;
	   var saveData = $.ajax({
			 type: 'GET',
			 url: APP_URL+'/'+buyerid,
			 data: { buyerid: buyerid, _token: '<?php echo e(csrf_token()); ?>' },
			 dataType: "text",
			 success: function(resultData) {
 
			   var res = JSON.parse(resultData);
			   $('#phone_no').val(res.phone_no);
			   $('#email').val(res.email);
			   console.log(res);
			 }
			 });
 
	 });
 </script>
 <script>
 <?php if(Session::has('message')): ?>
	   swal({
		 title: "",
		 text: "<?php echo e(Session::get('message')); ?>",
		 type: "success",
		 showCancelButton: false,
		 dangerMode: false,
		 confirmButtonText: 'OK',
 
	 });
 <?php endif; ?>
 <?php if(Session::has('errormessage')): ?>
	   swal({
		 title: "",
		 text: "<?php echo e(Session::get('errormessage')); ?>",
		 type: "error",
		 showCancelButton: false,
		 dangerMode: true,
		 confirmButtonText: 'OK',
 
	 });
 <?php endif; ?>
 </script>
 <script>
 $(document).ready(function() {
	 $('#example').DataTable();
 } );
 </script>
 <script>
 $("#create").click(function(){
	// alert("bbbb");
	 $("#buyer_register").validate({
		 rules: {
 
			 "buyer": {
				 required: true
 
			 },
		 },
		 submitHandler: function(form, e) {
			  $(".pageloader").show();
			 $(".pageloader").delay(5000).fadeOut("slow");
			form.submit();
		 }
	 });
 });
 $(function(){
	 $('#buyer_register').on('submit', function(event){
		 event.preventDefault();
 
	 });
 });
 
 </script>
 <?php $__env->stopSection(); ?>
 
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/certificatelist.blade.php ENDPATH**/ ?>