<?php $__env->startPush('css'); ?>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('page-title'); ?>
<?php echo $__env->make('admin.components.page-title', ['title' => __($page_title)], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('breadcrumb'); ?>
<?php echo $__env->make('admin.components.breadcrumb', [
'breadcrumbs' => [
[
'name' => __('Dashboard'),
'url' => setRoute('admin.dashboard'),
],
],
'active' => __('Contact Messages'),
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="table-area">
<div class="table-wrapper">
<form method="POST" action="<?php echo e(setRoute('admin.contact.messages.delete.all')); ?>">
<?php echo csrf_field(); ?>
<div class="table-header">
<h5 class="title"><?php echo e(__($page_title)); ?> <span class="badge badge--success"><?php echo e($contact_requests->total()); ?></span> </h5>
<div class="d-flex gap-2">
<button type="submit" class="btn--base bg--danger mark-delete-btn"><?php echo e(__("Mark Delete")); ?></button>
<a href="<?php echo e(setRoute('admin.contact.messages.export')); ?>" class="btn--base bg--success"><?php echo e(__("Export (Excel)")); ?></a>
</div>
</div>
<div class="table-responsive">
<table class="custom-table">
<thead>
<tr>
<th>
<input type="checkbox" class="form--control mark-all-checkbox" data-parent=".mark-all-parent" data-child=".mark-all-child">
</th>
<th></th>
<th><?php echo e(__("Name")); ?></th>
<th><?php echo e(__("Email")); ?></th>
<th><?php echo e(__("Reply")); ?></th>
<th><?php echo e(__("Created At")); ?></th>
<th></th>
</tr>
</thead>
<tbody class="mark-all-parent">
<?php $__empty_1 = true; $__currentLoopData = $contact_requests ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr data-item="<?php echo e(json_encode($item->only(['id','message','name','email','created_at']))); ?>">
<td>
<input type="checkbox" value="<?php echo e($item->id); ?>" name="mark[]" class="form--control mark-all-child">
</td>
<td><?php echo e($key + $contact_requests->firstItem()); ?></td>
<td><?php echo e($item->name ?? ''); ?></td>
<td><?php echo e($item->email ?? ''); ?></td>
<td>
<?php if($item->reply == true): ?>
<span class="badge badge--success"><?php echo e(__("Replyed")); ?></span>
<?php else: ?>
<span class="badge badge--warning"><?php echo e(__("Not Replyed")); ?></span>
<?php endif; ?>
</td>
<td><?php echo e($item->created_at->format("d-m-Y H:i:s")); ?></td>
<td>
<?php echo $__env->make('admin.components.link.custom',[
'href' => "#send-reply",
'class' => "btn btn--base reply-button modal-btn",
'icon' => "las la-envelope-open-text",
'permission' => "admin.contact.messages.reply",
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('admin.components.link.custom',[
'href' => "#details",
'class' => "btn btn--base details-button modal-btn",
'icon' => "las la-info-circle",
'permission' => "admin.contact.messages.index",
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('admin.components.link.custom',[
'href' => "javascript:void(0)",
'class' => "btn btn--base bg--danger delete-button",
'icon' => "las la-trash",
'permission' => "admin.contact.messages.delete",
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php echo $__env->make('admin.components.alerts.empty',['colspan' => 7], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endif; ?>
</tbody>
</table>
</div>
</form>
</div>
<?php echo e(get_paginate($contact_requests)); ?>
</div>
<?php if(admin_permission_by_name("admin.contact.messages.reply")): ?>
<div id="send-reply" class="mfp-hide large">
<div class="modal-data">
<div class="modal-header px-0">
<h5 class="modal-title"><?php echo e(__("Send Reply")); ?></h5>
</div>
<div class="modal-form-data">
<form class="modal-form" action="<?php echo e(setRoute('admin.contact.messages.reply')); ?>" method="POST">
<?php echo csrf_field(); ?>
<input type="hidden" name="target" value="<?php echo e(old('target')); ?>">
<div class="row mb-10-none">
<div class="col-xl-12 col-lg-12 form-group">
<?php echo $__env->make('admin.components.form.input',[
'label' => __("Subject"),
'label_after' => "*",
'name' => "subject",
'data_limit' => 150,
'placeholder' => __("Write Here").'...',
'value' => old('subject'),
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<div class="col-xl-12 col-lg-12 form-group">
<?php echo $__env->make('admin.components.form.input-text-rich',[
'label' => __("Details"),
'label_after' => "*",
'name' => "message",
'value' => old('message'),
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<div class="col-xl-12 col-lg-12 form-group">
<?php echo $__env->make('admin.components.button.form-btn',[
'class' => "w-100 btn-loading",
'type' => "submit",
'text' => __("Send Email"),
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</form>
</div>
</div>
</div>
<?php endif; ?>
<?php if(admin_permission_by_name("admin.contact.messages.index")): ?>
<div id="details" class="mfp-hide large">
<div class="modal-data">
<div class="modal-header px-0">
<h5 class="modal-title"><?php echo e(__("Contact Message")); ?></h5>
</div>
<div class="modal-body">
</div>
</div>
</div>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script>
openModalWhenError("send-reply","#send-reply");
$(".reply-button").click(function(){
var oldData = JSON.parse($(this).parents("tr").attr("data-item"));
$("#send-reply").find("input[name=target]").val(oldData.id);
});
$(".details-button").click(function(){
let message = JSON.parse($(this).parents("tr").attr("data-item"));
let htmlMarkup = `
<div class = "user-info">
<ul class = "border-bottom pb-3">
<li>
<strong>Name: </strong> <span>${message.name}</span>
</li>
<li>
<strong>Email: </strong> <span>${message.email}</span>
</li>
<li>
<strong>Send At: </strong> <span>${message.created_at}</span>
</li>
</ul>
</div>
<div class="message">
<h4 class="mt-3">Message</h4>
<p>
${message.message}
</p>
</div>
`;
$("#details").find(".modal-body").html(htmlMarkup);
});
$(".delete-button").click(function() {
var oldData = JSON.parse($(this).parents("tr").attr("data-item"));
var actionRoute = "<?php echo e(setRoute('admin.contact.messages.delete')); ?>";
var target = oldData.id;
var message = `<?php echo e(__("Are you sure to delete this message?")); ?>`;
openDeleteModal(actionRoute,target,message);
});
function openDeleteModal(URL,target,message,actionBtnText = "<?php echo e(__('Remove')); ?>",method = "DELETE"){
if(URL == "" || target == "") {
return false;
}
if(message == "") {
message = "<?php echo e(__('Are you sure to delete ?')); ?>";
}
var method = `<input type="hidden" name="_method" value="${method}">`;
openModalByContent(
{
content: `<div class="card modal-alert border-0">
<div class="card-body">
<form method="POST" action="${URL}">
<input type="hidden" name="_token" value="${laravelCsrf()}">
${method}
<div class="head mb-3">
${message}
<input type="hidden" name="target" value="${target}">
</div>
<div class="foot d-flex align-items-center justify-content-between">
<button type="button" class="modal-close btn btn--info"><?php echo e(__("Close")); ?></button>
<button type="submit" class="alert-submit-btn btn btn--danger btn-loading">${actionBtnText}</button>
</div>
</form>
</div>
</div>`,
},
);
}
$(".mark-all-checkbox").change(function() {
let parentEl = $($(this).attr("data-parent"));
let childEl = $(parentEl).find($(this).attr("data-child"));
if($(this).is(":checked")) {
$.each(childEl, function(index, item) {
$(item).prop("checked", true);
});
}else {
$.each(childEl, function(index, item) {
$(item).prop("checked", false);
});
}
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\git\nfcpay\resources\views/admin/sections/contact-request/index.blade.php ENDPATH**/ ?>
At NFC Pay, your privacy is of utmost importance to us. This Privacy Policy outlines how we collect, use, share, and protect your personal information when you use our services, including our website and mobile applications.
1. Information We Collect
2. How We Use Your Information
We use the information we collect for the following purposes:
3. Sharing Your Information
We may share your personal information in the following circumstances:
4. Security of Your Information
We take the security of your personal information seriously and implement a variety of security measures, including encryption, secure servers, and access controls, to protect your data from unauthorized access, disclosure, alteration, or destruction. However, no method of transmission over the internet or electronic storage is completely secure, and we cannot guarantee its absolute security.
5. Your Privacy Rights
Depending on your location, you may have certain rights regarding your personal information, such as:
6. Third-Party Links
Our services may contain links to third-party websites or services. We are not responsible for the privacy practices or the content of these third-party sites. We encourage you to review the privacy policies of those third parties.
7. Children’s Privacy
Our services are not intended for individuals under the age of 13. We do not knowingly collect personal information from children under 13. If we become aware that we have collected personal information from a child under 13, we will take steps to delete that information.
8. Changes to This Privacy Policy
We may update this Privacy Policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. We will notify you of any significant changes by posting the new Privacy Policy on our website and updating the effective date.
9. Contact Us
If you have any questions or concerns about this Privacy Policy or our data practices, please contact us at:
Email: support@nfcpay.com