@extends('admin.layouts.master') @section('content')

{{ trans('app.ticket') }}

{{ $ticket->category->name }}

{!! $ticket->priorityLevel() !!}

{!! $ticket->statusName() !!}

{{ $ticket->subject }}

@if(count($ticket->attachments)) {{ trans('app.attachments') . ': ' }} @foreach($ticket->attachments as $attachment) @endforeach @endif @if($ticket->message)
{!! $ticket->message !!}
@endif @if($ticket->replies->count())
@foreach($ticket->replies as $reply) @include('admin.partials._reply_conversations') @endforeach @endif
{{ trans('app.reply') }} {!! Form::open(['route' => ['admin.account.ticket.archive', $ticket], 'method' => 'delete', 'class' => 'inline']) !!} {!! Form::close() !!}
@if($ticket->assignedTo)
@if($ticket->assignedTo->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif

{{ $ticket->assignedTo->getName() }}
@can('view', $ticket->assignedTo) {{ trans('app.view_detail') }} @endcan


@endif

{{ $ticket->created_at->diffForHumans() }}

{{ $ticket->updated_at->diffForHumans() }}

@endsection