Viewing file: 9267d51c23a0bc179b79b07fcb5eb4ed0c7f2f8d.php (2.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="form-group">
<button class="btn btn-primary float-right mb-3 btn-sm" data-title="Add New Template" type="button" id="addNewTemplate"><?php echo e(trans('customer.add_template')); ?></button>
</div>
<div class="card-body table-responsive p-0 " style="height: 300px;">
<table class="table table-head-fixed text-nowrap text-center">
<thead>
<tr>
<th><?php echo e(trans('customer.subject')); ?></th>
<th><?php echo e(trans('customer.status')); ?></th>
<th><?php echo e(trans('customer.action')); ?></th>
</tr>
</thead>
<tbody>
<?php if($email_templates->isNotEmpty()): ?>
<?php $__currentLoopData = $email_templates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $email_template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($email_template->title); ?></td>
<td><?php if($email_template->status=='active'): ?>
<span class="badge badge-success"><?php echo e($email_template->status); ?></span>
<?php else: ?>
<span class="badge badge-danger"><?php echo e($email_template->status); ?></span>
<?php endif; ?>
</td>
<td><button type="button" data-value="<?php echo e(json_encode($email_template->only(['id','subject','status','body']))); ?>" class="btn btn-sm btn-info template-edit">Edit</button>
<button class="btn btn-sm btn-danger" type="button" data-message="Are you sure you want to delete this template?"
data-action="<?php echo e(route('customer.email.template.delete',['id'=>$email_template->id])); ?>"
data-input={"_method":"delete"}
data-toggle="modal" data-target="#modal-confirm">Delete</button>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<tr>
<td></td>
<td colspan="1"><?php echo e(trans('customer.no_data_available')); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php /**PATH /home/pcolfjqt/mail.picotech.app/resources/views/customer/settings/email_template.blade.php ENDPATH**/ ?>
|