Home page performance optimisations

This commit is contained in:
2024-07-09 21:09:34 +10:00
parent f561139d45
commit 28aa1f9dc8
2 changed files with 12 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
</div>
<div class="card-body">
@if ($x=$user->accounts_all->count())
@if($x=$o->accounts_all->count())
<table class="table table-striped table-hover" id="accounts">
<thead>
<tr>
@@ -14,7 +14,10 @@
</tr>
</thead>
<tbody>
@foreach ($user->accounts_all as $ao)
@foreach($o->accounts_all as $ao)
@php
$ao->load(['services:id,active,account_id']);
@endphp
<tr>
<td><a href="{{ url('r/switch/start',$ao->user_id) }}"><i class="fas fa-external-link-alt"></i></a></td>
<td>{{ $ao->name }}</td>