Some layout changes for echoarea/filearea

This commit is contained in:
Deon George 2021-08-14 23:39:42 +10:00
parent c904f1f9e9
commit 34776b6639
4 changed files with 11 additions and 11 deletions

View File

@ -16,7 +16,6 @@
<div class="row">
<div class="col-9">
@if (\App\Models\Domain::count() == 0)
@can('admin',(new \App\Models\Domain))
<p>There are no domains setup, to <a href="{{ url('ftn/domain/addedit') }}">set up your first</a>.</p>

View File

@ -31,7 +31,7 @@
<table class="table monotable w-100" id="echoarea">
<thead>
<tr>
<th colspan="3"></th>
<th class="w-75" colspan="3"></th>
<th colspan="3" class="text-center">Messages</th>
</tr>
<tr>
@ -47,9 +47,9 @@
<tbody>
@foreach ($o->echoareas->sortBy('name') as $oo)
<tr>
<td><a href="{{ url('ftn/echoarea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
<td style="width: 15%;"><a href="{{ url('ftn/echoarea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
<td>{{ $oo->description }}</td>
<td>{{ ($x=$oo->echomail()->orderBy('created_at','DESC')->first()) ? $x->created_at->format('Y-m-d H:i') : '-' }}</td>
<td style="width: 15%;">{{ ($x=$oo->echomail()->orderBy('created_at','DESC')->first()) ? $x->created_at->format('Y-m-d H:i') : '-' }}</td>
<td class="text-end">{{ number_format($oo->echomail()->where('created_at','>=',Carbon::now()->subDay())->count()) }}</td>
<td class="text-end">{{ number_format($oo->echomail()->where('created_at','>=',Carbon::now()->subWeek())->count()) }}</td>
<td class="text-end">{{ number_format($oo->echomail()->where('created_at','>=',Carbon::now()->subMonth())->count()) }}</td>
@ -84,9 +84,9 @@
<tbody>
@foreach ($o->fileareas->sortBy('name') as $oo)
<tr>
<td><a href="{{ url('ftn/filearea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
<td style="width: 15%;"><a href="{{ url('ftn/filearea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
<td>{{ $oo->description }}</td>
<td>-</td>
<td style="width: 15%;">-</td>
</tr>
@endforeach
</tbody>
@ -182,7 +182,8 @@
paging: true,
pageLength: 25,
searching: true,
order: [],
ordering: true,
order: [1,'asc'],
conditionalPaging: {
style: 'fade',
speed: 500 // optional
@ -193,7 +194,8 @@
paging: true,
pageLength: 25,
searching: true,
order: [],
ordering: true,
order: [1,'asc'],
conditionalPaging: {
style: 'fade',
speed: 500 // optional
@ -204,7 +206,6 @@
paging: true,
pageLength: 25,
searching: true,
order: [],
conditionalPaging: {
style: 'fade',
speed: 500 // optional

View File

@ -13,7 +13,7 @@
</div>
<div class="row">
<div class="col-6">
<div class="col-9">
<p>This system is aware of the following echoareas @can('admin',(new \App\Models\Echoarea))(you can <a href="{{ url('ftn/echoarea/addedit') }}">add</a> more)@endcan:</p>
@if (\App\Models\Echoarea::count() == 0)

View File

@ -13,7 +13,7 @@
</div>
<div class="row">
<div class="col-6">
<div class="col-9">
<p>This system is aware of the following fileareas @can('admin',(new \App\Models\Filearea))(you can <a href="{{ url('ftn/filearea/addedit') }}">add</a> more)@endcan:</p>
@if (\App\Models\Filearea::count() == 0)