blob: 0136ba9c6cdcc9ee6203a20f036423ea71f326a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|