Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/.././csv/./../js/admin/.
الملفات الموجودة في هذا الـ Path:
.
..
addon.js
customer.js
dashboard.js
faqs.js
front_contact.js
lead.js
pages.js
plan.js
servers.js
settings.js
tax.js
ticket.js
مشاهدة ملف: plan.js
"use strict";
$('#plans').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'/admin/plan/all',
columns: [
{ "data": "title" },
{ "data": "email_limit" },
{ "data": "contact_limit" },
{ "data": "price" },
{ "data": "status" },
{ "data": "created_at" },
{ "data": "action" },
]
});
$('#plansRequest').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'/admin/plan/requests/get',
columns: [
{ "data": "customer" },
{ "data": "title" },
{ "data": "price" },
{ "data": "transaction_id" },
{ "data": "other_info" },
{ "data": "status" },
{ "data": "action" },
],
search:{
search: 'pending'
},fnInitComplete: function(oSettings, json) {
$(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20,moreLink: '<a href="#">More</a>',lessLink: '<a href="#">Less</a>'});
}
});
$('#planForm').validate({
rules: {
title: {
required: true
},
limit: {
required: true
},
price: {
required: true
},
status: {
required: true
},
},
messages: {
title: { required:"Please provide plan title"},
limit: { required:"Please provide email limit"},
price: { required:"Please provide plan price"},
status: { required:"Please select a status"}
},
errorElement: 'span',
errorPlacement: function (error, element) {
error.addClass('invalid-feedback');
element.closest('.form-group').append(error);
},
highlight: function (element, errorClass, validClass) {
$(element).addClass('is-invalid');
},
unhighlight: function (element, errorClass, validClass) {
$(element).removeClass('is-invalid');
}
});