Removed unnessary controller functions that just call a view, HTML/CSS consistency updates

This commit is contained in:
2024-04-22 14:27:48 +10:00
parent 001618d719
commit ceffc7ff14
45 changed files with 2009 additions and 2011 deletions

View File

@@ -0,0 +1,12 @@
<span class="col-6 mt-auto mx-auto text-center align-bottom">
@if($errors->count())
<span class="btn btn-sm btn-danger" role="alert">
There were errors with the submission.
<ul>
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</span>
@endif
</span>

View File

@@ -0,0 +1,24 @@
@if($f->count())
<table class="table monotable">
<thead>
<tr>
<th colspan="3">Files</th>
</tr>
<tr>
<th>Origin</th>
<th>Name</th>
<th>Date</th>
</tr>
</thead>
<tbody>
@foreach ($f as $oo)
<tr>
<td>{{ $oo->fftn->ftn }}</td>
<td>{{ $oo->name }}</td>
<td>{{ $oo->datetime }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif

View File

@@ -0,0 +1,59 @@
@if($nm->count())
<table class="table monotable">
<thead>
<tr>
<th colspan="4">Netmails</th>
</tr>
<tr>
<th>From</th>
<th>To</th>
<th>MSGID</th>
<th>Date</th>
</tr>
</thead>
<tbody>
@foreach ($nm as $oo)
<tr>
<td>{{ $oo->fftn->ftn }}</td>
<td>{{ $oo->tftn->ftn }}</td>
<td>
@if ($oo->msgid)
{{ $oo->msgid }}
@else
<small>[{{ $oo->id }}]</small>
@endif
</td>
<td>{{ $oo->datetime }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if($em->count())
<table class="table monotable">
<thead>
<tr>
<th colspan="4">Echomails</th>
</tr>
<tr>
<th>From</th>
<th>MSGID</th>
<th>Echoarea</th>
<th>Date</th>
</tr>
</thead>
<tbody>
@foreach ($em as $oo)
<tr>
<td>{{ $oo->fftn->ftn }}</td>
<td>{{ $oo->msgid }}</td>
<td>{{ $oo->echoarea->name }}</td>
<td>{{ $oo->datetime }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif

View File

@@ -0,0 +1,5 @@
<div class="row">
<div class="col-8 m-auto">
@include('widgets.success')
</div>
</div>

View File

@@ -1,10 +1,5 @@
<!-- Success -->
@if(session()->has('success'))
<div class="alert alert-success alert-dismissible fade show" role="alert">
<h4 class="text-success"><i class="bi bi-hand-thumbs-up"></i> Success!</h4>
<ul>
<li>{{ session()->get('success') }}</li>
</ul>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
@endif
<div class="alert alert-success alert-dismissible fade show" role="alert">
<i class="bi bi-hand-thumbs-up"></i> {{ $msg }}
<button type="button" class="btn btn-sm btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>