@php
$badgeCount = count($bugTracker->categories) + count($bugTracker->assignedTo);
@endphp
{{ $bugTracker->title }}
@forelse($bugTracker->categories as $category)
{{ $category->name_localized }}
@empty
@endforelse
@forelse($bugTracker->assignedTo as $singleAssignedTo)
{{ $singleAssignedTo->name_localized }}
@empty
@endforelse
#{{ $bugTracker->id }}
@php
$latestComment = $bugTracker->messages->sortByDesc('created_at')->first();
$hasComments = $bugTracker->messages->count() > 0;
$updatedByText = $hasComments ? "Updated {$latestComment->created_at->diffForHumans()} by {$latestComment->author} |" : '';
@endphp
@if ($updatedByText)
{{ $updatedByText }}
@endif
Created {{ $bugTracker->created_at->diffForHumans() }}
by {{ $bugTracker->author }}
@if($bugTracker->votes->count() > 0)
, {{ __('bug_tracker')['number_of_votes'] }}:
{{ $bugTracker->votes->count() }}
@endif
{{--@if($bugTracker->messages->count() > 0)
{{ $bugTracker->messages->count() }}
@endif--}}
@php
$hasHighRankMessage = $bugTracker->messages->some(function ($message) {
return $message->account && $message->account->rank >= 2;
});
@endphp
@if($bugTracker->messages->count() > 0)
@endif