bug fixes and new additions
BIN
public/assets/img/ClickMobile_final_logo copy.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/assets/img/ClickMobile_final_logo.jpg
Normal file
|
After Width: | Height: | Size: 571 KiB |
BIN
public/assets/img/ClickMobile_final_logo.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/assets/img/clicklogo.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/assets/img/logo-light_sm.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/assets/img/report-icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/assets/img/user 2.png
Executable file
|
After Width: | Height: | Size: 7.4 KiB |
2
public/assets/js/clientshow.js
vendored
@@ -1,4 +1,4 @@
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function(){
|
||||
//console.log('foo bar');
|
||||
var d = new Date();
|
||||
var month = d.getMonth()+1;
|
||||
|
||||
64
public/assets/js/dashboard.js
vendored
@@ -1,25 +1,73 @@
|
||||
$(document).ready(function(){
|
||||
/*
|
||||
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: base_url + '/dashboard/get_events',
|
||||
url: base_url + '/dashboard/getquotes',
|
||||
// data : formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
//init_calendar(data);
|
||||
console.log(data);
|
||||
$('#dailyQuoteBlock').text(data.quote);
|
||||
$('#authorParagraph').text(data.author);
|
||||
|
||||
},
|
||||
error: function(error){
|
||||
var output = $.parseJSON(error.responseText);
|
||||
console.log(output.errors);
|
||||
$('#ipNotifyArea').removeClass('hidden');
|
||||
$('#ipNotifyArea').addClass('alert alert-danger');
|
||||
$('#dailyQuoteBlock').text('');
|
||||
$.each(output.errors, function (key, value) {
|
||||
//console.log(value[0]);
|
||||
$('#ipNotifyArea').text(value[0]);
|
||||
console.log(value[0]);
|
||||
});
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: base_url + '/dashboard/getmnoexpiry',
|
||||
// data : formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
console.log(data);
|
||||
$('#mnoExpiredHref').text(data.expired_overall);
|
||||
$('#mnoExpiringThisMonth').text(data.expiring_current_month);
|
||||
$('#mnoExpiringInThreeMonths').text(data.expiring_three_months);
|
||||
|
||||
},
|
||||
error: function(error){
|
||||
var output = $.parseJSON(error.responseText);
|
||||
console.log(output.errors);
|
||||
$('#dailyQuoteBlock').text('');
|
||||
$.each(output.errors, function (key, value) {
|
||||
console.log(value[0]);
|
||||
});
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: base_url + '/dashboard/getclientexpiry',
|
||||
// data : formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
console.log(data);
|
||||
$('#clientExpiredHref').text(data.expired_overall);
|
||||
$('#clientExpiringThisMonth').text(data.expiring_current_month);
|
||||
$('#clientExpiringInThreeMonths').text(data.expiring_three_months);
|
||||
},
|
||||
error: function(error){
|
||||
var output = $.parseJSON(error.responseText);
|
||||
console.log(output.errors);
|
||||
$('#dailyQuoteBlock').text('');
|
||||
$.each(output.errors, function (key, value) {
|
||||
console.log(value[0]);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
16
public/assets/js/laravel-2025-06-04.log
Normal file
@@ -0,0 +1,16 @@
|
||||
[2025-06-04 08:59:13] production.INFO: Mphatso Katundu Successfully logged in at : 2025-06-04 08:59:13
|
||||
[2025-06-04 08:59:15] production.INFO: Mphatso Katundu Successfully logged in at : 2025-06-04 08:59:15
|
||||
[2025-06-04 10:18:10] production.INFO: PPXkA9
|
||||
[2025-06-04 11:36:58] production.INFO: Kwesi Banson Successfully logged in at : 2025-06-04 11:36:58
|
||||
[2025-06-04 11:58:49] production.INFO: Charity Mtembezeka Successfully logged in at : 2025-06-04 11:58:49
|
||||
[2025-06-04 13:00:02] production.INFO: MNOs due for renewal
|
||||
[2025-06-04 13:15:21] production.INFO: New notes for : ASTRAL SMS
|
||||
[2025-06-04 13:15:21] production.INFO: New notes triggered by : Charity Mtembezeka
|
||||
[2025-06-04 13:15:21] production.INFO: Astral SMS: Afghanistan route was set for them, they are in the process of testing the route.
|
||||
[2025-06-04 14:00:13] production.INFO: Clients due for renewal TSG Carrier, mansa@click-mobile.com, 15
|
||||
[2025-06-04 14:40:58] production.INFO: New notes for : Zaheen Telecom
|
||||
[2025-06-04 14:40:58] production.INFO: New notes triggered by : Charity Mtembezeka
|
||||
[2025-06-04 14:40:58] production.INFO: Zaheen: Continued our Sierra Leone discussion, they said they will set for us. They wanted Sri Lanka route, but unfortunately, they have lost the traffic.
|
||||
[2025-06-04 14:43:59] production.INFO: New notes for : BBT VOICE & SMS
|
||||
[2025-06-04 14:44:00] production.INFO: New notes triggered by : Charity Mtembezeka
|
||||
[2025-06-04 14:44:00] production.INFO: BBT: Been asking them to check on their Afghanistan route as other messages from Astral SMS are failing.
|
||||
104
public/assets/js/senderid.js
vendored
@@ -1,36 +1,74 @@
|
||||
$(document).ready(function(){
|
||||
$('#directMno').change(function(tve){
|
||||
tve.preventDefault();
|
||||
// var theIDD = $(this).siblings('.shortCodeEntryRowId').val();
|
||||
var directMnoSelection = $(this).val();
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: base_url + '/senderids/get-mno-list/' + directMnoSelection,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
if (data.code === 1) {
|
||||
$('#networkName').empty();
|
||||
$.each(data.result, function(id, row) {
|
||||
// console.log(row);
|
||||
$('#networkName').append($("<option />").val(row.id).text(row.name));
|
||||
});
|
||||
}
|
||||
else if (data.code > 1) {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: data.msg,
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Your request could not be handled. Try again !',
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var directMnoSelectionEditStart = $('#directMnoEdit').val();
|
||||
console.log(directMnoSelectionEditStart + " at rest");
|
||||
if (directMnoSelectionEditStart == 'YES') {
|
||||
$('#mnoDivEdit').removeClass('hidden');
|
||||
$('#supplierDivEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", true);
|
||||
// $("#networkNameEdit").prop("disabled", false);
|
||||
}
|
||||
else if(directMnoSelectionEditStart == 'NO'){
|
||||
console.log('in the NO | at rest');
|
||||
$('#supplierDivEdit').removeClass('hidden');
|
||||
$('#mnoDivEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", false);
|
||||
// $("#networkNameEdit").prop("disabled", true);
|
||||
}
|
||||
else{
|
||||
console.log('do nothing | at rest');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$('#directMno').change(function(tve){
|
||||
tve.preventDefault();
|
||||
// var theIDD = $(this).siblings('.shortCodeEntryRowId').val();
|
||||
var directMnoSelection = $(this).val();
|
||||
if (directMnoSelection == 'YES') {
|
||||
$('#mnoDiv').removeClass('hidden');
|
||||
$('#supplierDiv').addClass('hidden');
|
||||
$('#mnoDivEdit').removeClass('hidden');
|
||||
// $("#supplierName").prop("disabled", true);
|
||||
// $("#networkNameEdit").prop("disabled", false);
|
||||
}
|
||||
else{
|
||||
$('#supplierDiv').removeClass('hidden');
|
||||
$('#mnoDiv').addClass('hidden');
|
||||
$('#mnoDivEdit').addClass('hidden');
|
||||
// $("#networkName").prop("disabled", true);
|
||||
// $("#supplierNameEdit").prop("disabled", false);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('#directMnoEdit').change(function(tve){
|
||||
tve.preventDefault();
|
||||
var directMnoSelectionEdit = $(this).val();
|
||||
console.log(directMnoSelectionEdit);
|
||||
if (directMnoSelectionEdit == 'YES') {
|
||||
$('#mnoDivEdit').removeClass('hidden');
|
||||
$('#supplierDivEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", true);
|
||||
// $("#networkNameEdit").prop("disabled", false);
|
||||
}
|
||||
else if(directMnoSelectionEdit == 'NO'){
|
||||
console.log('in the NO | on change');
|
||||
$('#supplierDivEdit').removeClass('hidden');
|
||||
// $('#networkNameEdit').removeClass('hidden');
|
||||
// $('#mnoDivEdit').addClass('hidden');
|
||||
$('#networkNameEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", false);
|
||||
// $("#networkNameEdit").prop("disabled", true);
|
||||
}
|
||||
else{
|
||||
console.log('do nothing | on change');
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
72
public/assets/js/shortcode.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
$(document).ready(function(){
|
||||
$('.scdates').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
$('select').select2();
|
||||
$('#createSmsShortCodeBtn').click(function(evt){
|
||||
evt.preventDefault();
|
||||
$('#shortCodeType').val('sms');
|
||||
$('#newShortCodeFormModal').modal('show');
|
||||
});
|
||||
$('#createUssdShortCodeBtn').click(function(evt){
|
||||
evt.preventDefault();
|
||||
$('#shortCodeType').val('ussd');
|
||||
$('#newShortCodeFormModal').modal('show');
|
||||
});
|
||||
$('#createVoiceShortCodeBtn').click(function(evt){
|
||||
evt.preventDefault();
|
||||
$('#shortCodeType').val('voice');
|
||||
$('#newShortCodeFormModal').modal('show');
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#shortCodeForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
var formData = new FormData($(this)[0]);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: base_url + '/clients/shortcode_store',
|
||||
data : formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
if (data.code === 1) {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Short code details successfully saved',
|
||||
});
|
||||
setTimeout(function(){
|
||||
location.reload();
|
||||
}, 5000);
|
||||
}
|
||||
else if (data.code > 1) {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: data.msg,
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Your request could not be handled. Try again !',
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
error: function (data) {
|
||||
var output = $.parseJSON(data.responseText);
|
||||
// console.log(output.errors);
|
||||
$('#notifyArea').removeClass('hidden');
|
||||
$.each(output.errors, function (key, value) {
|
||||
// console.log(value[0]);
|
||||
$('#notifyArea').text(value[0]);
|
||||
});
|
||||
},
|
||||
fail : function(errordata){
|
||||
// console.log(errordata);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||