Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15153 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
$this->inlineScript()->appendFile($this->basePath('plugins/chart.js/chart.js'));
4
$this->inlineScript()->appendFile($this->basePath('plugins/chartjs-plugin-datalabels/chartjs-plugin-datalabels.js'));
5
 
6
 
7
 
8
$labelsLastWeekCompanies = '';
9
$totalsLastWeekCompanies = '';
10
$valuesLastWeekCompanies = '';
11
if(!empty($reportsLastWeek['companies'])) {
12
    foreach($reportsLastWeek['companies'] as $record) {
13
 
14
        $labelsLastWeekCompanies .= empty($labelsLastWeekCompanies) ? "'{$record['name']}'" : ", '{$record['name']}'";
15
        $totalsLastWeekCompanies .= empty($totalsLastWeekCompanies) ? "{$record['total']}" : ", {$record['total']}";
16
        $valuesLastWeekCompanies .= empty($valuesLastWeekCompanies) ? "{$record['value']}" : ", {$record['value']}";
17
}
18
}
19
 
20
$labelsLastWeekFunctions = '';
21
$totalsLastWeekFunctions = '';
22
$valuesLastWeekFunctions = '';
23
if(!empty($reportsLastWeek['functions'])) {
24
    foreach($reportsLastWeek['functions'] as $record) {
25
 
26
        $labelsLastWeekFunctions .= empty($labelsLastWeekFunctions) ? "'{$record['name']}'" : ", '{$record['name']}'";
27
        $totalsLastWeekFunctions .= empty($totalsLastWeekFunctions) ? "{$record['total']}" : ", {$record['total']}";
28
        $valuesLastWeekFunctions .= empty($valuesLastWeekFunctions) ? "{$record['value']}" : ", {$record['value']}";
29
    }
30
}
31
 
32
$labelsLastWeekInstitutions = '';
33
$totalsLastWeekInstitutions = '';
34
$valuesLastWeekInstitutions = '';
35
if(!empty($reportsLastWeek['institutions'])) {
36
    foreach($reportsLastWeek['institutions'] as $record) {
37
 
38
        $labelsLastWeekInstitutions .= empty($labelsLastWeekInstitutions) ? "'{$record['name']}'" : ", '{$record['name']}'";
39
        $totalsLastWeekInstitutions .= empty($totalsLastWeekInstitutions) ? "{$record['total']}" : ", {$record['total']}";
40
        $valuesLastWeekInstitutions .= empty($valuesLastWeekInstitutions) ? "{$record['value']}" : ", {$record['value']}";
41
    }
42
}
43
 
44
$labelsLastWeekGroups = '';
45
$totalsLastWeekGroups = '';
46
$valuesLastWeekGroups = '';
47
if(!empty($reportsLastWeek['groups'])) {
48
    foreach($reportsLastWeek['groups'] as $record) {
49
 
50
        $labelsLastWeekGroups .= empty($labelsLastWeekGroups) ? "'{$record['name']}'" : ", '{$record['name']}'";
51
        $totalsLastWeekGroups .= empty($totalsLastWeekGroups) ? "{$record['total']}" : ", {$record['total']}";
52
        $valuesLastWeekGroups .= empty($valuesLastWeekGroups) ? "{$record['value']}" : ", {$record['value']}";
53
    }
54
}
55
 
56
$labelsLastWeekPrograms = '';
57
$totalsLastWeekPrograms = '';
58
$valuesLastWeekPrograms = '';
59
if(!empty($reportsLastWeek['programs'])) {
60
    foreach($reportsLastWeek['programs'] as $record) {
61
 
62
        $labelsLastWeekPrograms .= empty($labelsLastWeekPrograms) ? "'{$record['name']}'" : ", '{$record['name']}'";
63
        $totalsLastWeekPrograms .= empty($totalsLastWeekPrograms) ? "{$record['total']}" : ", {$record['total']}";
64
        $valuesLastWeekPrograms .= empty($valuesLastWeekPrograms) ? "{$record['value']}" : ", {$record['value']}";
65
    }
66
}
67
 
68
$labelsLastWeekPartners = '';
69
$totalsLastWeekPartners = '';
70
$valuesLastWeekPartners = '';
71
if(!empty($reportsLastWeek['partners'])) {
72
    foreach($reportsLastWeek['partners'] as $record) {
73
 
74
        $labelsLastWeekPartners .= empty($labelsLastWeekPartners) ? "'{$record['name']}'" : ", '{$record['name']}'";
75
        $totalsLastWeekPartners .= empty($totalsLastWeekPartners) ? "{$record['total']}" : ", {$record['total']}";
76
        $valuesLastWeekPartners .= empty($valuesLastWeekPartners) ? "{$record['value']}" : ", {$record['value']}";
77
    }
78
}
79
 
80
$labelsLastWeekSectors = '';
81
$totalsLastWeekSectors = '';
82
$valuesLastWeekSectors = '';
83
if(!empty($reportsLastWeek['sectors'])) {
84
    foreach($reportsLastWeek['sectors'] as $record) {
85
 
86
        $labelsLastWeekSectors .= empty($labelsLastWeekSectors) ? "'{$record['name']}'" : ", '{$record['name']}'";
87
        $totalsLastWeekSectors .= empty($totalsLastWeekSectors) ? "{$record['total']}" : ", {$record['total']}";
88
        $valuesLastWeekSectors .= empty($valuesLastWeekSectors) ? "{$record['value']}" : ", {$record['value']}";
89
    }
90
}
91
 
92
$labelsLastWeekStudentTypes = '';
93
$totalsLastWeekStudentTypes = '';
94
$valuesLastWeekStudentTypes = '';
95
if(!empty($reportsLastWeek['student_types'])) {
96
    foreach($reportsLastWeek['student_types'] as $record) {
97
 
98
        $labelsLastWeekStudentTypes .= empty($labelsLastWeekStudentTypes) ? "'{$record['name']}'" : ", '{$record['name']}'";
99
        $totalsLastWeekStudentTypes .= empty($totalsLastWeekStudentTypes) ? "{$record['total']}" : ", {$record['total']}";
100
        $valuesLastWeekStudentTypes .= empty($valuesLastWeekStudentTypes) ? "{$record['value']}" : ", {$record['value']}";
101
    }
102
}
103
 
104
 
105
$labelsCapsuleResumeCompanies = '';
106
$totalsCapsuleResumeCompanies = '';
107
$valuesCapsuleResumeCompanies = '';
108
if(!empty($reportsCapsuleResume['companies'])) {
109
    foreach($reportsCapsuleResume['companies'] as $record) {
110
 
111
        $labelsCapsuleResumeCompanies .= empty($labelsCapsuleResumeCompanies) ? "'{$record['name']}'" : ", '{$record['name']}'";
112
        $totalsCapsuleResumeCompanies .= empty($totalsCapsuleResumeCompanies) ? "{$record['total']}" : ", {$record['total']}";
113
        $valuesCapsuleResumeCompanies .= empty($valuesCapsuleResumeCompanies) ? "{$record['value']}" : ", {$record['value']}";
114
    }
115
}
116
 
117
$labelsCapsuleResumeFunctions = '';
118
$totalsCapsuleResumeFunctions = '';
119
$valuesCapsuleResumeFunctions = '';
120
if(!empty($reportsCapsuleResume['functions'])) {
121
    foreach($reportsCapsuleResume['functions'] as $record) {
122
 
123
        $labelsCapsuleResumeFunctions .= empty($labelsCapsuleResumeFunctions) ? "'{$record['name']}'" : ", '{$record['name']}'";
124
        $totalsCapsuleResumeFunctions .= empty($totalsCapsuleResumeFunctions) ? "{$record['total']}" : ", {$record['total']}";
125
        $valuesCapsuleResumeFunctions .= empty($valuesCapsuleResumeFunctions) ? "{$record['value']}" : ", {$record['value']}";
126
    }
127
}
128
 
129
$labelsCapsuleResumeInstitutions = '';
130
$totalsCapsuleResumeInstitutions = '';
131
$valuesCapsuleResumeInstitutions = '';
132
if(!empty($reportsCapsuleResume['institutions'])) {
133
    foreach($reportsCapsuleResume['institutions'] as $record) {
134
 
135
        $labelsCapsuleResumeInstitutions .= empty($labelsCapsuleResumeInstitutions) ? "'{$record['name']}'" : ", '{$record['name']}'";
136
        $totalsCapsuleResumeInstitutions .= empty($totalsCapsuleResumeInstitutions) ? "{$record['total']}" : ", {$record['total']}";
137
        $valuesCapsuleResumeInstitutions .= empty($valuesCapsuleResumeInstitutions) ? "{$record['value']}" : ", {$record['value']}";
138
    }
139
}
140
 
141
$labelsCapsuleResumeGroups = '';
142
$totalsCapsuleResumeGroups = '';
143
$valuesCapsuleResumeGroups = '';
144
if(!empty($reportsCapsuleResume['groups'])) {
145
    foreach($reportsCapsuleResume['groups'] as $record) {
146
 
147
        $labelsCapsuleResumeGroups .= empty($labelsCapsuleResumeGroups) ? "'{$record['name']}'" : ", '{$record['name']}'";
148
        $totalsCapsuleResumeGroups .= empty($totalsCapsuleResumeGroups) ? "{$record['total']}" : ", {$record['total']}";
149
        $valuesCapsuleResumeGroups .= empty($valuesCapsuleResumeGroups) ? "{$record['value']}" : ", {$record['value']}";
150
    }
151
}
152
 
153
$labelsCapsuleResumePrograms = '';
154
$totalsCapsuleResumePrograms = '';
155
$valuesCapsuleResumePrograms = '';
156
if(!empty($reportsCapsuleResume['programs'])) {
157
    foreach($reportsCapsuleResume['programs'] as $record) {
158
 
159
        $labelsCapsuleResumePrograms .= empty($labelsCapsuleResumePrograms) ? "'{$record['name']}'" : ", '{$record['name']}'";
160
        $totalsCapsuleResumePrograms .= empty($totalsCapsuleResumePrograms) ? "{$record['total']}" : ", {$record['total']}";
161
        $valuesCapsuleResumePrograms .= empty($valuesCapsuleResumePrograms) ? "{$record['value']}" : ", {$record['value']}";
162
    }
163
}
164
 
165
$labelsCapsuleResumePartners = '';
166
$totalsCapsuleResumePartners = '';
167
$valuesCapsuleResumePartners = '';
168
if(!empty($reportsCapsuleResume['partners'])) {
169
    foreach($reportsCapsuleResume['partners'] as $record) {
170
 
171
        $labelsCapsuleResumePartners .= empty($labelsCapsuleResumePartners) ? "'{$record['name']}'" : ", '{$record['name']}'";
172
        $totalsCapsuleResumePartners .= empty($totalsCapsuleResumePartners) ? "{$record['total']}" : ", {$record['total']}";
173
        $valuesCapsuleResumePartners .= empty($valuesCapsuleResumePartners) ? "{$record['value']}" : ", {$record['value']}";
174
    }
175
}
176
 
177
$labelsCapsuleResumeSectors = '';
178
$totalsCapsuleResumeSectors = '';
179
$valuesCapsuleResumeSectors = '';
180
if(!empty($reportsCapsuleResume['sectors'])) {
181
    foreach($reportsCapsuleResume['sectors'] as $record) {
182
 
183
        $labelsCapsuleResumeSectors .= empty($labelsCapsuleResumeSectors) ? "'{$record['name']}'" : ", '{$record['name']}'";
184
        $totalsCapsuleResumeSectors .= empty($totalsCapsuleResumeSectors) ? "{$record['total']}" : ", {$record['total']}";
185
        $valuesCapsuleResumeSectors .= empty($valuesCapsuleResumeSectors) ? "{$record['value']}" : ", {$record['value']}";
186
    }
187
}
188
 
