@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
{!! $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->sortByDesc('created_at') 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
{!! $reply->content !!}
@else
@method('DELETE') @csrf
{{ $reply->created_at->diffForHumans() }}
{{ $reply->user->username }}
{!! $reply->content !!}
@endif @empty

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

@endforelse