From 590ecae90b0d03cd03507ca88e29a0ed4c28e5c1 Mon Sep 17 00:00:00 2001
From: Mateja <mail@matejamaric.com>
Date: Sun, 1 Nov 2020 12:12:31 +0100
Subject: Display in reservations.

---
 resources/views/pages/reservations.blade.php | 39 ++++++++++++++++++++++++++--
 1 file changed, 37 insertions(+), 2 deletions(-)

(limited to 'resources/views/pages/reservations.blade.php')

diff --git a/resources/views/pages/reservations.blade.php b/resources/views/pages/reservations.blade.php
index 56c379d..9a27ee7 100644
--- a/resources/views/pages/reservations.blade.php
+++ b/resources/views/pages/reservations.blade.php
@@ -6,9 +6,44 @@
 
 @section('content')
 <div class="table-responsive">
-    <table class="table table-striped table-bordered"><!-- table-hover -->
+    <table class="table table-striped table-bordered" style="white-space:nowrap;"><!-- table-hover -->
         <thead class="thead-dark">
-            <tr><th>ID</th><th>Approved</th><th>Operator Callsign</th><th>QSO</th><th>From</th><th>To</th><th>Frequencies</th><th>Modes</th><th>Special Callsign</th><th>Operator Name</th><th>Operator Email</th><th>Operator Phone</th><th>Actions</th></tr>
+            <tr>
+                <th>ID</th>
+                <th>Approved</th>
+                <th>Operator Callsign</th>
+                <th>QSO</th>
+                <th>From</th>
+                <th>To</th>
+                <th>Frequencies</th>
+                <th>Modes</th>
+                <th>Special Callsign</th>
+                <th>Operator Name</th>
+                <th>Operator Email</th>
+                <th>Operator Phone</th>
+                <th>Actions</th>
+            </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>
+                        <button class="btn btn-primary">Update</button>
+                        <button class="btn btn-warning">Restore</button>
+                        <button class="btn btn-danger">Delete</button>
+                    </td>
+                </tr>
+            @endforeach
         </thead>
         <tbody>
         </tbody>
-- 
cgit v1.2.3