@php
$first_ext = false;
$done = false;
@endphp
@foreach ($this->requirements() as $i => $requirement)
@php
$found = $requirement[1]();
$req = $requirement[2];
$ext = $requirement[3];
if($ext && !$first_ext && !$done) {
$first_ext = true;
$done = true;
} else {
$first_ext = false;
}
$last_ext = $i == (count($this->requirements()) - 1);
@endphp
@if(!$ext)
{{ $found ? 'Found' : ( $req ? 'Not Found' : 'Optional' ) }}
{{ $requirement[0] }}
@else
@if($first_ext)
PHP Extensions
@endif
{{ $found ? 'Found' : ( $req ? 'Not Found' : 'Optional' ) }}
{{ $requirement[0] }}
@if($last_ext)
@endif
@endif
@endforeach