189
$labelsCapsuleResumeStudentTypes = '';
190
$totalsCapsuleResumeStudentTypes = '';
191
$valuesCapsuleResumeStudentTypes = '';
192
if(!empty($reportsCapsuleResume['student_types'])) {
193
    foreach($reportsCapsuleResume['student_types'] as $record) {
194
 
195
        $labelsCapsuleResumeStudentTypes .= empty($labelsCapsuleResumeStudentTypes) ? "'{$record['name']}'" : ", '{$record['name']}'";
196
        $totalsCapsuleResumeStudentTypes .= empty($totalsCapsuleResumeStudentTypes) ? "{$record['total']}" : ", {$record['total']}";
197
        $valuesCapsuleResumeStudentTypes .= empty($valuesCapsuleResumeStudentTypes) ? "{$record['value']}" : ", {$record['value']}";
198
    }
199
}
200
 
201
$labelsTotalCompanies = '';
202
$totalsTotalCompanies = '';
203
if(!empty($reportsStudentsTotal['companies'])) {
204
    foreach($reportsStudentsTotal['companies'] as $record) {
205
 
206
        $labelsTotalCompanies .= empty($labelsTotalCompanies) ? "'{$record['name']}'" : ", '{$record['name']}'";
207
        $totalsTotalCompanies .= empty($totalsTotalCompanies) ? "{$record['total']}" : ", {$record['total']}";
208
 
209
    }
210
}
211
 
212
$labelsTotalFunctions = '';
213
$totalsTotalFunctions = '';
214
if(!empty($reportsStudentsTotal['functions'])) {
215
    foreach($reportsStudentsTotal['functions'] as $record) {
216
 
217
        $labelsTotalFunctions .= empty($labelsTotalFunctions) ? "'{$record['name']}'" : ", '{$record['name']}'";
218
        $totalsTotalFunctions .= empty($totalsTotalFunctions) ? "{$record['total']}" : ", {$record['total']}";
219
    }
220
}
221
 
222
$labelsTotalInstitutions = '';
223
$totalsTotalInstitutions = '';
224
if(!empty($reportsStudentsTotal['institutions'])) {
225
    foreach($reportsStudentsTotal['institutions'] as $record) {
226
 
227
        $labelsTotalInstitutions .= empty($labelsTotalInstitutions) ? "'{$record['name']}'" : ", '{$record['name']}'";
228
        $totalsTotalInstitutions .= empty($totalsTotalInstitutions) ? "{$record['total']}" : ", {$record['total']}";
229
    }
230
}
231
 
232
$labelsTotalGroups = '';
233
$totalsTotalGroups = '';
234
if(!empty($reportsStudentsTotal['groups'])) {
235
    foreach($reportsStudentsTotal['groups'] as $record) {
236
 
237
        $labelsTotalGroups .= empty($labelsTotalGroups) ? "'{$record['name']}'" : ", '{$record['name']}'";
238
        $totalsTotalGroups .= empty($totalsTotalGroups) ? "{$record['total']}" : ", {$record['total']}";
239
    }
240
}
241
 
242
$labelsTotalPrograms = '';
243
$totalsTotalPrograms = '';
244
if(!empty($reportsStudentsTotal['programs'])) {
245
    foreach($reportsStudentsTotal['programs'] as $record) {
246
 
247
        $labelsTotalPrograms .= empty($labelsTotalPrograms) ? "'{$record['name']}'" : ", '{$record['name']}'";
248
        $totalsTotalPrograms .= empty($totalsTotalPrograms) ? "{$record['total']}" : ", {$record['total']}";
249
    }
250
}
251
 
252
$labelsTotalPartners = '';
253
$totalsTotalPartners = '';
254
if(!empty($reportsStudentsTotal['partners'])) {
255
    foreach($reportsStudentsTotal['partners'] as $record) {
256
 
257
        $labelsTotalPartners .= empty($labelsTotalPartners) ? "'{$record['name']}'" : ", '{$record['name']}'";
258
        $totalsTotalPartners .= empty($totalsTotalPartners) ? "{$record['total']}" : ", {$record['total']}";
259
    }
260
}
261
 
262
$labelsTotalSectors = '';
263
$totalsTotalSectors = '';
264
if(!empty($reportsStudentsTotal['sectors'])) {
265
    foreach($reportsStudentsTotal['sectors'] as $record) {
266
 
267
        $labelsTotalSectors .= empty($labelsTotalSectors) ? "'{$record['name']}'" : ", '{$record['name']}'";
268
        $totalsTotalSectors .= empty($totalsTotalSectors) ? "{$record['total']}" : ", {$record['total']}";
269
    }
270
}
271
 
272
$labelsTotalStudentTypes = '';
273
$totalsTotalStudentTypes = '';
274
if(!empty($reportsStudentsTotal['student_types'])) {
275
    foreach($reportsStudentsTotal['student_types'] as $record) {
276
 
277
        $labelsTotalStudentTypes .= empty($labelsTotalStudentTypes) ? "'{$record['name']}'" : ", '{$record['name']}'";
278
        $totalsTotalStudentTypes .= empty($totalsTotalStudentTypes) ? "{$record['total']}" : ", {$record['total']}";
279
    }
280
}
281
 
282
 
283
 
