@extends('layouts.student.studentlayout') @section('content')

{{$title}}

{!! Form::open(['route' => 'messages.store']) !!}
{!! Form::label('subject', 'Subject', ['class' => 'control-label']) !!} {!! Form::text('subject', null, ['class' => 'form-control']) !!}
{!! Form::label('message', 'Message', ['class' => 'control-label']) !!} {!! Form::textarea('message', null, ['class' => 'form-control']) !!}
@if($users->count() > 0)
@foreach($users as $user) @endforeach
@endif
{!! Form::submit('Submit', ['class' => 'btn btn-primary form-control']) !!}
{!! Form::close() !!}
@stop