@if($ticket->client) @else @endif @if(count($ticket->child_tickets) > 0) @elseif($ticket->getContactName()) @elseif($ticket->parent_ticket_id) @endif
{!! trans('texts.ticket_number')!!}{!! $ticket->ticket_number !!}
{!! trans('texts.category') !!}:{!! $ticket->category->name !!}
{!! trans('texts.subject')!!}:{!! substr($ticket->subject, 0, 30) !!}
{!! trans('texts.client') !!}:{!! $ticket->client->name !!}
{!! trans('texts.client') !!}: {!! Former::select('client_public_id') ->label('') ->addOption('', '') ->data_bind("dropdown: client_public_id, enable: isAdminUser, dropdownOptions: {highlighter: comboboxHighlighter}") ->addClass('') ->addGroupClass('') !!}
{!! trans('texts.linked_tickets')!!} @foreach($ticket->child_tickets as $child) {!! link_to("tickets/{$child->public_id}", $child->public_id ?: '')->toHtml() !!} @endforeach
{!! trans('texts.contact') !!}:{!! $ticket->getContactName() !!}
{!! trans('texts.parent_ticket')!!} {!! link_to("tickets/{$ticket->parent_ticket->public_id}", $ticket->parent_ticket->public_id ?: '')->toHtml() !!}
{!! trans('texts.assigned_to') !!}: @if(Auth::user()->id == Auth::user()->account->account_ticket_settings->ticket_master->id)
{!! Former::select('agent_id') ->label('') ->text(trans('texts.ticket_master')) ->addOption('', '') ->fromQuery($account->users, 'displayName', 'id') !!}
@elseif($ticket->agent) {!! $ticket->agent->getName() !!} {!! Icon::create('random') !!} @endif
@if(!$ticket->merged_parent_ticket_id) @else @endif @if(count($ticket->merged_children) > 0) @endif
{!! trans('texts.created_at') !!}:{!! \App\Libraries\Utils::fromSqlDateTime($ticket->created_at) !!}
{!! trans('texts.last_updated') !!}:{!! \App\Libraries\Utils::fromSqlDateTime($ticket->updated_at) !!}
{!! trans('texts.status') !!}: {!! $ticket->getStatusName() !!}
{!! trans('texts.due_date') !!}:
{!! trans('texts.priority') !!}: {!! Former::select('priority_id')->label('') ->fromQuery(\App\Models\Ticket::getPriorityArray(), 'name', 'id') !!}
{!! Button::primary(trans('texts.save'))->small()->withAttributes(['onclick' => 'saveAction()']) !!}
{!! trans('texts.parent_ticket') !!}: {!! link_to("tickets/{$ticket->merged_ticket_parent->public_id}", $ticket->merged_ticket_parent->public_id ?: '')->toHtml() !!}
{!! trans('texts.linked_tickets') !!}: @foreach($ticket->merged_children as $child) {{ trans('texts.ticket_number') }} {!! link_to("tickets/{$child->public_id}", $child->public_id ?: '')->toHtml() !!}
@endforeach