Optimisations for resellers home page

This commit is contained in:
Deon George 2024-07-05 17:23:06 +10:00
parent 8e6533fb91
commit ad03cfa677
4 changed files with 12 additions and 9 deletions
resources/views/theme/backend/adminlte
home.blade.php
r
account/widgets
home/widget
service/widget

View File

@ -96,7 +96,7 @@
@if ($o == $user) @if ($o == $user)
@canany('reseller','wholesaler') @canany('reseller','wholesaler')
<div class="tab-pane" id="tab-reseller" role="tabpanel"> <div class="tab-pane" id="tab-reseller" role="tabpanel">
@include('theme.backend.adminlte.r.home.widgets.home') @include('theme.backend.adminlte.r.home.widget.home')
</div> </div>
@endcanany @endcanany
@endif @endif

View File

@ -17,7 +17,7 @@
@foreach ($user->accounts as $ao) @foreach ($user->accounts as $ao)
<tr> <tr>
<td><a href="{{ url('r/switch/start',$ao->user_id) }}"><i class="fas fa-external-link-alt"></i></a></td> <td><a href="{{ url('r/switch/start',$ao->user_id) }}"><i class="fas fa-external-link-alt"></i></a></td>
<td>{{ $ao->name }}</td> <td>{{ $ao->name }}</td>
<td class="text-right">{{ $ao->services->where('active',TRUE)->count() }} <small>/{{ $ao->services->count() }}</small></td> <td class="text-right">{{ $ao->services->where('active',TRUE)->count() }} <small>/{{ $ao->services->count() }}</small></td>
</tr> </tr>
@endforeach @endforeach
@ -37,8 +37,11 @@
</div> </div>
</div> </div>
@section('page-scripts') @section('page-styles')
@css(datatables,bootstrap4) @css(datatables,bootstrap4)
@append
@section('page-scripts')
@js(datatables,bootstrap4) @js(datatables,bootstrap4)
<script type="text/javascript"> <script type="text/javascript">
@ -50,10 +53,6 @@
order: [1,'asc'], order: [1,'asc'],
pageLength: 10 pageLength: 10
}); });
$('#accounts tbody').on('click','tr', function () {
$(this).toggleClass('selected');
});
}); });
</script> </script>
@append @append

View File

@ -2,8 +2,9 @@
<div class="col-4"> <div class="col-4">
@include('theme.backend.adminlte.r.account.widgets.list') @include('theme.backend.adminlte.r.account.widgets.list')
</div> </div>
<div class="col-8"> <div class="col-8">
@include('theme.backend.adminlte.service.widget.movement') @include('theme.backend.adminlte.r.service.widget.movement')
@include('theme.backend.adminlte.r.invoice.widgets.due') @include('theme.backend.adminlte.r.invoice.widgets.due')
</div> </div>

View File

@ -55,8 +55,11 @@
</div> </div>
</div> </div>
@section('page-scripts') @section('page-styles')
@css(datatables,bootstrap4|rowgroup) @css(datatables,bootstrap4|rowgroup)
@append
@section('page-scripts')
@js(datatables,bootstrap4|rowgroup) @js(datatables,bootstrap4|rowgroup)
<script type="text/javascript"> <script type="text/javascript">