@lang('Tickets')
@lang('Below is the list of created tickets in :app', [ 'app' => config('app.name') ])
@can('Create tickets') @endCan

@if($tickets->count())
@foreach($tickets as $ticket)
{{ $ticket->project->name }} /
{{ $ticket->title }} {{ $ticket->created_at->diffForHumans() }}
{{ Str::limit(htmlspecialchars(strip_tags($ticket->content)), 400) }}
{{ $ticket->comments_count }}
@lang('Owner') {{ $ticket->owner->name }}
@if($ticket->responsible)
@lang('Responsible') {{ $ticket->responsible->name }}
@endif
@endforeach
{{ $tickets->links('pagination::tailwind') }}
@else
No tickets @lang('No tickets to show!')
@endif
@push('scripts') @endpush