284
$this->inlineScript()->captureStart();
285
echo <<<JS
286
jQuery( document ).ready(function( $ ) {
287
    const DISPLAY = true;
288
    const BORDER = true;
289
    const CHART_AREA = true;
290
    const TICKS = true;
291
 
292
    const CHART_COLORS = {
293
      red: '#007bff',  //'rgb(255, 99, 132)',
294
      orange: '#0060c7',  //'rgb(255, 159, 64)',
295
      yellow:  '#004fa3', //'rgb(255, 205, 86)',
296
      green: '#1c64b0', //'rgb(75, 192, 192)',
297
      blue: 'rgb(54, 162, 235)',
298
      purple: 'rgb(153, 102, 255)',
299
      grey: 'rgb(201, 203, 207)'
300
    };
301
 
302
    function transparentize(value, opacity) {
303
      var alpha = opacity === undefined ? 0.5 : 1 - opacity;
304
      return colorLib(value).alpha(alpha).rgbString();
305
    }
306
 
307
    /****** START STUDENTS ***/
308
 
309
    var areaChartData = {
310
      labels  : ['LABEL_GRAPH_STUDENTS_TOTAL', 'LABEL_GRAPH_STUDENTS_STARTED', 'LABEL_GRAPH_STUDENTS_WITHOUT_STARTED'],
311
      datasets: [
312
        {
313
          label               : '',
314
          backgroundColor: Object.values(CHART_COLORS),
315
          pointRadius         : true,
316
          data                : [ {$reportStudents['total']},{$reportStudents['started']},{$reportStudents['withoutStarting']} ]
317
        },
318
      ]
319
 
320
    }
321
 
322
    var barChartCanvas = $('#barChartStudents').get(0).getContext('2d')
323
    var barChartData = $.extend(true, {}, areaChartData)
324
    var temp0 = areaChartData.datasets[0]
325
    barChartData.datasets[0] = temp0
326
 
327
 
328
    var barChartOptions = {
329
        responsive              : true,
330
        maintainAspectRatio     : false,
331
        datasetFill             : false,
332
        plugins: {
333
            legend: {
334
                display: false,
335
            } ,
336
            datalabels: {
337
                color: 'white',
338
                labels: {
339
                    title: {
340
                        font: {
341
                            weight: 'bold',
342
                        }
343
                    },
344
                }
345
            },
346
            tooltips: {
347
                enabled: false,
348
            },
349
 
350
        }
351
    }
352
 
353
    new Chart(barChartCanvas, {
354
        plugins: [ChartDataLabels],
355
        type: 'bar',
356
 
357
        data: barChartData,
358
        options: barChartOptions
359
 
360
    })
361
 
362
    /****** END STUDENTS ***/
363
 
364
    /****** LASTWEEK GENERAL  ***/
365
 
366
    var areaChartData = {
367
      labels  : ['LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES', 'LABEL_GRAPH_STUDENTS_TOTALS' ],
368
      datasets: [
369
        {
370
          label             : '',
371
          backgroundColor   : [
372
                CHART_COLORS.red,
373
                CHART_COLORS.blue
374
            ],
375
          pointRadius       : true,
376
          data              : [{$reportsLastWeek['general'][ 'value']}, {$reportsLastWeek['general'][ 'total']} ]
377
        },
378
      ]
379
 
380
    }
381
 
382
    var barChartCanvas = $('#barChartLastWeekGeneral').get(0).getContext('2d')
383
    var barChartData = $.extend(true, {}, areaChartData)
384
    var temp0 = areaChartData.datasets[0]
385
    barChartData.datasets[0] = temp0
386
 
387
 
388
    var barChartOptions = {
389
        responsive              : true,
390
        maintainAspectRatio     : false,
391
        datasetFill             : false,
392
        plugins: {
393
            legend: {
394
                display: true,
395
                position: 'top',
396
            } ,
397
            datalabels: {
398
                color: 'white',
399
                labels: {
400
                    title: {
401
                        font: {
402
                            weight: 'bold',
403
                        }
404
                    },
405
                }
406
            },
407
            tooltips: {
408
                enabled: false,
409
            },
410
 
411
        }
412
    }
413
 
414
    new Chart(barChartCanvas, {
415
        plugins: [ChartDataLabels],
416
        type: 'doughnut',
417
 
418
        data: barChartData,
419
        options: barChartOptions
420
 
421
    })
422
 
423
    /****** END STUDENTS ***/
424
 
425
    /****** START LAST WEEK COMPANIES ***/
426
    if($('#barChartLastWeekCompanies').length > 0) {
427
        var areaChartData = {
428
          labels  : [$labelsLastWeekCompanies],
429
          datasets: [
430
            {
431
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
432
              borderColor: CHART_COLORS.red,
433
              backgroundColor: CHART_COLORS.blue,
434
              borderWidth: 1,
435
              data : [ $totalsLastWeekCompanies ]
436
            },
437
           {
438
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
439
              borderColor: CHART_COLORS.blue,
440
              backgroundColor: CHART_COLORS.red,
441
              borderWidth: 1,
442
              data : [ $valuesLastWeekCompanies ]
443
            },
444
          ]
445
 
446
        }
447
 
448
        var barChartCanvas = $('#barChartLastWeekCompanies').get(0).getContext('2d')
449
        var barChartData = $.extend(true, {}, areaChartData)
450
        var temp0 = areaChartData.datasets[0]
451
        var temp1 = areaChartData.datasets[1]
452
        barChartData.datasets[0] = temp1
453
        barChartData.datasets[1] = temp0
454
 
455
 
456
        var barChartOptions = {
457
            responsive              : true,
458
            indexAxis               : 'y',
459
            maintainAspectRatio     : false,
460
            datasetFill             : false,
461
            plugins: {
462
                datalabels: {
463
                    color: 'white',
464
                    labels: {
465
                        title: {
466
                            font: {
467
                                weight: 'bold',
468
                            }
469
                        },
470
                    }
471
                },
472
                tooltips: {
473
                    enabled: false,
474
                },
475
 
476
 
477
            },
478
        }
479
 
480
        new Chart(barChartCanvas, {
481
            plugins: [ChartDataLabels],
482
            type: 'bar',
483
 
484
            data: barChartData,
485
            options: barChartOptions
486
 
487
        });
488
    }
489
 
490
    /****** END COMPANIES ***/
491
 
492
 
493
    /****** START LAST WEEK FUNCTIONS ***/
494
    if($('#barChartLastWeekFunctions').length > 0) {
495
        var areaChartData = {
496
          labels  : [$labelsLastWeekFunctions],
497
          datasets: [
498
            {
499
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
500
              borderColor: CHART_COLORS.red,
501
              backgroundColor: CHART_COLORS.blue,
502
              borderWidth: 1,
503
              data : [ $totalsLastWeekFunctions ]
504
            },
505
           {
506
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
507
              borderColor: CHART_COLORS.blue,
508
              backgroundColor: CHART_COLORS.red,
509
              borderWidth: 1,
510
              data : [ $valuesLastWeekFunctions ]
511
            },
512
          ]
513
 
514
        }
515
 
516
        var barChartCanvas = $('#barChartLastWeekFunctions').get(0).getContext('2d')
517
        var barChartData = $.extend(true, {}, areaChartData)
518
        var temp0 = areaChartData.datasets[0]
519
        var temp1 = areaChartData.datasets[1]
520
        barChartData.datasets[0] = temp1
521
        barChartData.datasets[1] = temp0
522
 
523
 
524
        var barChartOptions = {
525
            responsive              : true,
526
            indexAxis               : 'y',
527
            maintainAspectRatio     : false,
528
            datasetFill             : false,
529
            plugins: {
530
                datalabels: {
531
                    color: 'white',
532
                    labels: {
533
                        title: {
534
                            font: {
535
                                weight: 'bold',
536
                            }
537
                        },
538
                    }
539
                },
540
                tooltips: {
541
                    enabled: false,
542
                },
543
 
544
 
545
            },
546
        }
547
 
548
        new Chart(barChartCanvas, {
549
            plugins: [ChartDataLabels],
550
            type: 'bar',
551
 
552
            data: barChartData,
553
            options: barChartOptions
554
 
555
        });
556
    }
557
    /****** END FUNCTIONS ***/
558
 
559
    /****** START LAST WEEK GROUPS ***/
560
    if($('#barChartLastWeekGroups').length > 0) {
561
        var areaChartData = {
562
          labels  : [$labelsLastWeekGroups],
563
          datasets: [
564
            {
565
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
566
              borderColor: CHART_COLORS.red,
567
              backgroundColor: CHART_COLORS.blue,
568
              borderWidth: 1,
569
              data : [ $totalsLastWeekGroups ]
570
            },
571
           {
572
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
573
              borderColor: CHART_COLORS.blue,
574
              backgroundColor: CHART_COLORS.red,
575
              borderWidth: 1,
576
              data : [ $valuesLastWeekGroups ]
577
            },
578
          ]
579
 
580
        }
581
 
582
        var barChartCanvas = $('#barChartLastWeekGroups').get(0).getContext('2d')
583
        var barChartData = $.extend(true, {}, areaChartData)
584
        var temp0 = areaChartData.datasets[0]
585
        var temp1 = areaChartData.datasets[1]
586
        barChartData.datasets[0] = temp1
587
        barChartData.datasets[1] = temp0
588
 
589
 
590
        var barChartOptions = {
591
            responsive              : true,
592
            indexAxis               : 'y',
593
            maintainAspectRatio     : false,
594
            datasetFill             : false,
595
            plugins: {
596
                datalabels: {
597
                    color: 'white',
598
                    labels: {
599
                        title: {
600
                            font: {
601
                                weight: 'bold',
602
                            }
603
                        },
604
                    }
605
                },
606
                tooltips: {
607
                    enabled: false,
608
                },
609
 
610
 
611
            },
612
        }
613
 
614
        new Chart(barChartCanvas, {
615
            plugins: [ChartDataLabels],
616
            type: 'bar',
617
 
618
            data: barChartData,
619
            options: barChartOptions
620
 
621
        });
622
    }
623
 
624
    /****** END GROUPS ***/
625
 
626
 
627
    /****** START LAST WEEK INSTITUTIONS ***/
628
    if($('#barChartLastWeekInstitutions').length > 0) {
629
        var areaChartData = {
630
          labels  : [$labelsLastWeekInstitutions],
631
          datasets: [
632
            {
633
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
634
              borderColor: CHART_COLORS.red,
635
              backgroundColor: CHART_COLORS.blue,
636
              borderWidth: 1,
637
              data : [ $totalsLastWeekInstitutions ]
638
            },
639
           {
640
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
641
              borderColor: CHART_COLORS.blue,
642
              backgroundColor: CHART_COLORS.red,
643
              borderWidth: 1,
644
              data : [ $valuesLastWeekInstitutions ]
645
            },
646
          ]
647
 
648
        }
649
 
650
        var barChartCanvas = $('#barChartLastWeekInstitutions').get(0).getContext('2d')
651
        var barChartData = $.extend(true, {}, areaChartData)
652
        var temp0 = areaChartData.datasets[0]
653
        var temp1 = areaChartData.datasets[1]
654
        barChartData.datasets[0] = temp1
655
        barChartData.datasets[1] = temp0
656
 
657
 
658
        var barChartOptions = {
659
            responsive              : true,
660
            indexAxis               : 'y',
661
            maintainAspectRatio     : false,
662
            datasetFill             : false,
663
            plugins: {
664
                datalabels: {
665
                    color: 'white',
666
                    labels: {
667
                        title: {
668
                            font: {
669
                                weight: 'bold',
670
                            }
671
                        },
672
                    }
673
                },
674
                tooltips: {
675
                    enabled: false,
676
                },
677
 
678
 
679
            },
680
        }
681
 
682
        new Chart(barChartCanvas, {
683
            plugins: [ChartDataLabels],
684
            type: 'bar',
685
 
686
            data: barChartData,
687
            options: barChartOptions
688
 
689
        });
690
    }
691
 
692
    /****** END INSTITUTIONS ***/
693
 
694
 
695
    /****** START LAST WEEK PROGRAMS ***/
696
    if($('#barChartLastWeekPrograms').length > 0) {
697
        var areaChartData = {
698
          labels  : [$labelsLastWeekPrograms],
699
          datasets: [
700
            {
701
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
702
              borderColor: CHART_COLORS.red,
703
              backgroundColor: CHART_COLORS.blue,
704
              borderWidth: 1,
705
              data : [ $totalsLastWeekPrograms ]
706
            },
707
           {
708
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
709
              borderColor: CHART_COLORS.blue,
710
              backgroundColor: CHART_COLORS.red,
711
              borderWidth: 1,
712
              data : [ $valuesLastWeekPrograms ]
713
            },
714
          ]
715
 
716
        }
717
 
718
        var barChartCanvas = $('#barChartLastWeekPrograms').get(0).getContext('2d')
719
        var barChartData = $.extend(true, {}, areaChartData)
720
        var temp0 = areaChartData.datasets[0]
721
        var temp1 = areaChartData.datasets[1]
722
        barChartData.datasets[0] = temp1
723
        barChartData.datasets[1] = temp0
724
 
725
 
726
        var barChartOptions = {
727
            responsive              : true,
728
            indexAxis               : 'y',
729
            maintainAspectRatio     : false,
730
            datasetFill             : false,
731
            plugins: {
732
                datalabels: {
733
                    color: 'white',
734
                    labels: {
735
                        title: {
736
                            font: {
737
                                weight: 'bold',
738
                            }
739
                        },
740
                    }
741
                },
742
                tooltips: {
743
                    enabled: false,
744
                },
745
 
746
 
747
            },
748
        }
749
 
750
        new Chart(barChartCanvas, {
751
            plugins: [ChartDataLabels],
752
            type: 'bar',
753
 
754
            data: barChartData,
755
            options: barChartOptions
756
 
757
        });
758
    }
759
 
760
    /****** END PROGRAMS ***/
761
 
762
    /****** START LAST WEEK PARTNERS ***/
763
    if ($('#barChartLastWeekPartners').length > 0) {
764
 
765
        var areaChartData = {
766
          labels  : [$labelsLastWeekPartners],
767
          datasets: [
768
            {
769
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
770
              borderColor: CHART_COLORS.red,
771
              backgroundColor: CHART_COLORS.blue,
772
              borderWidth: 1,
773
              data : [ $totalsLastWeekPartners ]
774
            },
775
           {
776
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
777
              borderColor: CHART_COLORS.blue,
778
              backgroundColor: CHART_COLORS.red,
779
              borderWidth: 1,
780
              data : [ $valuesLastWeekPartners ]
781
            },
782
          ]
783
 
784
        }
785
 
786
        var barChartCanvas = $('#barChartLastWeekPartners').get(0).getContext('2d')
787
        var barChartData = $.extend(true, {}, areaChartData)
788
        var temp0 = areaChartData.datasets[0]
789
        var temp1 = areaChartData.datasets[1]
790
        barChartData.datasets[0] = temp1
791
        barChartData.datasets[1] = temp0
792
 
793
 
794
        var barChartOptions = {
795
            responsive              : true,
796
            indexAxis               : 'y',
797
            maintainAspectRatio     : false,
798
            datasetFill             : false,
799
            plugins: {
800
                datalabels: {
801
                    color: 'white',
802
                    labels: {
803
                        title: {
804
                            font: {
805
                                weight: 'bold',
806
                            }
807
                        },
808
                    }
809
                },
810
                tooltips: {
811
                    enabled: false,
812
                },
813
 
814
 
815
            },
816
        }
817
 
818
        new Chart(barChartCanvas, {
819
            plugins: [ChartDataLabels],
820
            type: 'bar',
821
 
822
            data: barChartData,
823
            options: barChartOptions
824
 
825
        });
826
    }
827
 
828
    /****** END PARTNERS ***/
829
 
830
    /****** START LAST WEEK SECTORS ***/
831
    if($('#barChartLastWeekSectors').length > 0) {
832
 
833
        var areaChartData = {
834
          labels  : [$labelsLastWeekSectors],
835
          datasets: [
836
            {
837
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
838
              borderColor: CHART_COLORS.red,
839
              backgroundColor: CHART_COLORS.blue,
840
              borderWidth: 1,
841
              data : [ $totalsLastWeekSectors ]
842
            },
843
           {
844
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
845
              borderColor: CHART_COLORS.blue,
846
              backgroundColor: CHART_COLORS.red,
847
              borderWidth: 1,
848
              data : [ $valuesLastWeekSectors ]
849
            },
850
          ]
851
 
852
        }
853
 
854
        var barChartCanvas = $('#barChartLastWeekSectors').get(0).getContext('2d')
855
        var barChartData = $.extend(true, {}, areaChartData)
856
        var temp0 = areaChartData.datasets[0]
857
        var temp1 = areaChartData.datasets[1]
858
        barChartData.datasets[0] = temp1
859
        barChartData.datasets[1] = temp0
860
 
861
 
862
        var barChartOptions = {
863
            responsive              : true,
864
            indexAxis               : 'y',
865
            maintainAspectRatio     : false,
866
            datasetFill             : false,
867
            plugins: {
868
                datalabels: {
869
                    color: 'white',
870
                    labels: {
871
                        title: {
872
                            font: {
873
                                weight: 'bold',
874
                            }
875
                        },
876
                    }
877
                },
878
                tooltips: {
879
                    enabled: false,
880
                },
881
 
882
 
883
            },
884
        }
885
 
886
        new Chart(barChartCanvas, {
887
            plugins: [ChartDataLabels],
888
            type: 'bar',
889
 
890
            data: barChartData,
891
            options: barChartOptions
892
 
893
        })
894
    }
895
 
896
    /****** END SECTORS ***/
897
 
898
    /****** START LAST WEEK EXTEND TYPES ***/
899
    if($('#barChartLastWeekStudentTypes').length > 0) {
900
 
901
        var areaChartData = {
902
          labels  : [$labelsLastWeekStudentTypes],
903
          datasets: [
904
            {
905
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
906
              borderColor: CHART_COLORS.red,
907
              backgroundColor: CHART_COLORS.blue,
908
              borderWidth: 1,
909
              data : [ $totalsLastWeekStudentTypes ]
910
            },
911
           {
912
              label : 'LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES',
913
              borderColor: CHART_COLORS.blue,
914
              backgroundColor: CHART_COLORS.red,
915
              borderWidth: 1,
916
              data : [ $valuesLastWeekStudentTypes ]
917
            },
918
          ]
919
 
920
        }
921
 
922
        var barChartCanvas = $('#barChartLastWeekStudentTypes').get(0).getContext('2d')
923
        var barChartData = $.extend(true, {}, areaChartData)
924
        var temp0 = areaChartData.datasets[0]
925
        var temp1 = areaChartData.datasets[1]
926
        barChartData.datasets[0] = temp1
927
        barChartData.datasets[1] = temp0
928
 
929
 
930
        var barChartOptions = {
931
            responsive              : true,
932
            indexAxis               : 'y',
933
            maintainAspectRatio     : false,
934
            datasetFill             : false,
935
            plugins: {
936
                datalabels: {
937
                    color: 'white',
938
                    labels: {
939
                        title: {
940
                            font: {
941
                                weight: 'bold',
942
                            }
943
                        },
944
                    }
945
                },
946
                tooltips: {
947
                    enabled: false,
948
                },
949
 
950
 
951
            },
952
        }
953
 
954
        new Chart(barChartCanvas, {
955
            plugins: [ChartDataLabels],
956
            type: 'bar',
957
 
958
            data: barChartData,
959
            options: barChartOptions
960
 
961
        });
962
 
963
    }
964
 
965
    /****** END EXTEND TYPES ***/
966
 
967
 
968
 /****** CAPSULE RESUME GENERAL  ***/
969
 
970
    var areaChartData = {
971
      labels  : ['LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES', 'LABEL_GRAPH_STUDENTS_TOTALS' ],
972
      datasets: [
973
        {
974
          label             : '',
975
          backgroundColor   : [
976
                CHART_COLORS.blue,
977
                CHART_COLORS.red,
978
 
979
            ],
980
          pointRadius       : true,
981
          data              : [{$reportsCapsuleResume['general'][ 'value']}, {$reportsCapsuleResume['general'][ 'total']} ]
982
        },
983
      ]
984
 
985
    }
986
 
987
    var barChartCanvas = $('#barChartCapsuleResumeGeneral').get(0).getContext('2d')
988
    var barChartData = $.extend(true, {}, areaChartData)
989
    var temp0 = areaChartData.datasets[0]
990
    barChartData.datasets[0] = temp0
991
 
992
 
993
    var barChartOptions = {
994
        responsive              : true,
995
        maintainAspectRatio     : false,
996
        datasetFill             : false,
997
        plugins: {
998
            legend: {
999
                display: true,
1000
                position: 'top',
1001
            } ,
1002
            datalabels: {
1003
                color: 'white',
1004
                labels: {
1005
                    title: {
1006
                        font: {
1007
                            weight: 'bold',
1008
                        }
1009
                    },
1010
                }
1011
            },
1012
            tooltips: {
1013
                enabled: false,
1014
            },
1015
 
1016
        }
1017
    }
1018
 
1019
    new Chart(barChartCanvas, {
1020
        plugins: [ChartDataLabels],
1021
        type: 'doughnut',
1022
 
1023
        data: barChartData,
1024
        options: barChartOptions
1025
 
1026
    })
1027
 
1028
    /****** END STUDENTS ***/
1029
 
1030
    /****** START CAPSULE RESUME COMPANIES ***/
1031
    if($('#barChartCapsuleResumeCompanies').length > 0) {
1032
        var areaChartData = {
1033
          labels  : [$labelsCapsuleResumeCompanies],
1034
          datasets: [
1035
            {
1036
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1037
              borderColor: CHART_COLORS.red,
1038
              backgroundColor: CHART_COLORS.blue,
1039
              borderWidth: 1,
1040
              data : [ $totalsCapsuleResumeCompanies ]
1041
            },
1042
           {
1043
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1044
              borderColor: CHART_COLORS.blue,
1045
              backgroundColor: CHART_COLORS.red,
1046
              borderWidth: 1,
1047
              data : [ $valuesCapsuleResumeCompanies ]
1048
            },
1049
          ]
1050
 
1051
        }
1052
 
1053
        var barChartCanvas = $('#barChartCapsuleResumeCompanies').get(0).getContext('2d')
1054
        var barChartData = $.extend(true, {}, areaChartData)
1055
        var temp0 = areaChartData.datasets[0]
1056
        var temp1 = areaChartData.datasets[1]
1057
        barChartData.datasets[0] = temp1
1058
        barChartData.datasets[1] = temp0
1059
 
1060
 
1061
        var barChartOptions = {
1062
            responsive              : true,
1063
            indexAxis               : 'y',
1064
            maintainAspectRatio     : false,
1065
            datasetFill             : false,
1066
            plugins: {
1067
                datalabels: {
1068
                    color: 'white',
1069
                    labels: {
1070
                        title: {
1071
                            font: {
1072
                                weight: 'bold',
1073
                            }
1074
                        },
1075
                    }
1076
                },
1077
                tooltips: {
1078
                    enabled: false,
1079
                },
1080
 
1081
 
1082
            },
1083
        }
1084
 
1085
        new Chart(barChartCanvas, {
1086
            plugins: [ChartDataLabels],
1087
            type: 'bar',
1088
 
1089
            data: barChartData,
1090
            options: barChartOptions
1091
 
1092
        });
1093
    }
1094
 
1095
    /****** END COMPANIES ***/
1096
 
1097
 
1098
    /****** START CAPSULE RESUME FUNCTIONS ***/
1099
    if($('#barChartCapsuleResumeFunctions').length > 0) {
1100
        var areaChartData = {
1101
          labels  : [$labelsCapsuleResumeFunctions],
1102
          datasets: [
1103
            {
1104
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1105
              borderColor: CHART_COLORS.red,
1106
              backgroundColor: CHART_COLORS.blue,
1107
              borderWidth: 1,
1108
              data : [ $totalsCapsuleResumeFunctions ]
1109
            },
1110
           {
1111
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1112
              borderColor: CHART_COLORS.blue,
1113
              backgroundColor: CHART_COLORS.red,
1114
              borderWidth: 1,
1115
              data : [ $valuesCapsuleResumeFunctions ]
1116
            },
1117
          ]
1118
 
1119
        }
1120
 
1121
        var barChartCanvas = $('#barChartCapsuleResumeFunctions').get(0).getContext('2d')
1122
        var barChartData = $.extend(true, {}, areaChartData)
1123
        var temp0 = areaChartData.datasets[0]
1124
        var temp1 = areaChartData.datasets[1]
1125
        barChartData.datasets[0] = temp1
1126
        barChartData.datasets[1] = temp0
1127
 
1128
 
1129
        var barChartOptions = {
1130
            responsive              : true,
1131
            indexAxis               : 'y',
1132
            maintainAspectRatio     : false,
1133
            datasetFill             : false,
1134
            plugins: {
1135
                datalabels: {
1136
                    color: 'white',
1137
                    labels: {
1138
                        title: {
1139
                            font: {
1140
                                weight: 'bold',
1141
                            }
1142
                        },
1143
                    }
1144
                },
1145
                tooltips: {
1146
                    enabled: false,
1147
                },
1148
 
1149
 
1150
            },
1151
        }
1152
 
1153
        new Chart(barChartCanvas, {
1154
            plugins: [ChartDataLabels],
1155
            type: 'bar',
1156
 
1157
            data: barChartData,
1158
            options: barChartOptions
1159
 
1160
        });
1161
    }
1162
    /****** END FUNCTIONS ***/
1163
 
1164
    /****** START CAPSULE RESUME GROUPS ***/
1165
    if($('#barChartCapsuleResumeGroups').length > 0) {
1166
        var areaChartData = {
1167
          labels  : [$labelsCapsuleResumeGroups],
1168
          datasets: [
1169
            {
1170
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1171
              borderColor: CHART_COLORS.red,
1172
              backgroundColor: CHART_COLORS.blue,
1173
              borderWidth: 1,
1174
              data : [ $totalsCapsuleResumeGroups ]
1175
            },
1176
           {
1177
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1178
              borderColor: CHART_COLORS.blue,
1179
              backgroundColor: CHART_COLORS.red,
1180
              borderWidth: 1,
1181
              data : [ $valuesCapsuleResumeGroups ]
1182
            },
1183
          ]
1184
 
1185
        }
1186
 
1187
        var barChartCanvas = $('#barChartCapsuleResumeGroups').get(0).getContext('2d')
1188
        var barChartData = $.extend(true, {}, areaChartData)
1189
        var temp0 = areaChartData.datasets[0]
1190
        var temp1 = areaChartData.datasets[1]
1191
        barChartData.datasets[0] = temp1
1192
        barChartData.datasets[1] = temp0
1193
 
1194
 
1195
        var barChartOptions = {
1196
            responsive              : true,
1197
            indexAxis               : 'y',
1198
            maintainAspectRatio     : false,
1199
            datasetFill             : false,
1200
            plugins: {
1201
                datalabels: {
1202
                    color: 'white',
1203
                    labels: {
1204
                        title: {
1205
                            font: {
1206
                                weight: 'bold',
1207
                            }
1208
                        },
1209
                    }
1210
                },
1211
                tooltips: {
1212
                    enabled: false,
1213
                },
1214
 
1215
 
1216
            },
1217
        }
1218
 
1219
        new Chart(barChartCanvas, {
1220
            plugins: [ChartDataLabels],
1221
            type: 'bar',
1222
 
1223
            data: barChartData,
1224
            options: barChartOptions
1225
 
1226
        });
1227
    }
1228
 
1229
    /****** END GROUPS ***/
1230
 
1231
 
1232
    /****** START CAPSULE RESUME INSTITUTIONS ***/
1233
    if($('#barChartCapsuleResumeInstitutions').length > 0) {
1234
        var areaChartData = {
1235
          labels  : [$labelsCapsuleResumeInstitutions],
1236
          datasets: [
1237
            {
1238
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1239
              borderColor: CHART_COLORS.red,
1240
              backgroundColor: CHART_COLORS.blue,
1241
              borderWidth: 1,
1242
              data : [ $totalsCapsuleResumeInstitutions ]
1243
            },
1244
           {
1245
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1246
              borderColor: CHART_COLORS.blue,
1247
              backgroundColor: CHART_COLORS.red,
1248
              borderWidth: 1,
1249
              data : [ $valuesCapsuleResumeInstitutions ]
1250
            },
1251
          ]
1252
 
1253
        }
1254
 
1255
        var barChartCanvas = $('#barChartCapsuleResumeInstitutions').get(0).getContext('2d')
1256
        var barChartData = $.extend(true, {}, areaChartData)
1257
        var temp0 = areaChartData.datasets[0]
1258
        var temp1 = areaChartData.datasets[1]
1259
        barChartData.datasets[0] = temp1
1260
        barChartData.datasets[1] = temp0
1261
 
1262
 
1263
        var barChartOptions = {
1264
            responsive              : true,
1265
            indexAxis               : 'y',
1266
            maintainAspectRatio     : false,
1267
            datasetFill             : false,
1268
            plugins: {
1269
                datalabels: {
1270
                    color: 'white',
1271
                    labels: {
1272
                        title: {
1273
                            font: {
1274
                                weight: 'bold',
1275
                            }
1276
                        },
1277
                    }
1278
                },
1279
                tooltips: {
1280
                    enabled: false,
1281
                },
1282
 
1283
 
1284
            },
1285
        }
1286
 
1287
        new Chart(barChartCanvas, {
1288
            plugins: [ChartDataLabels],
1289
            type: 'bar',
1290
 
1291
            data: barChartData,
1292
            options: barChartOptions
1293
 
1294
        });
1295
    }
1296
 
1297
    /****** END INSTITUTIONS ***/
1298
 
1299
 
1300
    /****** START CAPSULE RESUME PROGRAMS ***/
1301
    if($('#barChartCapsuleResumePrograms').length > 0) {
1302
        var areaChartData = {
1303
          labels  : [$labelsCapsuleResumePrograms],
1304
          datasets: [
1305
            {
1306
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1307
              borderColor: CHART_COLORS.red,
1308
              backgroundColor: CHART_COLORS.blue,
1309
              borderWidth: 1,
1310
              data : [ $totalsCapsuleResumePrograms ]
1311
            },
1312
           {
1313
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1314
              borderColor: CHART_COLORS.blue,
1315
              backgroundColor: CHART_COLORS.red,
1316
              borderWidth: 1,
1317
              data : [ $valuesCapsuleResumePrograms ]
1318
            },
1319
          ]
1320
 
1321
        }
1322
 
1323
        var barChartCanvas = $('#barChartCapsuleResumePrograms').get(0).getContext('2d')
1324
        var barChartData = $.extend(true, {}, areaChartData)
1325
        var temp0 = areaChartData.datasets[0]
1326
        var temp1 = areaChartData.datasets[1]
1327
        barChartData.datasets[0] = temp1
1328
        barChartData.datasets[1] = temp0
1329
 
1330
 
1331
        var barChartOptions = {
1332
            responsive              : true,
1333
            indexAxis               : 'y',
1334
            maintainAspectRatio     : false,
1335
            datasetFill             : false,
1336
            plugins: {
1337
                datalabels: {
1338
                    color: 'white',
1339
                    labels: {
1340
                        title: {
1341
                            font: {
1342
                                weight: 'bold',
1343
                            }
1344
                        },
1345
                    }
1346
                },
1347
                tooltips: {
1348
                    enabled: false,
1349
                },
1350
 
1351
 
1352
            },
1353
        }
1354
 
1355
        new Chart(barChartCanvas, {
1356
            plugins: [ChartDataLabels],
1357
            type: 'bar',
1358
 
1359
            data: barChartData,
1360
            options: barChartOptions
1361
 
1362
        });
1363
    }
1364
 
1365
    /****** END PROGRAMS ***/
1366
 
1367
    /****** START CAPSULE RESUME PARTNERS ***/
1368
    if ($('#barChartCapsuleResumePartners').length > 0) {
1369
 
1370
        var areaChartData = {
1371
          labels  : [$labelsCapsuleResumePartners],
1372
          datasets: [
1373
            {
1374
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1375
              borderColor: CHART_COLORS.red,
1376
              backgroundColor: CHART_COLORS.blue,
1377
              borderWidth: 1,
1378
              data : [ $totalsCapsuleResumePartners ]
1379
            },
1380
           {
1381
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1382
              borderColor: CHART_COLORS.blue,
1383
              backgroundColor: CHART_COLORS.red,
1384
              borderWidth: 1,
1385
              data : [ $valuesCapsuleResumePartners ]
1386
            },
1387
          ]
1388
 
1389
        }
1390
 
1391
        var barChartCanvas = $('#barChartCapsuleResumePartners').get(0).getContext('2d')
1392
        var barChartData = $.extend(true, {}, areaChartData)
1393
        var temp0 = areaChartData.datasets[0]
1394
        var temp1 = areaChartData.datasets[1]
1395
        barChartData.datasets[0] = temp1
1396
        barChartData.datasets[1] = temp0
1397
 
1398
 
1399
        var barChartOptions = {
1400
            responsive              : true,
1401
            indexAxis               : 'y',
1402
            maintainAspectRatio     : false,
1403
            datasetFill             : false,
1404
            plugins: {
1405
                datalabels: {
1406
                    color: 'white',
1407
                    labels: {
1408
                        title: {
1409
                            font: {
1410
                                weight: 'bold',
1411
                            }
1412
                        },
1413
                    }
1414
                },
1415
                tooltips: {
1416
                    enabled: false,
1417
                },
1418
 
1419
 
1420
            },
1421
        }
1422
 
1423
        new Chart(barChartCanvas, {
1424
            plugins: [ChartDataLabels],
1425
            type: 'bar',
1426
 
1427
            data: barChartData,
1428
            options: barChartOptions
1429
 
1430
        });
1431
    }
1432
 
1433
    /****** END PARTNERS ***/
1434
 
1435
    /****** START CAPSULE RESUME SECTORS ***/
1436
    if($('#barChartCapsuleResumeSectors').length > 0) {
1437
 
1438
        var areaChartData = {
1439
          labels  : [$labelsCapsuleResumeSectors],
1440
          datasets: [
1441
            {
1442
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1443
              borderColor: CHART_COLORS.red,
1444
              backgroundColor: CHART_COLORS.blue,
1445
              borderWidth: 1,
1446
              data : [ $totalsCapsuleResumeSectors ]
1447
            },
1448
           {
1449
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1450
              borderColor: CHART_COLORS.blue,
1451
              backgroundColor: CHART_COLORS.red,
1452
              borderWidth: 1,
1453
              data : [ $valuesCapsuleResumeSectors ]
1454
            },
1455
          ]
1456
 
1457
        }
1458
 
1459
        var barChartCanvas = $('#barChartCapsuleResumeSectors').get(0).getContext('2d')
1460
        var barChartData = $.extend(true, {}, areaChartData)
1461
        var temp0 = areaChartData.datasets[0]
1462
        var temp1 = areaChartData.datasets[1]
1463
        barChartData.datasets[0] = temp1
1464
        barChartData.datasets[1] = temp0
1465
 
1466
 
1467
        var barChartOptions = {
1468
            responsive              : true,
1469
            indexAxis               : 'y',
1470
            maintainAspectRatio     : false,
1471
            datasetFill             : false,
1472
            plugins: {
1473
                datalabels: {
1474
                    color: 'white',
1475
                    labels: {
1476
                        title: {
1477
                            font: {
1478
                                weight: 'bold',
1479
                            }
1480
                        },
1481
                    }
1482
                },
1483
                tooltips: {
1484
                    enabled: false,
1485
                },
1486
 
1487
 
1488
            },
1489
        }
1490
 
1491
        new Chart(barChartCanvas, {
1492
            plugins: [ChartDataLabels],
1493
            type: 'bar',
1494
 
1495
            data: barChartData,
1496
            options: barChartOptions
1497
 
1498
        })
1499
    }
1500
 
1501
    /****** END SECTORS ***/
1502
 
1503
    /****** START CAPSULE RESUME EXTEND TYPES ***/
1504
    if($('#barChartCapsuleResumeStudentTypes').length > 0) {
1505
 
1506
        var areaChartData = {
1507
          labels  : [$labelsCapsuleResumeStudentTypes],
1508
          datasets: [
1509
            {
1510
              label : 'LABEL_GRAPH_STUDENTS_TOTALS',
1511
              borderColor: CHART_COLORS.red,
1512
              backgroundColor: CHART_COLORS.blue,
1513
              borderWidth: 1,
1514
              data : [ $totalsCapsuleResumeStudentTypes ]
1515
            },
1516
           {
1517
              label : 'LABEL_GRAPH_STUDENTS_RESULE_CAPSULE_VALUES',
1518
              borderColor: CHART_COLORS.blue,
1519
              backgroundColor: CHART_COLORS.red,
1520
              borderWidth: 1,
1521
              data : [ $valuesCapsuleResumeStudentTypes ]
1522
            },
1523
          ]
1524
 
1525
        }
1526
 
1527
        var barChartCanvas = $('#barChartCapsuleResumeStudentTypes').get(0).getContext('2d')
1528
        var barChartData = $.extend(true, {}, areaChartData)
1529
        var temp0 = areaChartData.datasets[0]
1530
        var temp1 = areaChartData.datasets[1]
1531
        barChartData.datasets[0] = temp1
1532
        barChartData.datasets[1] = temp0
1533
 
1534
 
1535
        var barChartOptions = {
1536
            responsive              : true,
1537
            indexAxis               : 'y',
1538
            maintainAspectRatio     : false,
1539
            datasetFill             : false,
1540
            plugins: {
1541
                datalabels: {
1542
                    color: 'white',
1543
                    labels: {
1544
                        title: {
1545
                            font: {
1546
                                weight: 'bold',
1547
                            }
1548
                        },
1549
                    }
1550
                },
1551
                tooltips: {
1552
                    enabled: false,
1553
                },
1554
 
1555
 
1556
            },
1557
        }
1558
 
1559
        new Chart(barChartCanvas, {
1560
            plugins: [ChartDataLabels],
1561
            type: 'bar',
1562
 
1563
            data: barChartData,
1564
            options: barChartOptions
1565
 
1566
        });
1567
 
1568
    }
1569
 
1570
    /****** END EXTEND TYPES ***/
1571
 
1572
    /****** START TOTAL COMPANIES ***/
1573
    if($('#barChartTotalCompanies').length > 0) {
1574
        var areaChartData = {
1575
          labels  : [$labelsTotalCompanies],
1576
          datasets: [
1577
            {
1578
              label               : '',
1579
              backgroundColor: Object.values(CHART_COLORS),
1580
              pointRadius         : true,
1581
              data : [ $totalsTotalCompanies ]
1582
            },
1583
 
1584
          ]
1585
 
1586
        }
1587
 
1588
        var barChartCanvas = $('#barChartTotalCompanies').get(0).getContext('2d')
1589
        var barChartData = $.extend(true, {}, areaChartData)
1590
        var temp0 = areaChartData.datasets[0]
1591
        barChartData.datasets[0] = temp0
1592
 
1593
 
1594
        var barChartOptions = {
1595
            responsive              : true,
1596
            indexAxis               : 'y',
1597
            maintainAspectRatio     : false,
1598
            datasetFill             : false,
1599
            plugins: {
1600
                legend: {
1601
                    display: false,
1602
                } ,
1603
                datalabels: {
1604
                    color: 'white',
1605
                    labels: {
1606
                        title: {
1607
                            font: {
1608
                                weight: 'bold',
1609
                            }
1610
                        },
1611
                    }
1612
                },
1613
                tooltips: {
1614
                    enabled: false,
1615
                },
1616
 
1617
 
1618
            },
1619
        }
1620
 
1621
        new Chart(barChartCanvas, {
1622
            plugins: [ChartDataLabels],
1623
            type: 'bar',
1624
 
1625
            data: barChartData,
1626
            options: barChartOptions
1627
 
1628
        });
1629
    }
1630
 
1631
    /****** END COMPANIES ***/
1632
 
1633
 
1634
    /****** START TOTAL FUNCTIONS ***/
1635
    if($('#barChartTotalFunctions').length > 0) {
1636
        var areaChartData = {
1637
          labels  : [$labelsTotalFunctions],
1638
          datasets: [
1639
            {
1640
              label               : '',
1641
              backgroundColor: Object.values(CHART_COLORS),
1642
              pointRadius         : true,
1643
              data : [ $totalsTotalFunctions ]
1644
            },
1645
          ]
1646
 
1647
        }
1648
 
1649
        var barChartCanvas = $('#barChartTotalFunctions').get(0).getContext('2d')
1650
        var barChartData = $.extend(true, {}, areaChartData)
1651
        var temp0 = areaChartData.datasets[0]
1652
        barChartData.datasets[0] = temp0
1653
 
1654
 
1655
        var barChartOptions = {
1656
            responsive              : true,
1657
            indexAxis               : 'y',
1658
            maintainAspectRatio     : false,
1659
            datasetFill             : false,
1660
            plugins: {
1661
                legend: {
1662
                    display: false,
1663
                } ,
1664
                datalabels: {
1665
                    color: 'white',
1666
                    labels: {
1667
                        title: {
1668
                            font: {
1669
                                weight: 'bold',
1670
                            }
1671
                        },
1672
                    }
1673
                },
1674
                tooltips: {
1675
                    enabled: false,
1676
                },
1677
 
1678
 
1679
            },
1680
        }
1681
 
1682
        new Chart(barChartCanvas, {
1683
            plugins: [ChartDataLabels],
1684
            type: 'bar',
1685
 
1686
            data: barChartData,
1687
            options: barChartOptions
1688
 
1689
        });
1690
    }
1691
    /****** END FUNCTIONS ***/
1692
 
1693
    /****** START TOTAL GROUPS ***/
1694
    if($('#barChartTotalGroups').length > 0) {
1695
        var areaChartData = {
1696
          labels  : [$labelsTotalGroups],
1697
          datasets: [
1698
            {
1699
              label               : '',
1700
              backgroundColor: Object.values(CHART_COLORS),
1701
              pointRadius         : true,
1702
              data : [ $totalsTotalGroups ]
1703
            },
1704
 
1705
          ]
1706
 
1707
        }
1708
 
1709
        var barChartCanvas = $('#barChartTotalGroups').get(0).getContext('2d')
1710
        var barChartData = $.extend(true, {}, areaChartData)
1711
        var temp0 = areaChartData.datasets[0]
1712
        barChartData.datasets[0] = temp0
1713
 
1714
 
1715
        var barChartOptions = {
1716
            responsive              : true,
1717
            indexAxis               : 'y',
1718
            maintainAspectRatio     : false,
1719
            datasetFill             : false,
1720
            plugins: {
1721
                legend: {
1722
                    display: false,
1723
                } ,
1724
                datalabels: {
1725
                    color: 'white',
1726
                    labels: {
1727
                        title: {
1728
                            font: {
1729
                                weight: 'bold',
1730
                            }
1731
                        },
1732
                    }
1733
                },
1734
                tooltips: {
1735
                    enabled: false,
1736
                },
1737
 
1738
 
1739
            },
1740
        }
1741
 
1742
        new Chart(barChartCanvas, {
1743
            plugins: [ChartDataLabels],
1744
            type: 'bar',
1745
 
1746
            data: barChartData,
1747
            options: barChartOptions
1748
 
1749
        });
1750
    }
1751
 
1752
    /****** END GROUPS ***/
1753
 
1754
 
1755
    /****** START TOTAL INSTITUTIONS ***/
1756
    if($('#barChartTotalInstitutions').length > 0) {
1757
        var areaChartData = {
1758
          labels  : [$labelsTotalInstitutions],
1759
          datasets: [
1760
            {
1761
              label               : '',
1762
              backgroundColor: Object.values(CHART_COLORS),
1763
              pointRadius         : true,
1764
              data : [ $totalsTotalInstitutions ]
1765
            },
1766
 
1767
          ]
1768
 
1769
        }
1770
 
1771
        var barChartCanvas = $('#barChartTotalInstitutions').get(0).getContext('2d')
1772
        var barChartData = $.extend(true, {}, areaChartData)
1773
        var temp0 = areaChartData.datasets[0]
1774
        barChartData.datasets[0] = temp0
1775
 
1776
 
1777
        var barChartOptions = {
1778
            responsive              : true,
1779
            indexAxis               : 'y',
1780
            maintainAspectRatio     : false,
1781
            datasetFill             : false,
1782
            plugins: {
1783
                legend: {
1784
                    display: false,
1785
                } ,
1786
                datalabels: {
1787
                    color: 'white',
1788
                    labels: {
1789
                        title: {
1790
                            font: {
1791
                                weight: 'bold',
1792
                            }
1793
                        },
1794
                    }
1795
                },
1796
                tooltips: {
1797
                    enabled: false,
1798
                },
1799
 
1800
 
1801
            },
1802
        }
1803
 
1804
        new Chart(barChartCanvas, {
1805
            plugins: [ChartDataLabels],
1806
            type: 'bar',
1807
 
1808
            data: barChartData,
1809
            options: barChartOptions
1810
 
1811
        });
1812
    }
1813
 
1814
    /****** END INSTITUTIONS ***/
1815
 
1816
 
1817
    /****** START TOTAL PROGRAMS ***/
1818
    if($('#barChartTotalPrograms').length > 0) {
1819
        var areaChartData = {
1820
          labels  : [$labelsTotalPrograms],
1821
          datasets: [
1822
            {
1823
              label               : '',
1824
              backgroundColor: Object.values(CHART_COLORS),
1825
              pointRadius         : true,
1826
              data : [ $totalsTotalPrograms ]
1827
            },
1828
 
1829
          ]
1830
 
1831
        }
1832
 
1833
        var barChartCanvas = $('#barChartTotalPrograms').get(0).getContext('2d')
1834
        var barChartData = $.extend(true, {}, areaChartData)
1835
        var temp0 = areaChartData.datasets[0]
1836
        barChartData.datasets[0] = temp0
1837
 
1838
 
1839
        var barChartOptions = {
1840
            responsive              : true,
1841
            indexAxis               : 'y',
1842
            maintainAspectRatio     : false,
1843
            datasetFill             : false,
1844
            plugins: {
1845
                legend: {
1846
                    display: false,
1847
                } ,
1848
                datalabels: {
1849
                    color: 'white',
1850
                    labels: {
1851
                        title: {
1852
                            font: {
1853
                                weight: 'bold',
1854
                            }
1855
                        },
1856
                    }
1857
                },
1858
                tooltips: {
1859
                    enabled: false,
1860
                },
1861
 
1862
 
1863
            },
1864
        }
1865
 
1866
        new Chart(barChartCanvas, {
1867
            plugins: [ChartDataLabels],
1868
            type: 'bar',
1869
 
1870
            data: barChartData,
1871
            options: barChartOptions
1872
 
1873
        });
1874
    }
1875
 
1876
    /****** END PROGRAMS ***/
1877
 
1878
    /****** START TOTAL PARTNERS ***/
1879
    if ($('#barChartTotalPartners').length > 0) {
1880
 
1881
        var areaChartData = {
1882
          labels  : [$labelsTotalPartners],
1883
          datasets: [
1884
            {
1885
              label               : '',
1886
              backgroundColor: Object.values(CHART_COLORS),
1887
              pointRadius         : true,
1888
              data : [ $totalsTotalPartners ]
1889
            },
1890
 
1891
          ]
1892
 
1893
        }
1894
 
1895
        var barChartCanvas = $('#barChartTotalPartners').get(0).getContext('2d')
1896
        var barChartData = $.extend(true, {}, areaChartData)
1897
        var temp0 = areaChartData.datasets[0]
1898
        barChartData.datasets[0] = temp0
1899
 
1900
 
1901
        var barChartOptions = {
1902
            responsive              : true,
1903
            indexAxis               : 'y',
1904
            maintainAspectRatio     : false,
1905
            datasetFill             : false,
1906
            plugins: {
1907
                legend: {
1908
                    display: false,
1909
                } ,
1910
                datalabels: {
1911
                    color: 'white',
1912
                    labels: {
1913
                        title: {
1914
                            font: {
1915
                                weight: 'bold',
1916
                            }
1917
                        },
1918
                    }
1919
                },
1920
                tooltips: {
1921
                    enabled: false,
1922
                },
1923
 
1924
 
1925
            },
1926
        }
1927
 
1928
        new Chart(barChartCanvas, {
1929
            plugins: [ChartDataLabels],
1930
            type: 'bar',
1931
 
1932
            data: barChartData,
1933
            options: barChartOptions
1934
 
1935
        });
1936
    }
1937
 
1938
    /****** END PARTNERS ***/
1939
 
1940
    /****** START TOTAL SECTORS ***/
1941
    if($('#barChartTotalSectors').length > 0) {
1942
 
1943
        var areaChartData = {
1944
          labels  : [$labelsTotalSectors],
1945
          datasets: [
1946
            {
1947
              label               : '',
1948
              backgroundColor: Object.values(CHART_COLORS),
1949
              pointRadius         : true,
1950
              data : [ $totalsTotalSectors ]
1951
            },
1952
 
1953
          ]
1954
 
1955
        }
1956
 
1957
        var barChartCanvas = $('#barChartTotalSectors').get(0).getContext('2d')
1958
        var barChartData = $.extend(true, {}, areaChartData)
1959
        var temp0 = areaChartData.datasets[0]
1960
        barChartData.datasets[0] = temp0
1961
 
1962
 
1963
        var barChartOptions = {
1964
            responsive              : true,
1965
            indexAxis               : 'y',
1966
            maintainAspectRatio     : false,
1967
            datasetFill             : false,
1968
            plugins: {
1969
                legend: {
1970
                    display: false,
1971
                } ,
1972
                datalabels: {
1973
                    color: 'white',
1974
                    labels: {
1975
                        title: {
1976
                            font: {
1977
                                weight: 'bold',
1978
                            }
1979
                        },
1980
                    }
1981
                },
1982
                tooltips: {
1983
                    enabled: false,
1984
                },
1985
 
1986
 
1987
            },
1988
        }
1989
 
1990
        new Chart(barChartCanvas, {
1991
            plugins: [ChartDataLabels],
1992
            type: 'bar',
1993
 
1994
            data: barChartData,
1995
            options: barChartOptions
1996
 
1997
        })
1998
    }
1999
 
2000
    /****** END SECTORS ***/
2001
 
2002
    /****** START TOTAL EXTEND TYPES ***/
2003
    if($('#barChartTotalStudentTypes').length > 0) {
2004
 
2005
        var areaChartData = {
2006
          labels  : [$labelsTotalStudentTypes],
2007
          datasets: [
2008
            {
2009
              label               : '',
2010
              backgroundColor: Object.values(CHART_COLORS),
2011
              pointRadius         : true,
2012
              data : [ $totalsTotalStudentTypes ]
2013
            },
2014
 
2015
          ]
2016
 
2017
        }
2018
 
2019
        var barChartCanvas = $('#barChartTotalStudentTypes').get(0).getContext('2d')
2020
        var barChartData = $.extend(true, {}, areaChartData)
2021
        var temp0 = areaChartData.datasets[0]
2022
        barChartData.datasets[0] = temp0
2023
 
2024
 
2025
        var barChartOptions = {
2026
            responsive              : true,
2027
            indexAxis               : 'y',
2028
            maintainAspectRatio     : false,
2029
            datasetFill             : false,
2030
            plugins: {
2031
                legend: {
2032
                    display: false,
2033
                } ,
2034
                datalabels: {
2035
                    color: 'white',
2036
                    labels: {
2037
                        title: {
2038
                            font: {
2039
                                weight: 'bold',
2040
                            }
2041
                        },
2042
                    }
2043
                },
2044
                tooltips: {
2045
                    enabled: false,
2046
                },
2047
 
2048
 
2049
            },
2050
        }
2051
 
2052
        new Chart(barChartCanvas, {
2053
            plugins: [ChartDataLabels],
2054
            type: 'bar',
2055
 
2056
            data: barChartData,
2057
            options: barChartOptions
2058
 
2059
        });
2060
 
2061
    }
2062
 
2063
    /****** END EXTEND TYPES ***/
2064
 
2065
});
2066
JS;
2067
$this->inlineScript()->captureEnd();
2068
?>
2069
 
