Removed unnessary controller functions that just call a view, HTML/CSS consistency updates
This commit is contained in:
12
resources/views/widgets/error.blade.php
Normal file
12
resources/views/widgets/error.blade.php
Normal 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>
|
24
resources/views/widgets/file.blade.php
Normal file
24
resources/views/widgets/file.blade.php
Normal 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
|
59
resources/views/widgets/packet.blade.php
Normal file
59
resources/views/widgets/packet.blade.php
Normal 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
|
5
resources/views/widgets/success-row.blade.php
Normal file
5
resources/views/widgets/success-row.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="row">
|
||||
<div class="col-8 m-auto">
|
||||
@include('widgets.success')
|
||||
</div>
|
||||
</div>
|
@@ -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>
|
Reference in New Issue
Block a user