aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/views/writeMessage.blade.php
diff options
context:
space:
mode:
authorMarvin Borner2018-06-30 23:44:50 +0200
committerMarvin Borner2018-06-30 23:44:50 +0200
commitb1c501e2f239ef6dcbf5e55e403834d793c6a0f6 (patch)
tree4532adc1e40f0da7580132b2a82c67c946a478f3 /resources/views/writeMessage.blade.php
parent70233ba2d306019d415b94e270d3a90672236544 (diff)
Finished websocket integration
Diffstat (limited to 'resources/views/writeMessage.blade.php')
-rw-r--r--resources/views/writeMessage.blade.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/resources/views/writeMessage.blade.php b/resources/views/writeMessage.blade.php
new file mode 100644
index 0000000..0136ba9
--- /dev/null
+++ b/resources/views/writeMessage.blade.php
@@ -0,0 +1,33 @@
+@extends('layouts.app') @section('content')
+
+<script src="https://cdn.socket.io/socket.io-1.3.4.js"></script>
+
+<div class="container">
+ <div class="row">
+ <div class="col-lg-8 col-lg-offset-2">
+ <div class="panel panel-default">
+ <div class="panel-heading">Messages Received</div>
+ <div id="messages" class="MessagesWindow">
+ @foreach ($messages as $key => $message)
+ <p>{{$message->name}}: {{$message->message}}</p>
+ @endforeach
+
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-10 col-md-offset-1">
+ <div class="panel panel-default">
+ <div class="panel-heading">Send message</div>
+ <form action="sendmessage" method="POST">
+ {{ csrf_field() }}
+ <input type="text" name="message" class="message">
+ <input type="submit" value="send" class="send">
+ </form>
+ </div>
+ </div>
+ </div>
+</div>
+
+@endsection