added tabulator js files

This commit is contained in:
Kwesi Banson Jnr
2026-04-08 14:23:36 +00:00
parent 2064c2d6e5
commit 19a33bc2eb
4 changed files with 401 additions and 2 deletions

View File

@@ -35,12 +35,15 @@ class ApiCalls
$client_id = session('current_user.org_id');
if ($url == 'sms/send') {
// code...
$apps_url = "applications/client/$client_id?page=0&size=20&sort=createdAt,desc";
$result = static::CurlGet($apps_url);
$result_arr = json_decode($result);
$api_key = $result_arr->content[0]->apiKey;
$header_part = "Authorization: Bearer " . $api_key;
$header_part = "Authorization: Bearer " . $api_key; //env('SUNKING_APIKEY');
}
// dd($header_part);
\Log::info('Request Params :' . $data);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $post_url,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -78,9 +78,11 @@
@section('page-js')
<!-- <script src="https://unpkg.com/tabulator-tables@6.4.0/dist/js/tabulator.min.js"></script> -->
<script src="{{ url('public/libs/tabulator-master/dist/js/tabulator.min.js') }}"></script>
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
<script type="text/javascript" src="https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/luxon@2.3.1/build/global/luxon.min.js"></script>
<script src="{{ url('public/libs/tabulator-master/dist/js/autotable.min.js') }}"></script>
<script>
// var table = new Tabulator("#message-table", {
@@ -166,6 +168,17 @@
}}
],
});
document.getElementById("download-pdf").addEventListener("click", function(){
table.download("pdf", "messages.pdf", {
orientation:"portrait", // portrait or landscape
title:"Messages Export", // document title
});
});
document.getElementById("download-xlsx").addEventListener("click", function(){
table.download("xlsx", "messages.xlsx", {sheetName:"Messages"});
});
</script>
<script>