2070
<!-- Content Wrapper. Contains page content -->
2071
<div class="">
2072
    <!-- Content Header (Page header) -->
2073
    <div class="content-header">
2074
    	<div class="container-fluid">
2075
        	<div class="row mb-2">
2076
          		<div class="col-sm-6">
2077
            		<h1 class="m-0">LABEL_OVERVIEW</h1>
2078
          		</div><!-- /.col -->
2079
          <!-- /.col -->
2080
        </div><!-- /.row -->
2081
      </div><!-- /.container-fluid -->
2082
    </div>
2083
    <!-- /.content-header -->
2084
 
2085
    <!-- Main content -->
2086
    <section class="content">
2087
		<div class="container-fluid">
2088
 
2089
       	    <!-- BAR CHART -->
2090
            <div class="card card-primary">
2091
       			<div class="card-header">
2092
                	<h3 class="card-title">LABEL_STUDENTS</h3>
2093
 
2094
                	<div class="card-tools">
2095
                  		<button type="button" class="btn btn-tool" data-card-widget="collapse">
2096
                    		<i class="fa fa-minus"></i>
2097
                  		</button>
2098
 
2099
                	</div>
2100
              	</div>
2101
              	<div class="card-body">
2102
                	<div class="chart">
2103
                  		<canvas id="barChartStudents" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2104
                	</div>
