Cosmetic code changes, no functional changes

This commit is contained in:
2024-07-25 14:44:09 +10:00
parent 9277d42196
commit 756f550b43
16 changed files with 40 additions and 48 deletions

View File

@@ -43,7 +43,6 @@
@section('page-styles')
@css(datatables,bootstrap4)
@append
@section('page-scripts')
@js(datatables,bootstrap4)

View File

@@ -1,4 +1,4 @@
<!-- $o = Account::class -->
<!-- $o=Account::class -->
<!-- Show outstanding invoices -->
<div class="card card-warning">
<div class="card-header">

View File

@@ -1,4 +1,4 @@
<!-- $o = Account::class -->
<!-- $o=Account::class -->
<!-- Show past 12 months invoices -->
<div class="card card-success">
<div class="card-header">
@@ -40,12 +40,11 @@
@section('page-styles')
@css(datatables,bootstrap4|rowgroup)
@append
@section('page-scripts')
@js(datatables,bootstrap4|rowgroup)
<script type="text/javascript">
@if ($list->count())
@if($list->count())
$(document).ready(function() {
$('#invoices_past_{{ $o->id }}').DataTable({
order: [[2,'desc'],[0,'asc']],

View File

@@ -1,4 +1,4 @@
<!-- $o = Account::class -->
<!-- $o=Account::class -->
@php
$o->load(['services_active.invoiced_service_items_active_recent']);
@endphp
@@ -10,7 +10,7 @@
</div>
<div class="card-body">
@if (($x=$o->services_active)->count())
@if(($x=$o->services_active)->count())
<table class="table table-striped table-hover w-100" id="services_active_{{ $ao->id }}">
<thead>
<tr>
@@ -50,7 +50,6 @@
@section('page-styles')
@css(datatables,bootstrap4|rowgroup)
@append
@section('page-scripts')
@js(datatables,bootstrap4|rowgroup)

View File

@@ -1,7 +1,8 @@
@php
use App\Models\{Account,Service};
$acts = $o->accounts_all->pluck('id');
@endphp
<!-- $o=User::class -->
@php($acts=$o->accounts_all->pluck('id'))
@use(App\Models\Account)
@use(App\Models\Service)
@if($user->isReseller() && ($o->accounts->count() <= 2) && ($x=$o->accounts->pluck('providers')->flatten())->count())
<div class="col-12 col-sm-4 col-md-2">
@@ -17,7 +18,7 @@
</div>
@endif
@if ($o->accounts_all->count() > 1)
@if($o->accounts_all->count() > 1)
<div class="col-12 col-sm-4 col-md-2">
<div class="info-box">
<span class="info-box-icon bg-primary elevation-1"><i class="fas fa-user"></i></span>