{!! CollectiveForm::model($ticket, [ 'route' => [$setting->grab('main_route').'.update', $ticket->id], 'method' => 'PATCH', 'class' => 'form-horizontal' ]) !!}

{{ $ticket->subject }}

{{--@if($u->isAdmin())--}}
{!! CollectiveForm::text('subject', $ticket->subject, ['class' => 'form-control', 'required']) !!}
{{--@endif--}}
{!! CollectiveForm::label('priority_id', trans('ticketit::lang.priority') . trans('ticketit::lang.colon'), ['class' => 'col-lg-4 control-label']) !!}
{!! CollectiveForm::select('priority_id', $priority_lists, $ticket->priority_id, ['class' => 'form-control']) !!}
{!! CollectiveForm::label('agent_id', trans('ticketit::lang.agent') . trans('ticketit::lang.colon'), [ 'class' => 'col-lg-4 control-label' ]) !!}
{!! CollectiveForm::select( 'agent_id', $agent_lists, $ticket->agent_id, ['class' => 'form-control']) !!}
{!! CollectiveForm::label('category_id', trans('ticketit::lang.category') . trans('ticketit::lang.colon'), [ 'class' => 'col-lg-6 control-label' ]) !!}
{!! CollectiveForm::select('category_id', $category_lists, $ticket->category_id, ['class' => 'form-control']) !!}
{!! CollectiveForm::label('status_id', trans('ticketit::lang.status') . trans('ticketit::lang.colon'), [ 'class' => 'col-lg-6 control-label' ]) !!}
{!! CollectiveForm::select('status_id', $status_lists, $ticket->status_id, ['class' => 'form-control']) !!}
{!! CollectiveForm::submit(trans('ticketit::lang.btn-submit'), ['class' => 'btn btn-primary']) !!}
{!! CollectiveForm::close() !!}