2105
              	</div>
2106
                <!-- /.card-body -->
2107
            </div>
2108
            <!-- /.card -->
2109
 
2110
 
2111
 
2112
 
2113
      		<div class="card card-primary">
2114
       			<div class="card-header">
2115
            		<h3 class="card-title">
2116
              			LABEL_GRAPH_LAST_WEEK_TITLE
2117
            		</h3>
2118
          		</div>
2119
          		<div class="card-body">
2120
            		<div class="row">
2121
             			<div class="col-5 col-sm-3">
2122
             				<div class="nav flex-column nav-tabs h-100" id="vert-tabs-tab" role="tablist" aria-orientation="vertical">
2123
               					<a class="nav-link active" id="vert-tabs-last-week-company-tab" data-toggle="pill" href="#vert-tabs-last-week-general" role="tab" aria-controls="vert-tabs-last-week-general" aria-selected="true">LABEL_GENERAL</a>
2124
 
2125
               					<?php if(!empty($reportsLastWeek['companies'])) : ?>
2126
               					<a class="nav-link" id="vert-tabs-last-week-company-tab" data-toggle="pill" href="#vert-tabs-last-week-company" role="tab" aria-controls="vert-tabs-last-week-company" aria-selected="true">LABEL_COMPANIES</a>
2127
               					<?php endif;?>
