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

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

@can('index', $ticket) {{ trans('app.back') }} @endcan @can('reply', $ticket) {{ trans('app.reply') }} @endcan

@can('view', $ticket->shop) {{ $ticket->shop->name }} @else {{ $ticket->shop->name }} @endcan

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

@if($ticket->assignedTo)

@if($ticket->user->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif @can('view', $ticket->user) {{ $ticket->user->getName() }} @else {{ $ticket->user->getName() }} @endcan

@endif
{{ $ticket->created_at->diffForHumans() }} {{ $ticket->updated_at->diffForHumans() }}
{{ $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.support.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 @can('assign', $ticket) {{ trans('app.assign') }} @endcan
@if($ticket->shop->tickets)
    @foreach($ticket->shop->tickets as $old_ticket) @continue($old_ticket->id == $ticket->id)
  • {{ $old_ticket->subject }} {!! $old_ticket->statusName() !!}
  • @endforeach
@endif
@endsection