@if(strlen($schoolAddress->school_name) >= 25) {!! substr($schoolAddress->school_name,0,25) !!}... @else {!! $schoolAddress->school_name !!} @endif

{!! $schoolAddress->phase_of_education !!}

@if($schoolAddress->rating == "Good")

{{ $schoolAddress->rating }}

@elseif($schoolAddress->rating == "Outstanding")

{{ $schoolAddress->rating }}

@elseif($schoolAddress->rating == "Serious")

{{ $schoolAddress->rating }}

@elseif($schoolAddress->rating == "Requires")

Requires Improvement

@else Not recorded @endif

@if(strlen($schoolAddress->distance) >= 5) {!! substr($schoolAddress->distance,0,5) !!} @else {!! $schoolAddress->distance !!} @endif

(Click on the pin to see more)