@extends('layouts.app')

@section('title', __('master.create'))

@section('content')
<div class="row">
    <div class="col-md-6 col-md-offset-3">
        <div class="panel panel-default">
            <div class="panel-heading"><h3 class="panel-title">{{ __('master.create') }}</h3></div>
            <form method="POST" action="{{ route('masters.store') }}" accept-charset="UTF-8">
                {{ csrf_field() }}
                <div class="panel-body">
                    <div class="form-group{{ $errors->has('title') ? ' has-error' : '' }}">
                        <label for="title" class="control-label">{{ __('master.title') }}</label>
                        <input id="title" type="text" class="form-control" name="title" value="{{ old('title') }}" required>
                        {!! $errors->first('title', '<span class="help-block small">:message</span>') !!}
                    </div>
                    <div class="form-group{{ $errors->has('description') ? ' has-error' : '' }}">
                        <label for="description" class="control-label">{{ __('master.description') }}</label>
                        <textarea id="description" class="form-control" name="description" rows="4">{{ old('description') }}</textarea>
                        {!! $errors->first('description', '<span class="help-block small">:message</span>') !!}
                    </div>
                </div>
                <div class="panel-footer">
                    <input type="submit" value="{{ __('app.create') }}" class="btn btn-success">
                    <a href="{{ route('masters.index') }}" class="btn btn-default">{{ __('app.cancel') }}</a>
                </div>
            </form>
        </div>
    </div>
</div>
@endsection
