@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([ 'updated_ticket_id' => 'required', ]) !!} @if ($ticket) {!! Former::populate($ticket) !!} {!! Former::hidden('public_id') !!} @endif

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

{{ trans('texts.ticket_number') }} {!! $ticket->ticket_number !!}

{!! $ticket->client->name !!}
{!! $ticket->subject !!}
{!! \App\Libraries\Utils::fromSqlDateTime($ticket->created_at) !!}
{!! Former::textarea('old_ticket_comment') ->label('') ->data_bind("value: old_ticket_comment") ->help('This ticket will be closed with the following comment') !!}

{{ trans('texts.merge_placeholder', ['ticket' =>$ticket->ticket_number]) }}

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

{!! trans('texts.ticket_number') !!}
{!! Former::select('updated_ticket_id') ->label('') ->help('Select ticket to merge into') ->addOption('', '') ->data_bind("dropdown: updated_ticket_id, dropdownOptions: {highlighter: comboboxHighlighter}") ->addClass('pull-right') ->addGroupClass('') !!} {!! Former::textarea('updated_ticket_comment') ->data_bind("value: updated_ticket_comment") ->label('') ->help('This ticket will be updated with the following comment') !!}
{!! Button::warning(trans('texts.merge'))->withAttributes(['onclick' => 'submitAction()']) !!}
{!! Former::close() !!} @stop