diff options
-rw-r--r-- | app/Http/Controllers/SpecialCallsController.php | 1 | ||||
-rw-r--r-- | resources/views/pages/reservations.blade.php | 28 |
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> |