@if(isset($report['results'][$name]))
@include('reports.partials.status')
{{ __('Headings') }}
@if($report['results'][$name]['passed'])
{{ __('The headings are properly set.') }}
@else @foreach($report['results'][$name]['errors'] as $error => $details)
@if($error == 'missing') {{ __('There is no h1 tag on the webpage.') }} @endif @if($error == 'too_many') {{ __('Only one h1 tag should be present on the webpage.') }} @endif @if($error == 'duplicate') {{ __('The h1 tag is the same with the title tag.') }} @endif
@endforeach @endif
@foreach($report['results'][$name]['value'] as $key => $value)
    @foreach($value as $heading)
  1. {{ $heading }}
  2. @endforeach
@endforeach
{{ __('The h tags represents the headings of the webpage.') }} {{ __('The h1 tag is the most important h tag, and describes the main topic of the page, while the rest of the tags describe the sub-topics of the webpage.') }}
@endif