2128
 
2129
               					<?php if(!empty($reportsLastWeek['functions'])) : ?>
2130
               					<a class="nav-link" id="vert-tabs-last-week-function-tab" data-toggle="pill" href="#vert-tabs-last-week-function" role="tab" aria-controls="vert-tabs-last-week-function" aria-selected="false">LABEL_FUNCTIONS</a>
2131
               					<?php endif;?>
2132
 
2133
               					<?php if(!empty($reportsLastWeek['groups'])) : ?>
2134
               					<a class="nav-link" id="vert-tabs-last-week-group-tab" data-toggle="pill" href="#vert-tabs-last-week-group" role="tab" aria-controls="vert-tabs-last-week-group" aria-selected="false">LABEL_GROUPS</a>
2135
               					<?php endif;?>
2136
 
2137
               					<?php if(!empty($reportsLastWeek['institutions'])) : ?>
2138
               					<a class="nav-link" id="vert-tabs-last-week-institution-tab" data-toggle="pill" href="#vert-tabs-last-week-institution" role="tab" aria-controls="vert-tabs-last-week-institution" aria-selected="false">LABEL_INSTITUTIONS</a>
2139
               					<?php endif;?>
2140
 
2141
               					<?php if(!empty($reportsLastWeek['programs'])) : ?>
