aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-02 00:03:12 +0100
committerMateja <mail@matejamaric.com>2020-11-02 00:03:12 +0100
commitcd8cfe9d6a0b786e03142ae492b2d0d52f92e4f8 (patch)
tree10317f18103f8b2ffb2c1951ace7e044ffc9205c
parenteb54ef5a24bc4af0749ad43ccffcbc1ae03aa4b6 (diff)
downloadyota-laravel-cd8cfe9d6a0b786e03142ae492b2d0d52f92e4f8.tar.gz
yota-laravel-cd8cfe9d6a0b786e03142ae492b2d0d52f92e4f8.zip
Styling on reservations...
-rw-r--r--app/Http/Controllers/SpecialCallsController.php1
-rw-r--r--resources/views/pages/reservations.blade.php28
2 files changed, 16 insertions, 13 deletions
diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php
index dd05810..2ddf743 100644
--- a/app/Http/Controllers/SpecialCallsController.php
+++ b/app/Http/Controllers/SpecialCallsController.php
@@ -47,7 +47,6 @@ class SpecialCallsController extends Controller
public function editForm(Request $request, int $id)
{
- //dd($request->input('submit'));
if ($request->input('submit') == 'Edit callsign') {
$rules = [ 'sign' => 'required' ];
$messages = [ 'sign.required' => 'You need to provide a callsign!' ];
diff --git a/resources/views/pages/reservations.blade.php b/resources/views/pages/reservations.blade.php
index 0d74ef3..1a94525 100644
--- a/resources/views/pages/reservations.blade.php
+++ b/resources/views/pages/reservations.blade.php
@@ -26,18 +26,22 @@
</tr>
@foreach ($data as $row)
<tr>
- <td>{{ $row->id }}</td>
- <td>{{ $row->approved }}</td>
- <td>{{ $row->operatorCall }}</td>
- <td>{{ $row->qso }}</td>
- <td>{{ $row->fromTime }}</td>
- <td>{{ $row->toTime }}</td>
- <td>{{ $row->frequencies }}</td>
- <td>{{ $row->modes }}</td>
- <td>{{ $row->specialCall }}</td>
- <td>{{ $row->operatorName }}</td>
- <td>{{ $row->operatorEmail }}</td>
- <td>{{ $row->operatorPhone }}</td>
+ <td class="align-middle">{{ $row->id }}</td>
+ @if ($row->approved)
+ <td class="align-middle"><input type="checkbox" checked></td>
+ @else
+ <td class="align-middle"><input type="checkbox"></td>
+ @endif
+ <td class="align-middle">{{ $row->operatorCall }}</td>
+ <td class="align-middle">{{ $row->qso }}</td>
+ <td class="align-middle">{{ $row->fromTime }}</td>
+ <td class="align-middle">{{ $row->toTime }}</td>
+ <td class="align-middle">{{ $row->frequencies }}</td>
+ <td class="align-middle">{{ $row->modes }}</td>
+ <td class="align-middle">{{ $row->specialCall }}</td>
+ <td class="align-middle">{{ $row->operatorName }}</td>
+ <td class="align-middle">{{ $row->operatorEmail }}</td>
+ <td class="align-middle">{{ $row->operatorPhone }}</td>
<td>
<button class="btn btn-primary">Update</button>
<button class="btn btn-warning">Restore</button>