- add code parameters into config - add code length parameter into settings - add total possible codes to generate in generation page - add GenerateRequest validation - changed job ProcessUniqueCode to increase performances using mass insert and pagination - changed singletoned Settings instance to increase performances - Fix process export code put datetime in file name - aded storage to gitignore file - fixed export to guess export codes, also non recursive now - changed refactorize a bit EnterCodeController::participate + add request - Add request to export and generate codes requests
54 lines
1.6 KiB
PHP
54 lines
1.6 KiB
PHP
@extends('layouts.bo')
|
|
|
|
@section('content')
|
|
<h2>Tableau de bord</h2>
|
|
<hr>
|
|
<p>
|
|
Nombre de participations total : <b>{{ $totalParticipation }}</b><br>
|
|
Nombre de participations moyenne par joueur : <b>{{ $avgParticipUser }}</b><br>
|
|
@if ($settings->use_ean_codes === 1)
|
|
Top 3 des codes EAN les plus utilisés :
|
|
<ul class="list-group list-group-horizontal">
|
|
@foreach ($codesEan as $codeEan)
|
|
<li class="list-group-item">{{ $codeEan->code_ean_value }} : <b>{{ $codeEan->nb_usage }}</b></li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
</p>
|
|
<br>
|
|
<canvas id="dailyParticipation"></canvas>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script>
|
|
let dates = @json($dates);
|
|
let count = @json($count);
|
|
let countUnique = @json($countUnique);
|
|
|
|
const ctx = document.getElementById('dailyParticipation').getContext('2d');
|
|
let dailyParticipation = new Chart(ctx, {
|
|
type: 'line',
|
|
data: {
|
|
labels: dates,
|
|
datasets: [{
|
|
label: 'Nombre de participation(s)',
|
|
data: count,
|
|
|
|
borderColor: [
|
|
'rgba(52, 146, 224, 1)',
|
|
],
|
|
borderWidth: 1
|
|
},
|
|
{
|
|
label: 'Nombre de participation(s) unique(s)',
|
|
data: countUnique,
|
|
|
|
borderColor: [
|
|
'rgba(186, 0, 0, 1)',
|
|
],
|
|
borderWidth: 1
|
|
}]
|
|
}
|
|
});
|
|
</script>
|
|
@endpush
|