2142
               					<a class="nav-link" id="vert-tabs-last-week-program-tab" data-toggle="pill" href="#vert-tabs-last-week-program" role="tab" aria-controls="vert-tabs-last-week-function" aria-selected="false">LABEL_PROGRAMS</a>
2143
               					<?php endif;?>
2144
 
2145
               					<?php if(!empty($reportsLastWeek['partners'])) : ?>
2146
               					<a class="nav-link" id="vert-tabs-last-week-partner-tab" data-toggle="pill" href="#vert-tabs-last-week-partner" role="tab" aria-controls="vert-tabs-last-week-group" aria-selected="false">LABEL_PARTNERS</a>
2147
               					<?php $active = ''; endif;?>
2148
 
2149
               					<?php if(!empty($reportsLastWeek['sectors'])) : ?>
2150
               					<a class="nav-link" id="vert-tabs-last-week-sector-tab" data-toggle="pill" href="#vert-tabs-last-week-sector" role="tab" aria-controls="vert-tabs-last-week-institution" aria-selected="false">LABEL_SECTORS</a>
2151
               					<?php endif;?>
2152
 
2153
               					<?php if(!empty($reportsLastWeek['student_types'])) : ?>
2154
               					<a class="nav-link" id="vert-tabs-last-week-student-type-tab" data-toggle="pill" href="#vert-tabs-last-week-student-type" role="tab" aria-controls="vert-tabs-last-week-institution" aria-selected="false">LABEL_STUDENT_TYPES</a>
2155
               					<?php endif;?>
2156
               				</div>
2157
               			</div>
2158
              			<div class="col-7 col-sm-9">
2159
                			<div class="tab-content" id="vert-tabs-tabContent">
2160
                			    <div class="tab-pane text-left fade show active" id="vert-tabs-last-week-general" role="tabpanel" aria-labelledby="vert-tabs-last-week-general-tab">
2161
                   					<div class="chart">
2162
                                  		<canvas id="barChartLastWeekGeneral" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2163
                                	</div>
2164
                              	</div>
2165
 
2166
               					<?php if(!empty($reportsLastWeek['companies'])) : ?>
2167
                  				<div class="tab-pane text-left fade" id="vert-tabs-last-week-company" role="tabpanel" aria-labelledby="vert-tabs-last-week-company-tab">
2168
                   					<div class="chart">
2169
                                  		<canvas id="barChartLastWeekCompanies" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2170
                                	</div>
2171
                              	</div>
2172
                              	<?php endif;?>
2173
 
2174
                              	<?php if(!empty($reportsLastWeek['functions'])) : ?>
2175
               					<div class="tab-pane fade" id="vert-tabs-last-week-function" role="tabpanel" aria-labelledby="vert-tabs-last-week-function-tab">
2176
                  					<div class="chart">
2177
                                  		<canvas id="barChartLastWeekFunctions" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2178
                                	</div>
2179
                  				</div>
2180
                  				<?php endif;?>
2181
 
2182
               					<?php if(!empty($reportsLastWeek['groups'])) : ?>
2183
               					<div class="tab-pane fade" id="vert-tabs-last-week-group" role="tabpanel" aria-labelledby="vert-tabs-last-week-group-tab">
2184
                  					<div class="chart">
2185
                                  		<canvas id="barChartLastWeekGroups" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2186
                                	</div>
2187
                  				</div>
2188
                  				<?php endif;?>
2189
 
2190
                  				<?php if(!empty($reportsLastWeek['institutions'])) : ?>
2191
               					<div class="tab-pane fade" id="vert-tabs-last-week-institution" role="tabpanel" aria-labelledby="vert-tabs-last-week-institution-tab">
2192
                  					<div class="chart">
2193
                                  		<canvas id="barChartLastWeekInstitutions" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2194
                                	</div>
2195
                  				</div>
2196
                  				<?php endif;?>
2197
 
2198
                  				<?php if(!empty($reportsLastWeek['programs'])) : ?>
2199
               					<div class="tab-pane fade" id="vert-tabs-last-week-program" role="tabpanel" aria-labelledby="vert-tabs-last-week-program-tab">
2200
                  					<div class="chart">
2201
                                  		<canvas id="barChartLastWeekPrograms" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2202
                                	</div>
2203
                  				</div>
2204
                  				<?php endif;?>
2205
 
2206
                  				<?php if(!empty($reportsLastWeek['partners'])) : ?>
2207
               					<div class="tab-pane fade" id="vert-tabs-last-week-partner" role="tabpanel" aria-labelledby="vert-tabs-last-week-partner-tab">
2208
                  					<div class="chart">
2209
                                  		<canvas id="barChartLastWeekPartners" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2210
                                	</div>
2211
                  				</div>
2212
                  				<?php endif;?>
2213
 
2214
                  				<?php if(!empty($reportsLastWeek['sectors'])) : ?>
2215
               					<div class="tab-pane fade" id="vert-tabs-last-week-sector" role="tabpanel" aria-labelledby="vert-tabs-last-week-sector-tab">
2216
                  					<div class="chart">
2217
                                  		<canvas id="barChartLastWeekSectors" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2218
                                	</div>
2219
                  				</div>
2220
                  				<?php endif;?>
2221
 
2222
                  				<?php if(!empty($reportsLastWeek['student_types'])) : ?>
2223
               					<div class="tab-pane fade" id="vert-tabs-last-week-student-type" role="tabpanel" aria-labelledby="vert-tabs-last-week-student-type-tab">
2224
                  					<div class="chart">
2225
                                  		<canvas id="barChartLastWeekStudentTypes" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2226
                                	</div>
2227
                  				</div>
2228
                  				<?php endif;?>
2229
                			</div>
2230
              			</div>
2231
           			</div>
2232
       			</div>
2233
               <!-- /.card -->
2234
      		</div>
2235
 
2236
 
2237
 
2238
      		<div class="card card-primary">
2239
       			<div class="card-header">
2240
            		<h3 class="card-title">
2241
              			LABEL_GRAPH_CAPSULE_RESUME_TITLE
2242
            		</h3>
2243
          		</div>
2244
          		<div class="card-body">
2245
            		<div class="row">
2246
             			<div class="col-5 col-sm-3">
2247
             				<div class="nav flex-column nav-tabs h-100" id="vert-tabs-tab" role="tablist" aria-orientation="vertical">
2248
               					<a class="nav-link active" id="vert-tabs-capsule-resume-company-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-general" role="tab" aria-controls="vert-tabs-capsule-resume-general" aria-selected="true">LABEL_GENERAL</a>
2249
 
2250
               					<?php if(!empty($reportsCapsuleResume['companies'])) : ?>
2251
               					<a class="nav-link" id="vert-tabs-capsule-resume-company-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-company" role="tab" aria-controls="vert-tabs-capsule-resume-company" aria-selected="true">LABEL_COMPANIES</a>
2252
               					<?php endif;?>
2253
 
2254
               					<?php if(!empty($reportsCapsuleResume['functions'])) : ?>
2255
               					<a class="nav-link" id="vert-tabs-capsule-resume-function-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-function" role="tab" aria-controls="vert-tabs-capsule-resume-function" aria-selected="false">LABEL_FUNCTIONS</a>
2256
               					<?php endif;?>
2257
 
2258
               					<?php if(!empty($reportsCapsuleResume['groups'])) : ?>
2259
               					<a class="nav-link" id="vert-tabs-capsule-resume-group-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-group" role="tab" aria-controls="vert-tabs-capsule-resume-group" aria-selected="false">LABEL_GROUPS</a>
2260
               					<?php endif;?>
2261
 
2262
               					<?php if(!empty($reportsCapsuleResume['institutions'])) : ?>
2263
               					<a class="nav-link" id="vert-tabs-capsule-resume-institution-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-institution" role="tab" aria-controls="vert-tabs-capsule-resume-institution" aria-selected="false">LABEL_INSTITUTIONS</a>
2264
               					<?php endif;?>
2265
 
2266
               					<?php if(!empty($reportsCapsuleResume['programs'])) : ?>
2267
               					<a class="nav-link" id="vert-tabs-capsule-resume-program-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-program" role="tab" aria-controls="vert-tabs-capsule-resume-function" aria-selected="false">LABEL_PROGRAMS</a>
2268
               					<?php endif;?>
2269
 
2270
               					<?php if(!empty($reportsCapsuleResume['partners'])) : ?>
2271
               					<a class="nav-link" id="vert-tabs-capsule-resume-partner-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-partner" role="tab" aria-controls="vert-tabs-capsule-resume-group" aria-selected="false">LABEL_PARTNERS</a>
2272
               					<?php $active = ''; endif;?>
2273
 
2274
               					<?php if(!empty($reportsCapsuleResume['sectors'])) : ?>
2275
               					<a class="nav-link" id="vert-tabs-capsule-resume-sector-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-sector" role="tab" aria-controls="vert-tabs-capsule-resume-institution" aria-selected="false">LABEL_SECTORS</a>
2276
               					<?php endif;?>
2277
 
2278
               					<?php if(!empty($reportsCapsuleResume['student_types'])) : ?>
