@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') !!}:
{!! 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($ticket->agent) {!! $ticket->agent->getName() !!} {!! Icon::create('random') !!} @endif
@if($ticket->merged_parent_ticket_id) @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') !!}:{!! $ticket->getPriorityName() !!}
{!! 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