git commit "complete province and city management with ajax"
This commit is contained in:
@@ -118,11 +118,8 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@forelse($logs as $log)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
{{ $log->admin->first_name ?? '-' }}
|
||||
</td>
|
||||
@@ -130,7 +127,6 @@
|
||||
<td>
|
||||
{{ $log->action }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $log->model }}
|
||||
</td>
|
||||
@@ -145,7 +141,6 @@
|
||||
<td colspan="4">
|
||||
فعالیتی ثبت نشده است
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
@@ -154,106 +149,71 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm border-0 mt-5">
|
||||
<div class="card shadow-sm border-0 mt-5">
|
||||
|
||||
|
||||
<div class="card-header bg-white fw-bold">
|
||||
|
||||
نمودار بازدید تورها در ۱۰ روز اخیر
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<canvas id="tourViewsChart" height="100"></canvas>
|
||||
|
||||
</div>
|
||||
<div class="card-header bg-white fw-bold">
|
||||
|
||||
نمودار بازدید پروازها در ۱۰ روز اخیر
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<canvas id="flightViewsChart" height="100"></canvas>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="{{asset('assets/js/chart.js')}}"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
|
||||
<script>
|
||||
const tourChart = document.getElementById('tourViewsChart');
|
||||
|
||||
new Chart(tourChart, {
|
||||
|
||||
type: 'bar',
|
||||
|
||||
data: {
|
||||
|
||||
labels: @json($tourViews->pluck('date')),
|
||||
|
||||
datasets: [{
|
||||
|
||||
label: 'بازدید تورها',
|
||||
|
||||
data: @json($tourViews->pluck('total')),
|
||||
data: @json($tourViews->pluck('total'))
|
||||
|
||||
}]
|
||||
},
|
||||
|
||||
options: {
|
||||
responsive:true,
|
||||
|
||||
plugins:{
|
||||
|
||||
legend:{
|
||||
|
||||
position:'top'
|
||||
}
|
||||
},
|
||||
scales:{
|
||||
|
||||
y:{
|
||||
beginAtZero:true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
const flightChart = document.getElementById('flightViewsChart');
|
||||
|
||||
new Chart(flightChart, {
|
||||
|
||||
type: 'bar',
|
||||
|
||||
data: {
|
||||
|
||||
labels: @json($flightViews->pluck('date')),
|
||||
|
||||
datasets: [{
|
||||
|
||||
label: 'بازدید پرواز ها',
|
||||
|
||||
data: @json($flightViews->pluck('total')),
|
||||
label: 'بازدید پروازها',
|
||||
|
||||
data: @json($flightViews->pluck('total'))
|
||||
}]
|
||||
},
|
||||
|
||||
options: {
|
||||
responsive:true,
|
||||
|
||||
plugins:{
|
||||
|
||||
legend:{
|
||||
|
||||
position:'top'
|
||||
}
|
||||
},
|
||||
scales:{
|
||||
|
||||
y:{
|
||||
beginAtZero:true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user