@push('title', 'Create a ticket')
{{ $ticket->title }} [{{ $ticket->category->name }}] @if($ticket->canManageTicket()) @endif
@if($ticket->isOpen())
@method('PUT') @csrf Close
@else
@method('PUT') @csrf Re-open
@endif
@method('DELETE') @csrf Delete
{{ \Stevebauman\Purify\Facades\Purify::clean($ticket->content) }}
{{ __('Open tickets') }} {{ __('Your current open tickets') }}
@forelse($openTickets as $ticket) @empty

You currently have no open tickets.

@endforelse
{{ __('Comments') }} {{ __('Please submit your reply below') }} @if($ticket->isOpen())
@csrf {{ __('Submit reply') }} @endif
@forelse($ticket->replies as $reply) @if($reply->user_id === auth()->user()->id)
{{ $reply->user->username }}
{{ $reply->created_at->diffForHumans() }} @if($reply->user_id === Auth::id() || hasPermission('delete_website_ticket_replies'))
@method('DELETE') @csrf
@endif
{{ \Stevebauman\Purify\Facades\Purify::clean($reply->content) }}
@else
@method('DELETE') @csrf
{{ $reply->created_at->diffForHumans() }}
{{ $reply->user->username }}
{{ \Stevebauman\Purify\Facades\Purify::clean($reply->content) }}
@endif @empty

{{ __('There is currently no replies') }}

@endforelse