aboutsummaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/pages/callsigns.blade.php13
-rw-r--r--resources/views/pages/editsign.blade.php2
2 files changed, 11 insertions, 4 deletions
diff --git a/resources/views/pages/callsigns.blade.php b/resources/views/pages/callsigns.blade.php
index 31d7ccf..6c795c4 100644
--- a/resources/views/pages/callsigns.blade.php
+++ b/resources/views/pages/callsigns.blade.php
@@ -5,19 +5,26 @@
@section('navbar', View::make('inc.special_navbar'))
@section('content')
+ <h3>Callsigns Administration:</h3>
+ @if (session('statusE'))
+ <div class="alert alert-success">
+ {{ session('statusE') }}
+ </div>
+ @endif
@if (count($data) > 0)
- <h3>Callsigns Administration:</h3>
<div class="p-0 mt-3 col-lg-6 table-responsive">
<table class="table table-bordered">
@foreach ($data as $row)
<tr>
<td class="align-middle">{{ $row->sign }}</td>
- <td><a href="{{ route('edit', $row->id) }}" class="btn btn-warning">Edit</a></td>
- <td><button class="btn btn-danger">Delete</button></td>
+ <td><a href="{{ route('editSign', $row->id) }}" class="btn btn-warning">Edit</a></td>
+ <td><a href="{{ route('deleteSign', $row->id) }}" class="btn btn-danger">Delete</a></td>
</tr>
@endforeach
</table>
</div>
+ @else
+ <strong>There are currently no callsigns.</strong>
@endif
<h3 class="mt-4">Add Callsign:</h3>
diff --git a/resources/views/pages/editsign.blade.php b/resources/views/pages/editsign.blade.php
index 305bcee..0183441 100644
--- a/resources/views/pages/editsign.blade.php
+++ b/resources/views/pages/editsign.blade.php
@@ -11,7 +11,7 @@
{{ session('status') }}
</div>
@endif
- <form action="{{ route('editForm', request()->route()->parameter('id')) }}" method="POST">
+ <form action="{{ route('editSignForm', request()->route()->parameter('id')) }}" method="POST">
@csrf
<div class="form-group">
<label for="Sign">Special Callsign:</label>