| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- /******/ (function() { // webpackBootstrap
- var __webpack_exports__ = {};
- /*!**************************************************!*\
- !*** ./resources/js/pages/dashboard-job.init.js ***!
- \**************************************************/
- /*
- Template Name: Skote - Admin & Dashboard Template
- Author: Themesbrand
- Website: https://themesbrand.com/
- Contact: themesbrand@gmail.com
- File: Dashboard job Init Js File
- */
- // get colors array from the string
- function getChartColorsArray(chartId) {
- if (document.getElementById(chartId) !== null) {
- var colors = document.getElementById(chartId).getAttribute("data-colors");
-
- if (colors) {
- colors = JSON.parse(colors);
- return colors.map(function (value) {
- var newValue = value.replace(" ", "");
- if (newValue.indexOf(",") === -1) {
- var color = getComputedStyle(document.documentElement).getPropertyValue(newValue);
-
- if (color){
- color = color.replace(" ", "");
- return color;
- }
- else return newValue;;
- } else {
- var val = value.split(',');
- if (val.length == 2) {
- var rgbaColor = getComputedStyle(document.documentElement).getPropertyValue(val[0]);
- rgbaColor = "rgba(" + rgbaColor + "," + val[1] + ")";
- return rgbaColor;
- } else {
- return newValue;
- }
- }
- });
- }
- }
- } // Job View
- var areacharteathereumColors = getChartColorsArray("eathereum_sparkline_charts");
- if (areacharteathereumColors) {
- var options = {
- series: [{
- name: "Job View",
- data: [36, 21, 65, 22, 35, 50, 87, 98]
- }],
- chart: {
- width: 130,
- height: 46,
- type: "area",
- sparkline: {
- enabled: true
- },
- toolbar: {
- show: false
- }
- },
- dataLabels: {
- enabled: false
- },
- stroke: {
- curve: "smooth",
- width: 1.5
- },
- fill: {
- type: "gradient",
- gradient: {
- shadeIntensity: 1,
- inverseColors: false,
- opacityFrom: 0.45,
- opacityTo: 0.05,
- stops: [50, 100, 100, 100]
- }
- },
- tooltip: {
- fixed: {
- enabled: false
- },
- x: {
- show: false
- },
- y: {
- title: {
- formatter: function formatter(seriesName) {
- return '';
- }
- }
- },
- marker: {
- show: false
- }
- },
- colors: areacharteathereumColors
- };
- var chart = new ApexCharts(document.querySelector("#eathereum_sparkline_charts"), options);
- chart.render();
- } // new_application_charts
- var newApplicationColors = getChartColorsArray("new_application_charts");
- if (newApplicationColors) {
- var options = {
- series: [{
- name: "New Application",
- data: [36, 48, 10, 74, 35, 50, 70, 73]
- }],
- chart: {
- width: 130,
- height: 46,
- type: "area",
- sparkline: {
- enabled: true
- },
- toolbar: {
- show: false
- }
- },
- dataLabels: {
- enabled: false
- },
- stroke: {
- curve: "smooth",
- width: 1.5
- },
- fill: {
- type: "gradient",
- gradient: {
- shadeIntensity: 1,
- inverseColors: false,
- opacityFrom: 0.45,
- opacityTo: 0.05,
- stops: [50, 100, 100, 100]
- }
- },
- tooltip: {
- fixed: {
- enabled: false
- },
- x: {
- show: false
- },
- y: {
- title: {
- formatter: function formatter(seriesName) {
- return '';
- }
- }
- },
- marker: {
- show: false
- }
- },
- colors: newApplicationColors
- };
- var chart = new ApexCharts(document.querySelector("#new_application_charts"), options);
- chart.render();
- } // total_approved_charts
- var totalApprovedColors = getChartColorsArray("total_approved_charts");
- if (totalApprovedColors) {
- var options = {
- series: [{
- name: "Total Approved",
- data: [60, 14, 5, 60, 30, 43, 65, 84]
- }],
- chart: {
- width: 130,
- height: 46,
- type: "area",
- sparkline: {
- enabled: true
- },
- toolbar: {
- show: false
- }
- },
- dataLabels: {
- enabled: false
- },
- stroke: {
- curve: "smooth",
- width: 1.5
- },
- fill: {
- type: "gradient",
- gradient: {
- shadeIntensity: 1,
- inverseColors: false,
- opacityFrom: 0.45,
- opacityTo: 0.05,
- stops: [50, 100, 100, 100]
- }
- },
- tooltip: {
- fixed: {
- enabled: false
- },
- x: {
- show: false
- },
- y: {
- title: {
- formatter: function formatter(seriesName) {
- return '';
- }
- }
- },
- marker: {
- show: false
- }
- },
- colors: totalApprovedColors
- };
- var chart = new ApexCharts(document.querySelector("#total_approved_charts"), options);
- chart.render();
- } // total_rejected_charts
- var totalApprovedColors = getChartColorsArray("total_rejected_charts");
- if (totalApprovedColors) {
- var options = {
- series: [{
- name: "Total Rejected",
- data: [32, 22, 7, 55, 20, 45, 36, 20]
- }],
- chart: {
- width: 130,
- height: 46,
- type: "area",
- sparkline: {
- enabled: true
- },
- toolbar: {
- show: false
- }
- },
- dataLabels: {
- enabled: false
- },
- stroke: {
- curve: "smooth",
- width: 1.5
- },
- fill: {
- type: "gradient",
- gradient: {
- shadeIntensity: 1,
- inverseColors: false,
- opacityFrom: 0.45,
- opacityTo: 0.05,
- stops: [50, 100, 100, 100]
- }
- },
- tooltip: {
- fixed: {
- enabled: false
- },
- x: {
- show: false
- },
- y: {
- title: {
- formatter: function formatter(seriesName) {
- return '';
- }
- }
- },
- marker: {
- show: false
- }
- },
- colors: totalApprovedColors
- };
- var chart = new ApexCharts(document.querySelector("#total_rejected_charts"), options);
- chart.render();
- }
- var statisticsApplicationColors = getChartColorsArray("chart");
- if (statisticsApplicationColors) {
- var options = {
- series: [{
- name: 'Companay',
- type: 'column',
- data: [30, 48, 28, 74, 39, 87, 54, 36, 50, 87, 84]
- }, {
- name: 'New Jobs',
- type: 'column',
- data: [20, 50, 42, 10, 24, 28, 60, 35, 47, 64, 78]
- }, {
- name: 'Total Jobs',
- type: 'area',
- data: [44, 55, 41, 67, 22, 43, 21, 41, 56, 27, 43]
- }, {
- name: 'Job View',
- type: 'line',
- data: [30, 25, 36, 30, 45, 35, 64, 52, 59, 36, 39]
- }],
- chart: {
- height: 350,
- type: 'line',
- stacked: false,
- toolbar: {
- show: false
- }
- },
- legend: {
- show: true,
- offsetY: 10
- },
- stroke: {
- width: [0, 0, 2, 2],
- curve: 'smooth'
- },
- plotOptions: {
- bar: {
- columnWidth: '30%'
- }
- },
- fill: {
- opacity: [1, 1, 0.1, 1],
- gradient: {
- inverseColors: false,
- shade: 'light',
- type: "vertical",
- opacityFrom: 0.85,
- opacityTo: 0.55,
- stops: [0, 100, 100, 100]
- }
- },
- labels: ['01/01/2022', '02/01/2022', '03/01/2022', '04/01/2022', '05/01/2022', '06/01/2022', '07/01/2022', '08/01/2022', '09/01/2022', '10/01/2022', '11/01/2022'],
- colors: statisticsApplicationColors,
- markers: {
- size: 0
- },
- xaxis: {
- type: 'datetime'
- },
- tooltip: {
- shared: true,
- intersect: false,
- y: {
- formatter: function formatter(y) {
- if (typeof y !== "undefined") {
- return y.toFixed(0) + " points";
- }
- return y;
- }
- }
- }
- };
- var chart = new ApexCharts(document.querySelector("#chart"), options);
- chart.render();
- }
- var ApplicationReveicedTimeColors = getChartColorsArray("application-received-time");
- if (ApplicationReveicedTimeColors) {
- var options = {
- series: [{
- name: 'Received Application',
- data: [34, 44, 54, 21, 12, 43, 33, 80, 66]
- }],
- chart: {
- type: 'line',
- height: 378,
- toolbar: {
- show: false
- }
- },
- // stroke: {
- // curve: 'stepline',
- // },
- stroke: {
- width: 3,
- curve: 'smooth'
- },
- labels: ['8 PM', '9 PM', '10 PM', '11 PM', '12 PM', '1 AM', '2 AM', '3 AM', '4 AM'],
- dataLabels: {
- enabled: false
- },
- colors: ApplicationReveicedTimeColors,
- markers: {
- hover: {
- sizeOffset: 4
- }
- }
- };
- var chart = new ApexCharts(document.querySelector("#application-received-time"), options);
- chart.render();
- }
- /******/ })()
- ;
|