@extends('header') @section('head') @parent @stop @section('content') {!! Former::open($url) ->addClass('col-lg-10 col-lg-offset-1 warn-on-exit main-form') ->autocomplete('off') ->method($method) ->rules([ 'description' => 'required', 'subject' => ' required', ]) !!}
{!! Former::text('data')->data_bind('value: ko.mapping.toJSON(model)') !!} {!! Former::hidden('category_id')->value(1) !!} @if($parent_ticket) {!! Former::hidden('parent_ticket_id')->value($parent_ticket->public_id) !!} @endif {!! Former::hidden('status_id')->value(1) !!}
{!! Former::text('data')->data_bind('value: ko.mapping.toJSON(model)') !!}

{{ trans('texts.new_ticket') }}

{{trans('texts.subject')}} {!! Former::small_text('subject') ->label('') ->id('subject') ->style('width:100%;') !!} {{ trans('texts.description') }} {!! Former::textarea('description')->label(trans('texts.description'))->style('display:none')->raw() !!}
@include('partials/quill_toolbar', ['name' => 'description'])
{{ trans('texts.client') }}
{!! Former::select('client_public_id') ->label('') ->addOption('', '') ->data_bind("dropdown: client_public_id, dropdownOptions: {highlighter: comboboxHighlighter}") ->addClass('pull-right') ->addGroupClass('client-select') !!}
{{ trans('texts.agent') }}
{!! Former::select('agent_id') ->label('') ->addOption('', '') ->data_bind("dropdown: agent_id, dropdownOptions: {highlighter: comboboxHighlighter}") ->addClass('pull-right') ->addGroupClass('') !!}
{{ trans('texts.priority') }}
{!! Former::select('priority_id')->label('') ->fromQuery(\App\Models\Ticket::getPriorityArray(), 'name', 'id') !!}
{{trans('texts.due_date') }}
{{ trans('texts.internal_ticket') }}
{!! Former::checkbox('is_internal') ->label('') ->data_bind("checked: is_internal.pretty") !!}
{{ trans('texts.parent_ticket') }}
{!! Former::select('parent_ticket_id') ->label('') ->addOption('', '') ->data_bind("dropdown: parent_ticket_id, dropdownOptions: {highlighter: comboboxHighlighter}") ->addClass('pull-right') ->addGroupClass('') !!}
{{ Former::setOption('TwitterBootstrap3.labelWidths.large', 0) }} {{ Former::setOption('TwitterBootstrap3.labelWidths.small', 0) }}
{!! Former::textarea('private_notes') ->data_bind("value: private_notes, valueUpdate: 'afterkeydown'") ->label(null)->style('width: 100%')->rows(4) !!}
{{ Former::setOption('TwitterBootstrap3.labelWidths.large', 4) }} {{ Former::setOption('TwitterBootstrap3.labelWidths.small', 4) }}
{!! Button::primary(trans('texts.create_ticket'))->large()->withAttributes(['onclick' => 'saveAction()']) !!}
{!! Former::close() !!} @stop