@extends('layouts.app') @section('content')

Document Categories

{!! Form::open(['method' => 'POST', 'route' => ['admin.document_categories.store']]) !!}
@lang('quickadmin.qa_create')
{!! Form::label('name', 'Name*', ['class' => 'control-label']) !!} {!! Form::text('name', old('name'), ['class' => 'form-control', 'required' => '']) !!} @if($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::label('keywords', 'Auto-classify keywords (comma separated)', ['class' => 'control-label']) !!} {!! Form::textarea('keywords', old('keywords'), ['class' => 'form-control', 'rows' => 3, 'placeholder' => 'e.g. invoice, tax invoice, amount due']) !!}

When a document's OCR text contains one of these words, it's automatically filed under this category.

@if($errors->has('keywords'))

{{ $errors->first('keywords') }}

@endif
{!! Form::submit(trans('quickadmin.qa_save'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop