@extends($master) @section('page', trans('ticketit::lang.create-ticket-title')) @section('content') @include('ticketit::shared.header')
{!! CollectiveForm::open([ 'route'=>$setting->grab('main_route').'.store', 'method' => 'POST', 'class' => 'form-horizontal' ]) !!} {!! trans('ticketit::lang.create-new-ticket') !!}
{!! CollectiveForm::label('subject', trans('ticketit::lang.subject') . trans('ticketit::lang.colon'), ['class' => 'col-lg-2 control-label']) !!}
{!! CollectiveForm::text('subject', null, ['class' => 'form-control', 'required' => 'required']) !!} {!! trans('ticketit::lang.create-ticket-brief-issue') !!}
{!! CollectiveForm::label('content', trans('ticketit::lang.description') . trans('ticketit::lang.colon'), ['class' => 'col-lg-2 control-label']) !!}
{!! CollectiveForm::textarea('content', null, ['class' => 'form-control summernote-editor', 'rows' => '5', 'required' => 'required']) !!} {!! trans('ticketit::lang.create-ticket-describe-issue') !!}
{!! CollectiveForm::label('priority', trans('ticketit::lang.priority') . trans('ticketit::lang.colon'), ['class' => 'col-lg-6 control-label']) !!}
{!! CollectiveForm::select('priority_id', $priorities, null, ['class' => 'form-control', 'required' => 'required']) !!}
{!! CollectiveForm::label('category', trans('ticketit::lang.category') . trans('ticketit::lang.colon'), ['class' => 'col-lg-6 control-label']) !!}
{!! CollectiveForm::select('category_id', $categories, null, ['class' => 'form-control', 'required' => 'required']) !!}
{!! CollectiveForm::hidden('agent_id', 'auto') !!}

{!! link_to_route($setting->grab('main_route').'.index', trans('ticketit::lang.btn-back'), null, ['class' => 'btn btn-default']) !!} {!! CollectiveForm::submit(trans('ticketit::lang.btn-submit'), ['class' => 'btn btn-primary']) !!}
{!! CollectiveForm::close() !!}
@endsection @section('footer') @include('ticketit::tickets.partials.summernote') @append