@if($report['results'][$name]['passed'])
{{ __('The title tag is perfect.') }}
{{ $report['results'][$name]['value'] }}
@else
@foreach($report['results'][$name]['errors'] as $error => $details)
@if($error == 'missing')
{{ __('The title tag is missing or empty.') }}
@endif
@if($error == 'length')
{{ __('The title tag must be between :min and :max characters.', ['min' => $details['min'], 'max' => $details['max']]) }}
{{ __('The current title has :value characters.', ['value' => mb_strlen($report['results'][$name]['value'])]) }}
@endif
@if($error == 'too_many')
{{ __('Only one title tag should be present on the webpage.') }}
@endif
@endforeach
@endif