File: /home/mmickelson/spilicensing/resources/views/activitytype/create.blade.php
@extends('layouts.master')
@section('content')
<h1>Create New Activitytype</h1>
<hr/>
{!! Form::open(['url' => 'activitytype', 'class' => 'form-horizontal']) !!}
<div class="form-group {{ $errors->has('activityType') ? 'has-error' : ''}}">
{!! Form::label('activityType', 'Activitytype: ', ['class' => 'col-sm-3 control-label']) !!}
<div class="col-sm-6">
{!! Form::text('activityType', null, ['class' => 'form-control']) !!}
{!! $errors->first('activityType', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-3">
{!! Form::submit('Create', ['class' => 'btn btn-primary form-control']) !!}
</div>
</div>
{!! Form::close() !!}
@if ($errors->any())
<ul class="alert alert-danger">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
@endif
@endsection