Query optimisations for last_messages and traffic

This commit is contained in:
Deon George
2022-01-06 00:19:57 +11:00
parent 3d6f233c1d
commit 6b0bf32552
8 changed files with 104 additions and 130 deletions

View File

@@ -15,7 +15,7 @@
<div id="collapse_about" class="accordion-collapse collapse show" aria-labelledby="about" data-bs-parent="#accordion_homepage">
<div class="accordion-body">
<div style="float:right; width: 50%; height: 20em;" id="network_traffic"></div>
<div class="float-end" style="max-height: 25em;" id="network_traffic"></div>
{!! \Illuminate\Mail\Markdown::parse($o->homepage) !!}
</div>
</div>
@@ -46,7 +46,7 @@
</thead>
<tbody>
@foreach ($o->echoareas->sortBy('name') as $oo)
@foreach ($o->latest_echomail_message() as $oo)
<tr>
<td style="width: 15%;"><a href="{{ url('ftn/echoarea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
<td>{{ $oo->description }}</td>
@@ -166,7 +166,7 @@
@css('datatables')
<style>
div#collapse_about {
min-height: 20em;
min-height: 25em;
}
div#collapse_about .collapse{
min-height: 0;
@@ -235,7 +235,8 @@
zoomType: 'x',
resetZoomButton: {
position: {
x: 0,
align: 'left',
x: -40,
y: -40,
}
}
@@ -263,7 +264,7 @@
legend: {
align: 'right',
layout: 'vertical',
symbolWidth: 40,
symbolWidth: 20,
floating: false,
navigation: {
arrowSize: 10
@@ -281,15 +282,7 @@
cursor: 'pointer'
}
},
series: [
@foreach($o->echoareas->sortBy('name') as $oo)
{
name: '{{ $oo->name }}',
data: {!! $o->daily_echoarea_stats($oo) !!},
dashStyle: 'ShortDot',
},
@endforeach
],
series: {!! $o->daily_area_stats('true') !!}
});
</script>
@append