2279
               					<a class="nav-link" id="vert-tabs-capsule-resume-student-type-tab" data-toggle="pill" href="#vert-tabs-capsule-resume-student-type" role="tab" aria-controls="vert-tabs-capsule-resume-institution" aria-selected="false">LABEL_STUDENT_TYPES</a>
2280
               					<?php endif;?>
2281
               				</div>
2282
               			</div>
2283
              			<div class="col-7 col-sm-9">
2284
                			<div class="tab-content" id="vert-tabs-tabContent">
2285
                			    <div class="tab-pane text-left fade show active" id="vert-tabs-capsule-resume-general" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-general-tab">
2286
                   					<div class="chart">
2287
                                  		<canvas id="barChartCapsuleResumeGeneral" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2288
                                	</div>
2289
                              	</div>
2290
 
2291
               					<?php if(!empty($reportsCapsuleResume['companies'])) : ?>
2292
                  				<div class="tab-pane text-left fade" id="vert-tabs-capsule-resume-company" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-company-tab">
2293
                   					<div class="chart">
2294
                                  		<canvas id="barChartCapsuleResumeCompanies" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2295
                                	</div>
2296
                              	</div>
2297
                              	<?php endif;?>
2298
 
2299
                              	<?php if(!empty($reportsCapsuleResume['functions'])) : ?>
2300
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-function" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-function-tab">
2301
                  					<div class="chart">
2302
                                  		<canvas id="barChartCapsuleResumeFunctions" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2303
                                	</div>
2304
                  				</div>
2305
                  				<?php endif;?>
2306
 
2307
               					<?php if(!empty($reportsCapsuleResume['groups'])) : ?>
2308
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-group" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-group-tab">
2309
                  					<div class="chart">
2310
                                  		<canvas id="barChartCapsuleResumeGroups" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2311
                                	</div>
2312
                  				</div>
2313
                  				<?php endif;?>
2314
 
2315
                  				<?php if(!empty($reportsCapsuleResume['institutions'])) : ?>
2316
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-institution" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-institution-tab">
2317
                  					<div class="chart">
2318
                                  		<canvas id="barChartCapsuleResumeInstitutions" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2319
                                	</div>
2320
                  				</div>
2321
                  				<?php endif;?>
2322
 
2323
                  				<?php if(!empty($reportsCapsuleResume['programs'])) : ?>
2324
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-program" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-program-tab">
2325
                  					<div class="chart">
2326
                                  		<canvas id="barChartCapsuleResumePrograms" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2327
                                	</div>
2328
                  				</div>
2329
                  				<?php endif;?>
2330
 
2331
                  				<?php if(!empty($reportsCapsuleResume['partners'])) : ?>
2332
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-partner" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-partner-tab">
2333
                  					<div class="chart">
2334
                                  		<canvas id="barChartCapsuleResumePartners" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2335
                                	</div>
2336
                  				</div>
2337
                  				<?php endif;?>
2338
 
2339
                  				<?php if(!empty($reportsCapsuleResume['sectors'])) : ?>
2340
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-sector" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-sector-tab">
2341
                  					<div class="chart">
2342
                                  		<canvas id="barChartCapsuleResumeSectors" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2343
                                	</div>
2344
                  				</div>
2345
                  				<?php endif;?>
2346
 
2347
                  				<?php if(!empty($reportsCapsuleResume['student_types'])) : ?>
2348
               					<div class="tab-pane fade" id="vert-tabs-capsule-resume-student-type" role="tabpanel" aria-labelledby="vert-tabs-capsule-resume-student-type-tab">
2349
                  					<div class="chart">
2350
                                  		<canvas id="barChartCapsuleResumeStudentTypes" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2351
                                	</div>
2352
                  				</div>
2353
                  				<?php endif;?>
2354
                			</div>
2355
              			</div>
2356
           			</div>
2357
       			</div>
2358
               <!-- /.card -->
2359
      		</div>
2360
 
2361
      		<?php
2362
      		if(!empty($reportsStudentsTotal['companies'])
2363
      		    || !empty($reportsStudentsTotal['functions'])
2364
      		    || !empty($reportsStudentsTotal['groups'])
2365
      		    || !empty($reportsStudentsTotal['institutions'])
2366
      		    || !empty($reportsStudentsTotal['programs'])
2367
      		    || !empty($reportsStudentsTotal['partners'])
2368
      		    || !empty($reportsStudentsTotal['sectors'])
2369
      		    || !empty($reportsStudentsTotal['student_types'])
2370
 
2371
      		) :
2372
 
2373
      		?>
2374
 
2375
      		      		<div class="card card-primary">
2376
       			<div class="card-header">
2377
            		<h3 class="card-title">
2378
              			LABEL_GRAPH_TOTAL_TITLE
2379
            		</h3>
2380
          		</div>
2381
          		<div class="card-body">
2382
            		<div class="row">
2383
             			<div class="col-5 col-sm-3">
2384
             				<div class="nav flex-column nav-tabs h-100" id="vert-tabs-tab" role="tablist" aria-orientation="vertical">
2385
               					<?php $active = 'active'; ?>
2386
               					<?php if(!empty($reportsStudentsTotal['companies'])) : ?>
2387
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-company-tab" data-toggle="pill" href="#vert-tabs-total-company" role="tab" aria-controls="vert-tabs-total-company" aria-selected="true">LABEL_COMPANIES</a>
2388
               					<?php $active = ''; endif;?>
2389
 
2390
               					<?php if(!empty($reportsStudentsTotal['functions'])) : ?>
2391
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-function-tab" data-toggle="pill" href="#vert-tabs-total-function" role="tab" aria-controls="vert-tabs-total-function" aria-selected="false">LABEL_FUNCTIONS</a>
2392
               					<?php $active = ''; endif;?>
2393
 
2394
               					<?php if(!empty($reportsStudentsTotal['groups'])) : ?>
2395
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-group-tab" data-toggle="pill" href="#vert-tabs-total-group" role="tab" aria-controls="vert-tabs-total-group" aria-selected="false">LABEL_GROUPS</a>
2396
               					<?php $active = ''; endif;?>
2397
 
2398
               					<?php if(!empty($reportsStudentsTotal['institutions'])) : ?>
2399
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-institution-tab" data-toggle="pill" href="#vert-tabs-total-institution" role="tab" aria-controls="vert-tabs-total-institution" aria-selected="false">LABEL_INSTITUTIONS</a>
2400
               					<?php $active = ''; endif;?>
2401
 
2402
               					<?php if(!empty($reportsStudentsTotal['programs'])) : ?>
2403
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-program-tab" data-toggle="pill" href="#vert-tabs-total-program" role="tab" aria-controls="vert-tabs-total-function" aria-selected="false">LABEL_PROGRAMS</a>
2404
               					<?php $active = ''; endif;?>
2405
 
2406
               					<?php if(!empty($reportsStudentsTotal['partners'])) : ?>
2407
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-partner-tab" data-toggle="pill" href="#vert-tabs-total-partner" role="tab" aria-controls="vert-tabs-total-group" aria-selected="false">LABEL_PARTNERS</a>
2408
               					<?php $active = ''; $active = ''; endif;?>
2409
 
2410
               					<?php if(!empty($reportsStudentsTotal['sectors'])) : ?>
2411
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-sector-tab" data-toggle="pill" href="#vert-tabs-total-sector" role="tab" aria-controls="vert-tabs-total-institution" aria-selected="false">LABEL_SECTORS</a>
2412
               					<?php $active = ''; endif;?>
2413
 
2414
               					<?php if(!empty($reportsStudentsTotal['student_types'])) : ?>
2415
               					<a class="nav-link <?php echo $active ?>" id="vert-tabs-total-student-type-tab" data-toggle="pill" href="#vert-tabs-total-student-type" role="tab" aria-controls="vert-tabs-total-institution" aria-selected="false">LABEL_STUDENT_TYPES</a>
2416
               					<?php $active = ''; endif;?>
2417
               				</div>
2418
               			</div>
2419
              			<div class="col-7 col-sm-9">
2420
                			<div class="tab-content" id="vert-tabs-tabContent">
2421
       							<?php $active = 'show active' ; ?>
2422
               					<?php if(!empty($reportsStudentsTotal['companies'])) : ?>
2423
                  				<div class="tab-pane text-left fade <?php echo $active ?>" id="vert-tabs-total-company" role="tabpanel" aria-labelledby="vert-tabs-total-company-tab">
2424
                   					<div class="chart">
2425
                                  		<canvas id="barChartTotalCompanies" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2426
                                	</div>
2427
                              	</div>
2428
                              	<?php $active = ''; endif;?>
2429
 
2430
                              	<?php if(!empty($reportsStudentsTotal['functions'])) : ?>
2431
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-function" role="tabpanel" aria-labelledby="vert-tabs-total-function-tab">
2432
                  					<div class="chart">
2433
                                  		<canvas id="barChartTotalFunctions" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2434
                                	</div>
2435
                  				</div>
2436
                  				<?php $active = ''; endif;?>
2437
 
2438
               					<?php if(!empty($reportsStudentsTotal['groups'])) : ?>
2439
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-group" role="tabpanel" aria-labelledby="vert-tabs-total-group-tab">
2440
                  					<div class="chart">
2441
                                  		<canvas id="barChartTotalGroups" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2442
                                	</div>
2443
                  				</div>
2444
                  				<?php $active = ''; endif;?>
2445
 
2446
                  				<?php if(!empty($reportsStudentsTotal['institutions'])) : ?>
2447
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-institution" role="tabpanel" aria-labelledby="vert-tabs-total-institution-tab">
2448
                  					<div class="chart">
2449
                                  		<canvas id="barChartTotalInstitutions" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2450
                                	</div>
2451
                  				</div>
2452
                  				<?php $active = ''; endif;?>
2453
 
2454
                  				<?php if(!empty($reportsStudentsTotal['programs'])) : ?>
2455
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-program" role="tabpanel" aria-labelledby="vert-tabs-total-program-tab">
2456
                  					<div class="chart">
2457
                                  		<canvas id="barChartTotalPrograms" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2458
                                	</div>
2459
                  				</div>
2460
                  				<?php $active = ''; endif;?>
2461
 
2462
                  				<?php if(!empty($reportsStudentsTotal['partners'])) : ?>
2463
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-partner" role="tabpanel" aria-labelledby="vert-tabs-total-partner-tab">
2464
                  					<div class="chart">
2465
                                  		<canvas id="barChartTotalPartners" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2466
                                	</div>
2467
                  				</div>
2468
                  				<?php $active = ''; endif;?>
2469
 
2470
                  				<?php if(!empty($reportsStudentsTotal['sectors'])) : ?>
2471
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-sector" role="tabpanel" aria-labelledby="vert-tabs-total-sector-tab">
2472
                  					<div class="chart">
2473
                                  		<canvas id="barChartTotalSectors" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2474
                                	</div>
2475
                  				</div>
2476
                  				<?php $active = ''; endif;?>
2477
 
2478
                  				<?php if(!empty($reportsStudentsTotal['student_types'])) : ?>
2479
               					<div class="tab-pane fade <?php echo $active ?>" id="vert-tabs-total-student-type" role="tabpanel" aria-labelledby="vert-tabs-total-student-type-tab">
2480
                  					<div class="chart">
2481
                                  		<canvas id="barChartTotalStudentTypes" style="min-height: 250px; height: 250px; max-height: 250px; max-width: 100%;"></canvas>
2482
                                	</div>
2483
                  				</div>
2484
                  				<?php $active = ''; endif;?>
2485
                			</div>
2486
              			</div>
2487
           			</div>
2488
       			</div>
2489
               <!-- /.card -->
2490
      		</div>
2491
      		<?php endif; ?>
2492
 
2493
 
2494
      	</div>
2495
    </section>
2496
    <!-- /.content -->
2497
  </div>