<div class="QA_section QA_section_heading_custom check_box_table">
<div class="QA_table">
<!-- table-responsive -->
<div class="">
<table id="lms_table" class="table Crm_table_active3">
<thead>
<?php if(session()->has('message-success-delete') != "" ||
session()->get('message-danger-delete') != ""): ?>
<tr>
<td colspan="5">
<?php if(session()->has('message-success-delete')): ?>
<div class="alert alert-success">
<?php echo e(session()->get('message-success-delete')); ?>
</div>
<?php elseif(session()->has('message-danger-delete')): ?>
<div class="alert alert-danger">
<?php echo e(session()->get('message-danger-delete')); ?>
</div>
<?php endif; ?>
</td>
</tr>
<?php endif; ?>
<tr>
<th><?php echo e(__('common.SL')); ?></th>
<th><?php echo e(__('certificate.Title')); ?></th>
<th><?php echo e(__('certificate.Body')); ?></th>
<th><?php echo e(__('certificate.Default For')); ?></th>
<?php if(isModuleActive('CPD') || isModuleActive('Membership')): ?>
<th><?php echo e(__('common.Type')); ?></th>
<?php endif; ?>
<th><?php echo e(__('common.Action')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $certificates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$certificate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e(++$key); ?></td>
<td><?php echo e($certificate->title); ?> </td>
<td><?php echo e($certificate->body); ?></td>
<td>
<button type="button" class="primary-btn small fix-gr-bg text-nowrap">
<?php if($certificate->for_course == 1): ?>
<?php echo e(__('certificate.Course')); ?>
<?php elseif($certificate->for_quiz == 1): ?>
<?php echo e(__('certificate.Quiz')); ?>
<?php elseif($certificate->for_class == 1): ?>
<?php echo e(__('certificate.Live Class')); ?>
<?php elseif(isModuleActive('CPD') && $certificate->for_cpd==1 ): ?>
<?php echo e(__('cpd.CPD')); ?>
<?php elseif(isModuleActive('Membership') && $certificate->is_membership==1 ): ?>
<?php echo e(__('membership.Membership')); ?>
<?php endif; ?>
</button>
</td>
<?php if(isModuleActive('CPD') || isModuleActive('Membership')): ?>
<td><?php echo e($certificate->type ? strtoupper($certificate->type) : 'course'); ?></td>
<?php endif; ?>
<td>
<div class="dropdown CRM_dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenu2" data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">
<?php echo e(__('common.Select')); ?>
</button>
<div class="dropdown-menu dropdown-menu-right"
aria-labelledby="dropdownMenu2">
<a class="dropdown-item edit_brand" target="_blank"
href="<?php echo e(route('certificate.view',$certificate->id)); ?>"><?php echo e(__('common.View')); ?></a>
<a class="dropdown-item edit_brand"
href="<?php echo e(route('certificate.download',$certificate->id)); ?>"><?php echo e(__('common.Download')); ?></a>
<?php if(isModuleActive('CPD') || isModuleActive('Membership')): ?>
<?php if(isModuleActive('CPD') && $certificate->type == 'cpd'): ?>
<?php if($certificate->for_cpd == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#cpd_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('cpd.cpd')); ?>)</a>
<?php endif; ?>
<?php endif; ?>
<?php if(isModuleActive('Membership') && $certificate->type == 'membership'): ?>
<?php if($certificate->is_membership == 0 ||$certificate->is_membership == null): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#membership_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('membership.Membership')); ?>)</a>
<?php endif; ?>
<?php endif; ?>
<?php if($certificate->type == 'course' || $certificate == null): ?>
<?php if($certificate->for_course == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#course_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('certificate.Course')); ?>)</a>
<?php endif; ?>
<?php if($certificate->for_quiz == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#quiz_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('certificate.Quiz')); ?>)</a>
<?php endif; ?>
<?php if($certificate->for_class == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#class_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('certificate.Live Class')); ?>)</a>
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<?php if($certificate->for_course == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#course_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('certificate.Course')); ?>)</a>
<?php endif; ?>
<?php if($certificate->for_quiz == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#quiz_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('certificate.Quiz')); ?>)</a>
<?php endif; ?>
<?php if($certificate->for_class == 0): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#class_certificate<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('certificate.Make Default')); ?>
(<?php echo e(__('certificate.Live Class')); ?>)</a>
<?php endif; ?>
<?php endif; ?>
<?php if(permissionCheck('certificate.edit')): ?>
<a class="dropdown-item edit_brand"
href="<?php echo e(route('certificate.edit', [$certificate->id])); ?>"><?php echo e(__('common.Edit')); ?></a>
<?php endif; ?>
<?php if(permissionCheck('certificate.delete')): ?>
<a class="dropdown-item" data-toggle="modal"
data-target="#certificate_delete<?php echo e($certificate->id); ?>"
href="#"><?php echo e(__('common.Delete')); ?></a>
<?php endif; ?>
</div>
</div>
</td>
</tr>
<div class="modal fade admin-query"
id="certificate_delete<?php echo e($certificate->id); ?>">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('common.Delete')); ?> <?php echo e(__('certificate.Certificate')); ?></h4>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<div class="modal-body">
<div class="text-center">
<h4> <?php echo e(__('common.Are you sure to delete ?')); ?></h4>
</div>
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="primary-btn tr-bg"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?></button>
<?php echo e(Form::open(['route' => array('certificate.destroy',$certificate->id), 'method' => 'DELETE', 'enctype' => 'multipart/form-data'])); ?>
<button class="primary-btn fix-gr-bg"
type="submit"><?php echo e(__('common.Delete')); ?></button>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade admin-query"
id="course_certificate<?php echo e($certificate->id); ?>">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('certificate.Default for Course')); ?></h4>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<div class="modal-body">
<div class="text-center">
<h4> <?php echo e(__('certificate.Are you sure')); ?>?</h4>
</div>
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="primary-btn tr-bg"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?></button>
<?php echo e(Form::open(['route' => array('course.certificate.update',$certificate->id), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<button class="primary-btn fix-gr-bg"
type="submit"><?php echo e(__('certificate.Make Default')); ?></button>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade admin-query"
id="quiz_certificate<?php echo e($certificate->id); ?>">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('certificate.Default for Quiz')); ?></h4>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<div class="modal-body">
<div class="text-center">
<h4> <?php echo e(__('certificate.Are you sure')); ?>?</h4>
</div>
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="primary-btn tr-bg"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?></button>
<?php echo e(Form::open(['route' => array('quiz.certificate.update',$certificate->id), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<button class="primary-btn fix-gr-bg"
type="submit"><?php echo e(__('certificate.Make Default')); ?></button>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade admin-query"
id="class_certificate<?php echo e($certificate->id); ?>">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('certificate.Default for Live Class')); ?></h4>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<div class="modal-body">
<div class="text-center">
<h4> <?php echo e(__('certificate.Are you sure')); ?>?</h4>
</div>
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="primary-btn tr-bg"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?></button>
<?php echo e(Form::open(['route' => array('class.certificate.update',$certificate->id), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<button class="primary-btn fix-gr-bg"
type="submit"><?php echo e(__('certificate.Make Default')); ?></button>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
</div>
<?php if(isModuleActive('CPD')): ?>
<div class="modal fade admin-query"
id="cpd_certificate<?php echo e($certificate->id); ?>">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('cpd.Default for CPD')); ?></h4>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<div class="modal-body">
<div class="text-center">
<h4> <?php echo e(__('certificate.Are you sure')); ?>?</h4>
</div>
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="primary-btn tr-bg"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?></button>
<?php echo e(Form::open(['route' => array('cpd.certificate.update',$certificate->id), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<button class="primary-btn fix-gr-bg"
type="submit"><?php echo e(__('certificate.Make Default')); ?></button>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php if(isModuleActive('Membership')): ?>
<div class="modal fade admin-query"
id="membership_certificate<?php echo e($certificate->id); ?>">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('membership.Default for Membership')); ?></h4>
<button type="button" class="close" data-dismiss="modal"><i
class="ti-close "></i></button>
</div>
<div class="modal-body">
<div class="text-center">
<h4> <?php echo e(__('certificate.Are you sure')); ?>?</h4>
</div>
<div class="mt-40 d-flex justify-content-between">
<button type="button" class="primary-btn tr-bg"
data-dismiss="modal"><?php echo e(__('common.Cancel')); ?></button>
<?php echo e(Form::open(['route' => array('membership.certificate.update',$certificate->id), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<button class="primary-btn fix-gr-bg"
type="submit"><?php echo e(__('certificate.Make Default')); ?></button>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
<?php /**PATH /home/bouloter/infix/Modules/Certificate/Resources/views/certificate/certificateList.blade.php ENDPATH**/ ?>